@abgov/jsonforms-components 2.64.0 → 2.64.1
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 +7 -4
- package/package.json +1 -1
- package/renderer-catalog.json +2 -2
package/index.esm.js
CHANGED
|
@@ -17591,16 +17591,19 @@ const AddressLookUpControl = props => {
|
|
|
17591
17591
|
setDropdownSelected(true);
|
|
17592
17592
|
};
|
|
17593
17593
|
const handleRequiredFieldBlur = (name, value) => {
|
|
17594
|
+
var _ref, _ref2, _ref3, _addressContainerRef$;
|
|
17594
17595
|
const err = Object.assign({}, errors);
|
|
17595
|
-
|
|
17596
|
+
const addressValue = name in address ? address[name] : undefined;
|
|
17597
|
+
const liveInputValue = (_ref = (_ref2 = (_ref3 = value != null ? value : (_addressContainerRef$ = addressContainerRef.current) == null || (_addressContainerRef$ = _addressContainerRef$.querySelector(`goa-input[name="${name}"]`)) == null ? void 0 : _addressContainerRef$.value) != null ? _ref3 : addressValue) != null ? _ref2 : data == null ? void 0 : data[name]) != null ? _ref : '';
|
|
17598
|
+
if (liveInputValue.trim() === '') {
|
|
17596
17599
|
err[name] = `${getAddressLookupFieldLabel(name)} is required`;
|
|
17597
|
-
setErrors(err);
|
|
17598
17600
|
} else {
|
|
17599
|
-
delete
|
|
17601
|
+
delete err[name];
|
|
17600
17602
|
}
|
|
17603
|
+
setErrors(err);
|
|
17601
17604
|
setSuggestions([]);
|
|
17602
17605
|
setOpen(false);
|
|
17603
|
-
if (value) {
|
|
17606
|
+
if (name === 'addressLine1' && value !== undefined) {
|
|
17604
17607
|
const newAddress = Object.assign({}, address, {
|
|
17605
17608
|
addressLine1: value
|
|
17606
17609
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@abgov/jsonforms-components",
|
|
3
|
-
"version": "2.64.
|
|
3
|
+
"version": "2.64.1",
|
|
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",
|
package/renderer-catalog.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"schemaVersion": "1.0.0",
|
|
3
|
-
"generatedAt": "2026-05-
|
|
4
|
-
"sourceCommit": "
|
|
3
|
+
"generatedAt": "2026-05-15T20:39:46.683Z",
|
|
4
|
+
"sourceCommit": "74a30f12e9796e207b9c1f43d16a764f49fc22ad",
|
|
5
5
|
"sourcePath": "libs/jsonforms-components/src/index.ts",
|
|
6
6
|
"rendererCount": 33,
|
|
7
7
|
"renderers": [
|