@abgov/jsonforms-components 2.30.2 → 2.32.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
|
@@ -5088,16 +5088,6 @@ const JsonFormRegisterProvider = ({
|
|
|
5088
5088
|
return 'The element does not exist';
|
|
5089
5089
|
}
|
|
5090
5090
|
}
|
|
5091
|
-
if (registers === null || registers === void 0 ? void 0 : registers.nonAnonymous) {
|
|
5092
|
-
const matchFound = registers === null || registers === void 0 ? void 0 : registers.nonAnonymous.some(nonAnon => {
|
|
5093
|
-
var _a;
|
|
5094
|
-
if ((_a = criteria === null || criteria === void 0 ? void 0 : criteria.urn) === null || _a === void 0 ? void 0 : _a.toString().includes(nonAnon)) {
|
|
5095
|
-
return true;
|
|
5096
|
-
}
|
|
5097
|
-
return false;
|
|
5098
|
-
});
|
|
5099
|
-
return matchFound ? 'The element does not allow anonymous reading' : '';
|
|
5100
|
-
}
|
|
5101
5091
|
}
|
|
5102
5092
|
return '';
|
|
5103
5093
|
},
|
|
@@ -5998,7 +5988,7 @@ const callout = props => {
|
|
|
5998
5988
|
const testid = (_a = componentProps.message) === null || _a === void 0 ? void 0 : _a.replace(/\s/g, '');
|
|
5999
5989
|
return jsx(GoACallout, Object.assign({}, componentProps, {
|
|
6000
5990
|
"data-testid": testid,
|
|
6001
|
-
children: componentProps.message
|
|
5991
|
+
children: componentProps === null || componentProps === void 0 ? void 0 : componentProps.message
|
|
6002
5992
|
}));
|
|
6003
5993
|
};
|
|
6004
5994
|
const GoACalloutController = props => {
|
|
@@ -6009,6 +5999,7 @@ const GoACalloutController = props => {
|
|
|
6009
5999
|
data
|
|
6010
6000
|
} = props;
|
|
6011
6001
|
let showCallout;
|
|
6002
|
+
/* istanbul ignore next */
|
|
6012
6003
|
if (data === undefined || Array.isArray(data) && data.length === 0) {
|
|
6013
6004
|
showCallout = false;
|
|
6014
6005
|
} else {
|
|
@@ -6020,6 +6011,7 @@ const GoACalloutController = props => {
|
|
|
6020
6011
|
children: callout(calloutProps)
|
|
6021
6012
|
});
|
|
6022
6013
|
};
|
|
6014
|
+
/* istanbul ignore next */
|
|
6023
6015
|
const CalloutReviewControl = () => {
|
|
6024
6016
|
return jsx(Fragment, {});
|
|
6025
6017
|
};
|
|
@@ -6339,9 +6331,11 @@ const GoATimeInput = props => {
|
|
|
6339
6331
|
readonly: readOnly,
|
|
6340
6332
|
testId: (appliedUiSchemaOptions === null || appliedUiSchemaOptions === void 0 ? void 0 : appliedUiSchemaOptions.testId) || `${id}-input`,
|
|
6341
6333
|
onBlur: (name, value) => {
|
|
6334
|
+
/* istanbul ignore next */
|
|
6342
6335
|
if (isVisited === false && setIsVisited) {
|
|
6343
6336
|
setIsVisited();
|
|
6344
6337
|
}
|
|
6338
|
+
/* istanbul ignore next */
|
|
6345
6339
|
handleChange(path, value === '' ? undefined : value);
|
|
6346
6340
|
},
|
|
6347
6341
|
onChange: (name, value) => {},
|
|
@@ -11444,6 +11438,7 @@ const AddressLookUpControl = props => {
|
|
|
11444
11438
|
}, [debouncedRenderAddress]); // eslint-disable-line react-hooks/exhaustive-deps
|
|
11445
11439
|
useEffect(() => {
|
|
11446
11440
|
const fetchSuggestions = async () => {
|
|
11441
|
+
/* istanbul ignore next */
|
|
11447
11442
|
if (debouncedRenderAddress.length > 2 && dropdownSelected === false) {
|
|
11448
11443
|
setLoading(true);
|
|
11449
11444
|
setOpen(true);
|
|
@@ -11475,6 +11470,7 @@ const AddressLookUpControl = props => {
|
|
|
11475
11470
|
const handleDropdownChange = value => {
|
|
11476
11471
|
setSearchTerm(value);
|
|
11477
11472
|
};
|
|
11473
|
+
/* istanbul ignore next */
|
|
11478
11474
|
const handleSuggestionClick = suggestion => {
|
|
11479
11475
|
const suggestAddress = mapSuggestionToAddress(suggestion);
|
|
11480
11476
|
setAddress(suggestAddress);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@abgov/jsonforms-components",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.32.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",
|
|
@@ -20,7 +20,7 @@ export interface Errors {
|
|
|
20
20
|
url: string;
|
|
21
21
|
message: string;
|
|
22
22
|
}
|
|
23
|
-
export type RegisterDataType = string[] | LabelValueRegisterData[];
|
|
23
|
+
export type RegisterDataType = string[] | LabelValueRegisterData[] | Record<string, unknown>[];
|
|
24
24
|
export interface RegisterConfigData extends RegisterConfig {
|
|
25
25
|
data?: RegisterDataType;
|
|
26
26
|
errors?: Record<string, Errors>;
|