@abgov/jsonforms-components 1.42.0 → 1.42.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 +5 -7
- package/package.json +1 -1
package/index.esm.js
CHANGED
|
@@ -4541,14 +4541,12 @@ const Dropdown = props => {
|
|
|
4541
4541
|
}, [isEqual(props.items, prevCountRef.current)]);
|
|
4542
4542
|
useEffect(() => {
|
|
4543
4543
|
if (textInput) {
|
|
4544
|
-
textInput.addEventListener('click', inputTextOnClick);
|
|
4545
4544
|
textInput.addEventListener('keydown', handleKeyDown);
|
|
4546
4545
|
textInput.addEventListener('blur', handleTextInputOnBlur);
|
|
4547
4546
|
}
|
|
4548
4547
|
document.addEventListener('keydown', handleDocumentKeyDown);
|
|
4549
4548
|
return () => {
|
|
4550
4549
|
if (textInput) {
|
|
4551
|
-
textInput.removeEventListener('click', inputTextOnClick);
|
|
4552
4550
|
textInput.removeEventListener('keydown', handleKeyDown);
|
|
4553
4551
|
textInput.removeEventListener('blur', handleTextInputOnBlur);
|
|
4554
4552
|
}
|
|
@@ -4569,9 +4567,6 @@ const Dropdown = props => {
|
|
|
4569
4567
|
}
|
|
4570
4568
|
}
|
|
4571
4569
|
};
|
|
4572
|
-
const inputTextOnClick = e => {
|
|
4573
|
-
setIsOpen(previousIsOpen => !previousIsOpen);
|
|
4574
|
-
};
|
|
4575
4570
|
const updateDropDownData = item => {
|
|
4576
4571
|
onChange(item.value);
|
|
4577
4572
|
setSelectedOption(item.value);
|
|
@@ -4696,6 +4691,9 @@ const Dropdown = props => {
|
|
|
4696
4691
|
"data-testid": id,
|
|
4697
4692
|
children: [jsx(GoADropdownTextbox, {
|
|
4698
4693
|
isOpen: isOpen,
|
|
4694
|
+
onClick: e => {
|
|
4695
|
+
setIsOpen(previousIsOpen => !previousIsOpen);
|
|
4696
|
+
},
|
|
4699
4697
|
children: jsx(GoAInput, {
|
|
4700
4698
|
disabled: !enabled,
|
|
4701
4699
|
name: `dropdown-${label}`,
|
|
@@ -5772,8 +5770,7 @@ const FormStepper = props => {
|
|
|
5772
5770
|
},
|
|
5773
5771
|
children: readOnly ? 'View' : 'Edit'
|
|
5774
5772
|
})]
|
|
5775
|
-
}), jsx(
|
|
5776
|
-
minChildWidth: "600px",
|
|
5773
|
+
}), jsx("div", {
|
|
5777
5774
|
children: category.elements.filter(field => {
|
|
5778
5775
|
var _a, _b;
|
|
5779
5776
|
const conditionProps = (_a = field.rule) === null || _a === void 0 ? void 0 : _a.condition;
|
|
@@ -8418,6 +8415,7 @@ const FullNameControl = props => {
|
|
|
8418
8415
|
};
|
|
8419
8416
|
const [nameData, setNameData] = useState(data || defaultName);
|
|
8420
8417
|
const updateFormData = updatedData => {
|
|
8418
|
+
updatedData = Object.fromEntries(Object.entries(updatedData).filter(([_, value]) => value !== ''));
|
|
8421
8419
|
handleChange(path, updatedData);
|
|
8422
8420
|
};
|
|
8423
8421
|
const handleInputChange = (field, value) => {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@abgov/jsonforms-components",
|
|
3
|
-
"version": "1.42.
|
|
3
|
+
"version": "1.42.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",
|