@abgov/jsonforms-components 2.64.0 → 2.64.2
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 +8 -5
- package/package.json +1 -1
- package/renderer-catalog.json +2 -2
package/index.esm.js
CHANGED
|
@@ -5827,7 +5827,7 @@ styled.td(_t5$3 || (_t5$3 = _$a`
|
|
|
5827
5827
|
vertical-align: top;
|
|
5828
5828
|
`));
|
|
5829
5829
|
const PageReviewContainer = styled.td(_t6$3 || (_t6$3 = _$a`
|
|
5830
|
-
padding:
|
|
5830
|
+
padding: var(--goa-space-xs) var(--goa-space-m) var(--goa-space-xs);
|
|
5831
5831
|
border-bottom: 1px solid #ccc;
|
|
5832
5832
|
width: 100%;
|
|
5833
5833
|
vertical-align: top;
|
|
@@ -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.2",
|
|
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-21T14:18:18.807Z",
|
|
4
|
+
"sourceCommit": "a9fd384f63ab4ad85346b924fb1ff5bbe623a7de",
|
|
5
5
|
"sourcePath": "libs/jsonforms-components/src/index.ts",
|
|
6
6
|
"rendererCount": 33,
|
|
7
7
|
"renderers": [
|