@abgov/jsonforms-components 1.43.5 → 1.43.7
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 +13 -16
- package/package.json +1 -1
package/index.esm.js
CHANGED
|
@@ -1628,12 +1628,6 @@ $$l({ target: 'Object', stat: true, arity: 2, forced: Object.assign !== assign }
|
|
|
1628
1628
|
assign: assign
|
|
1629
1629
|
});
|
|
1630
1630
|
|
|
1631
|
-
let _$9 = t => t,
|
|
1632
|
-
_t$9;
|
|
1633
|
-
const FormFieldWrapper = styled.div(_t$9 || (_t$9 = _$9`
|
|
1634
|
-
margin-bottom: var(--goa-space-l);
|
|
1635
|
-
`));
|
|
1636
|
-
|
|
1637
1631
|
var $$k = _export;
|
|
1638
1632
|
var toObject$3 = toObject$7;
|
|
1639
1633
|
var lengthOfArrayLike$3 = lengthOfArrayLike$5;
|
|
@@ -2795,16 +2789,16 @@ const onChangeForNumericControl = props => {
|
|
|
2795
2789
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
2796
2790
|
const onChangeForCheckboxData = (data, name, value) => data ? !value ? data === null || data === void 0 ? void 0 : data.filter(item => item !== name) : [...data, name] : [name];
|
|
2797
2791
|
|
|
2798
|
-
let _$
|
|
2799
|
-
_t$
|
|
2792
|
+
let _$9 = t => t,
|
|
2793
|
+
_t$9,
|
|
2800
2794
|
_t2$5;
|
|
2801
|
-
styled.div(_t$
|
|
2795
|
+
styled.div(_t$9 || (_t$9 = _$9`
|
|
2802
2796
|
height: 70vh;
|
|
2803
2797
|
overflow-y: auto;
|
|
2804
2798
|
padding-left: var(--goa-space-2xs);
|
|
2805
2799
|
padding-right: var(--goa-space-2xs);
|
|
2806
2800
|
`));
|
|
2807
|
-
const Visible = styled.div(_t2$5 || (_t2$5 = _$
|
|
2801
|
+
const Visible = styled.div(_t2$5 || (_t2$5 = _$9`
|
|
2808
2802
|
display: ${0};
|
|
2809
2803
|
`), p => p.visible ? 'initial' : 'none');
|
|
2810
2804
|
|
|
@@ -3632,6 +3626,12 @@ const JsonFormRegisterProvider = ({
|
|
|
3632
3626
|
});
|
|
3633
3627
|
};
|
|
3634
3628
|
|
|
3629
|
+
let _$8 = t => t,
|
|
3630
|
+
_t$8;
|
|
3631
|
+
const FormFieldWrapper = styled.div(_t$8 || (_t$8 = _$8`
|
|
3632
|
+
margin-bottom: var(--goa-space-l);
|
|
3633
|
+
`));
|
|
3634
|
+
|
|
3635
3635
|
const GoAInputBaseControl = props => {
|
|
3636
3636
|
var _a, _b;
|
|
3637
3637
|
const {
|
|
@@ -4882,7 +4882,7 @@ const BooleanComponent = ({
|
|
|
4882
4882
|
required,
|
|
4883
4883
|
errors
|
|
4884
4884
|
}) => {
|
|
4885
|
-
var _a;
|
|
4885
|
+
var _a, _b, _c;
|
|
4886
4886
|
const errorsFormInput = checkFieldValidity({
|
|
4887
4887
|
data,
|
|
4888
4888
|
uischema,
|
|
@@ -4890,7 +4890,7 @@ const BooleanComponent = ({
|
|
|
4890
4890
|
required,
|
|
4891
4891
|
errors
|
|
4892
4892
|
});
|
|
4893
|
-
const text =
|
|
4893
|
+
const text = `${((_a = uischema === null || uischema === void 0 ? void 0 : uischema.options) === null || _a === void 0 ? void 0 : _a.text) ? (_b = uischema === null || uischema === void 0 ? void 0 : uischema.options) === null || _b === void 0 ? void 0 : _b.text : label}${required ? ' (required)' : ''}`;
|
|
4894
4894
|
return jsx(GoACheckbox, Object.assign({
|
|
4895
4895
|
error: errorsFormInput.length > 0,
|
|
4896
4896
|
testId: `${path}-checkbox-test-id`,
|
|
@@ -4901,10 +4901,9 @@ const BooleanComponent = ({
|
|
|
4901
4901
|
onChange: (_, checked) => {
|
|
4902
4902
|
handleChange(path, checked);
|
|
4903
4903
|
}
|
|
4904
|
-
}, (
|
|
4904
|
+
}, (_c = uischema === null || uischema === void 0 ? void 0 : uischema.options) === null || _c === void 0 ? void 0 : _c.componentProps));
|
|
4905
4905
|
};
|
|
4906
4906
|
const BooleanControl = props => jsx(GoAInputBaseControl, Object.assign({}, props, {
|
|
4907
|
-
noLabel: true,
|
|
4908
4907
|
input: BooleanComponent
|
|
4909
4908
|
}));
|
|
4910
4909
|
const GoABooleanControlTester = rankWith(2, isBooleanControl);
|
|
@@ -8550,7 +8549,6 @@ const FullNameDobControl = props => {
|
|
|
8550
8549
|
setFormData(updatedData);
|
|
8551
8550
|
updateFormData(updatedData);
|
|
8552
8551
|
};
|
|
8553
|
-
/* istanbul ignore next */
|
|
8554
8552
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
8555
8553
|
const handleRequiredFieldBlur = (name, updatedData) => {
|
|
8556
8554
|
const err = Object.assign({}, errors);
|
|
@@ -8581,7 +8579,6 @@ const FullNameDobControl = props => {
|
|
|
8581
8579
|
handleInputChange(name, value);
|
|
8582
8580
|
},
|
|
8583
8581
|
onBlur: name => {
|
|
8584
|
-
/* istanbul ignore next */
|
|
8585
8582
|
handleRequiredFieldBlur(name);
|
|
8586
8583
|
},
|
|
8587
8584
|
width: "100%"
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@abgov/jsonforms-components",
|
|
3
|
-
"version": "1.43.
|
|
3
|
+
"version": "1.43.7",
|
|
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",
|