@abgov/jsonforms-components 1.50.5 → 1.51.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 +6 -6
- package/package.json +1 -1
package/index.esm.js
CHANGED
|
@@ -5,7 +5,7 @@ import styled from 'styled-components';
|
|
|
5
5
|
import React, { createContext, useContext, useReducer, useMemo, useEffect, useState, useRef, useCallback } from 'react';
|
|
6
6
|
import axios from 'axios';
|
|
7
7
|
import get$1 from 'lodash/get';
|
|
8
|
-
import { rankWith, isStringControl, and, optionIs, uiTypeIs, isDateControl, isNumberControl, isIntegerControl, isDateTimeControl, isTimeControl, isEnumControl, isBooleanControl, getAjv, isVisible, toDataPath, deriveLabelForUISchemaElement, isEnabled, schemaTypeIs, formatIs, createDefaultValue, Paths, or, isObjectArrayControl, isPrimitiveArrayControl, schemaMatches, hasType, isControl, isCategorization, isLayout } from '@jsonforms/core';
|
|
8
|
+
import { rankWith, isStringControl, and, optionIs, uiTypeIs, isDateControl, isNumberControl, isIntegerControl, isDateTimeControl, isTimeControl, isEnumControl, isBooleanControl, getAjv, isVisible, toDataPath, getControlPath, deriveLabelForUISchemaElement, isEnabled, schemaTypeIs, formatIs, createDefaultValue, Paths, or, isObjectArrayControl, isPrimitiveArrayControl, schemaMatches, hasType, isControl, isCategorization, isLayout } from '@jsonforms/core';
|
|
9
9
|
import { withJsonFormsControlProps, withJsonFormsRendererProps, withJsonFormsEnumProps, withTranslateProps, useJsonForms, JsonFormsDispatch, withJsonFormsLayoutProps, withJsonFormsArrayLayoutProps, withJsonFormsCellProps } from '@jsonforms/react';
|
|
10
10
|
import * as _$b from 'lodash';
|
|
11
11
|
import { isEqual, isObject as isObject$f } from 'lodash';
|
|
@@ -5952,8 +5952,7 @@ const isErrorPathIncluded = (errorPaths, path) => {
|
|
|
5952
5952
|
const getIncompletePaths = (ajv, scopes) => {
|
|
5953
5953
|
var _a;
|
|
5954
5954
|
const requiredErrorPaths = (_a = ajv === null || ajv === void 0 ? void 0 : ajv.errors) === null || _a === void 0 ? void 0 : _a.filter(e => e.keyword === 'required').map(e => {
|
|
5955
|
-
|
|
5956
|
-
return (_a = e === null || e === void 0 ? void 0 : e.schema) === null || _a === void 0 ? void 0 : _a[0];
|
|
5955
|
+
return getControlPath(e);
|
|
5957
5956
|
});
|
|
5958
5957
|
const _scopes = scopes.map(scope => toDataPath(scope)).filter(path => requiredErrorPaths && isErrorPathIncluded(requiredErrorPaths, path));
|
|
5959
5958
|
return _scopes;
|
|
@@ -6416,15 +6415,16 @@ const FileUploader = _a => {
|
|
|
6416
6415
|
if (!enumerators) {
|
|
6417
6416
|
return jsx(Fragment, {});
|
|
6418
6417
|
}
|
|
6418
|
+
const sentenceCaseLabel = convertToSentenceCase(label);
|
|
6419
6419
|
return jsxs(FileUploaderStyle, {
|
|
6420
6420
|
id: "file-upload",
|
|
6421
6421
|
className: "FileUploader",
|
|
6422
6422
|
children: [required ? jsx(GoAFormItem, {
|
|
6423
|
-
label:
|
|
6423
|
+
label: sentenceCaseLabel,
|
|
6424
6424
|
requirement: "required"
|
|
6425
6425
|
}) : jsx("div", {
|
|
6426
6426
|
className: "label",
|
|
6427
|
-
children:
|
|
6427
|
+
children: sentenceCaseLabel
|
|
6428
6428
|
}), !readOnly && jsx("div", {
|
|
6429
6429
|
className: "file-upload",
|
|
6430
6430
|
children: jsx(GoAFileUploadInput, {
|
|
@@ -8565,7 +8565,7 @@ const AddressLookUpControl = props => {
|
|
|
8565
8565
|
setTimeout(() => {
|
|
8566
8566
|
handleSuggestionClick(suggestion);
|
|
8567
8567
|
setOpen(false);
|
|
8568
|
-
},
|
|
8568
|
+
}, 50);
|
|
8569
8569
|
}
|
|
8570
8570
|
}
|
|
8571
8571
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@abgov/jsonforms-components",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.51.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",
|