@abgov/jsonforms-components 1.38.1 → 1.38.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
CHANGED
|
@@ -4511,6 +4511,7 @@ const Dropdown = props => {
|
|
|
4511
4511
|
onChange,
|
|
4512
4512
|
optionListMaxHeight,
|
|
4513
4513
|
isAutoCompletion,
|
|
4514
|
+
enabled,
|
|
4514
4515
|
id
|
|
4515
4516
|
} = props;
|
|
4516
4517
|
const [isOpen, setIsOpen] = useState(false);
|
|
@@ -4674,6 +4675,7 @@ const Dropdown = props => {
|
|
|
4674
4675
|
onTrailingIconClick: () => {
|
|
4675
4676
|
setIsOpen(!isOpen);
|
|
4676
4677
|
},
|
|
4678
|
+
disabled: !enabled,
|
|
4677
4679
|
name: `dropdown-${label}`,
|
|
4678
4680
|
width: "100%",
|
|
4679
4681
|
value: inputText,
|
|
@@ -4729,10 +4731,7 @@ const EnumSelect = props => {
|
|
|
4729
4731
|
var _a, _b, _c, _d;
|
|
4730
4732
|
const {
|
|
4731
4733
|
data,
|
|
4732
|
-
id,
|
|
4733
4734
|
enabled,
|
|
4734
|
-
errors,
|
|
4735
|
-
schema,
|
|
4736
4735
|
path,
|
|
4737
4736
|
handleChange,
|
|
4738
4737
|
options,
|
|
@@ -4784,6 +4783,7 @@ const EnumSelect = props => {
|
|
|
4784
4783
|
message: error
|
|
4785
4784
|
}) : jsx(Dropdown, {
|
|
4786
4785
|
items: mergedOptions,
|
|
4786
|
+
enabled: !enabled,
|
|
4787
4787
|
selected: data,
|
|
4788
4788
|
id: `jsonforms-${label}-dropdown`,
|
|
4789
4789
|
label: label,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@abgov/jsonforms-components",
|
|
3
|
-
"version": "1.38.
|
|
3
|
+
"version": "1.38.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",
|