@abgov/jsonforms-components 1.50.1 → 1.50.3
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 +16 -15
- package/package.json +1 -1
package/index.esm.js
CHANGED
|
@@ -2807,7 +2807,7 @@ const isRequiredAndHasNoData = props => {
|
|
|
2807
2807
|
data,
|
|
2808
2808
|
required
|
|
2809
2809
|
} = props;
|
|
2810
|
-
return required && (data === undefined || data.length === 0);
|
|
2810
|
+
return required && (data === undefined || (data === null || data === void 0 ? void 0 : data.length) === 0);
|
|
2811
2811
|
};
|
|
2812
2812
|
/**
|
|
2813
2813
|
* Checks the key press value to determine if the key press is a 'Shift' or 'Tab'.
|
|
@@ -3862,7 +3862,6 @@ const GoAInputBaseControl = props => {
|
|
|
3862
3862
|
label,
|
|
3863
3863
|
input,
|
|
3864
3864
|
required,
|
|
3865
|
-
errors,
|
|
3866
3865
|
path,
|
|
3867
3866
|
isStepperReview
|
|
3868
3867
|
} = props;
|
|
@@ -4122,12 +4121,14 @@ const MultiLineText = props => {
|
|
|
4122
4121
|
controlProps: props
|
|
4123
4122
|
});
|
|
4124
4123
|
}
|
|
4124
|
+
onChangeForInputControl({
|
|
4125
|
+
name,
|
|
4126
|
+
value: newValue,
|
|
4127
|
+
controlProps: props
|
|
4128
|
+
});
|
|
4125
4129
|
},
|
|
4126
4130
|
onChange: (name, value) => {
|
|
4127
|
-
|
|
4128
|
-
const newValue = autoCapitalize ? value.toUpperCase() : value;
|
|
4129
|
-
handleChange(path, newValue);
|
|
4130
|
-
}
|
|
4131
|
+
// this is not triggered unless you tab out
|
|
4131
4132
|
}
|
|
4132
4133
|
}, (_l = uischema === null || uischema === void 0 ? void 0 : uischema.options) === null || _l === void 0 ? void 0 : _l.componentProps));
|
|
4133
4134
|
return txtAreaComponent;
|
|
@@ -5323,7 +5324,7 @@ const ReviewItemSection = styled.div(_t2$4 || (_t2$4 = _$5`
|
|
|
5323
5324
|
border-radius: 5px;
|
|
5324
5325
|
|
|
5325
5326
|
.element-style {
|
|
5326
|
-
max-width:
|
|
5327
|
+
max-width: 1600px;
|
|
5327
5328
|
}
|
|
5328
5329
|
`));
|
|
5329
5330
|
const ReviewItemHeader = styled.div(_t3$3 || (_t3$3 = _$5`
|
|
@@ -6648,7 +6649,7 @@ const NonEmptyCellStyle = styled.div(_t2$2 || (_t2$2 = _$2`
|
|
|
6648
6649
|
const ToolBarHeader = styled.div(_t3$1 || (_t3$1 = _$2`
|
|
6649
6650
|
margin-bottom: var(--goa-space-l);
|
|
6650
6651
|
`));
|
|
6651
|
-
const ObjectArrayTitle = styled.
|
|
6652
|
+
const ObjectArrayTitle = styled.h3(_t4$1 || (_t4$1 = _$2`
|
|
6652
6653
|
margin-bottom: var(--goa-space-l);
|
|
6653
6654
|
`));
|
|
6654
6655
|
const TextCenter = styled.div(_t5$1 || (_t5$1 = _$2`
|
|
@@ -7807,7 +7808,7 @@ const SearchBox = styled.div(_t$1 || (_t$1 = _$1`
|
|
|
7807
7808
|
width: 100%;
|
|
7808
7809
|
position: absolute;
|
|
7809
7810
|
|
|
7810
|
-
background: var(--color-white);
|
|
7811
|
+
background: var(--goa-color-greyscale-white);
|
|
7811
7812
|
box-shadow: 0 8px 8px rgb(0 0 0 / 20%), 0 4px 4px rgb(0 0 0 / 10%);
|
|
7812
7813
|
z-index: 99;
|
|
7813
7814
|
overflow: hidden auto;
|
|
@@ -7817,10 +7818,10 @@ const SearchBox = styled.div(_t$1 || (_t$1 = _$1`
|
|
|
7817
7818
|
}
|
|
7818
7819
|
.suggestion-active,
|
|
7819
7820
|
.suggestions li:hover {
|
|
7820
|
-
background-color: var(--color-
|
|
7821
|
-
color: var(--color-white);
|
|
7821
|
+
background-color: var(--goa-color-interactive-default);
|
|
7822
|
+
color: var(--goa-color-greyscale-white);
|
|
7822
7823
|
cursor: pointer;
|
|
7823
|
-
font-weight:
|
|
7824
|
+
font-weight: 600;
|
|
7824
7825
|
}
|
|
7825
7826
|
.input-container {
|
|
7826
7827
|
position: relative;
|
|
@@ -7866,13 +7867,13 @@ const ListItem = styled.li(_t6 || (_t6 = _$1`
|
|
|
7866
7867
|
`), ({
|
|
7867
7868
|
selectedIndex,
|
|
7868
7869
|
index
|
|
7869
|
-
}) => selectedIndex === index ? 'var(--color-
|
|
7870
|
+
}) => selectedIndex === index ? 'var(--goa-color-interactive-default)' : '', ({
|
|
7870
7871
|
selectedIndex,
|
|
7871
7872
|
index
|
|
7872
|
-
}) => selectedIndex === index ? 'var(--color-white) !important' : '', ({
|
|
7873
|
+
}) => selectedIndex === index ? 'var(--goa-color-greyscale-white) !important' : '', ({
|
|
7873
7874
|
selectedIndex,
|
|
7874
7875
|
index
|
|
7875
|
-
}) => selectedIndex === index ? '
|
|
7876
|
+
}) => selectedIndex === index ? '600' : '');
|
|
7876
7877
|
|
|
7877
7878
|
const AddressInputs = ({
|
|
7878
7879
|
address,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@abgov/jsonforms-components",
|
|
3
|
-
"version": "1.50.
|
|
3
|
+
"version": "1.50.3",
|
|
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",
|