@abgov/jsonforms-components 1.24.2 → 1.24.4
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 +14 -9
- package/package.json +1 -1
package/index.esm.js
CHANGED
|
@@ -3539,16 +3539,18 @@ const invalidDateFormat = (scope, type) => {
|
|
|
3539
3539
|
message: errMalformedDate(scope, type)
|
|
3540
3540
|
});
|
|
3541
3541
|
};
|
|
3542
|
+
// eslint-disable-next-line
|
|
3542
3543
|
const reformatDateProps = props => {
|
|
3543
|
-
|
|
3544
|
-
|
|
3545
|
-
|
|
3544
|
+
const newProps = Object.assign({}, props);
|
|
3545
|
+
if (newProps) {
|
|
3546
|
+
if ((newProps === null || newProps === void 0 ? void 0 : newProps.min) && typeof newProps.min === 'string') {
|
|
3547
|
+
newProps.min = standardizeDate(newProps.min);
|
|
3546
3548
|
}
|
|
3547
|
-
if (
|
|
3548
|
-
|
|
3549
|
+
if ((newProps === null || newProps === void 0 ? void 0 : newProps.max) && typeof newProps.max === 'string') {
|
|
3550
|
+
newProps.max = standardizeDate(newProps.max);
|
|
3549
3551
|
}
|
|
3550
3552
|
}
|
|
3551
|
-
return
|
|
3553
|
+
return newProps;
|
|
3552
3554
|
};
|
|
3553
3555
|
const GoADateInput = props => {
|
|
3554
3556
|
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
@@ -4065,13 +4067,13 @@ const RadioGroup = props => {
|
|
|
4065
4067
|
}, appliedUiSchemaOptions, {
|
|
4066
4068
|
onChange: (name, value) => handleChange(path, value)
|
|
4067
4069
|
}, (_a = uischema === null || uischema === void 0 ? void 0 : uischema.options) === null || _a === void 0 ? void 0 : _a.componentProps, {
|
|
4068
|
-
children: enumData.map(enumValue => {
|
|
4070
|
+
children: enumData.map((enumValue, index) => {
|
|
4069
4071
|
return jsx(GoARadioItem, Object.assign({
|
|
4070
4072
|
name: enumValue,
|
|
4071
4073
|
value: `${enumValue}`
|
|
4072
4074
|
}, appliedUiSchemaOptions, {
|
|
4073
4075
|
label: enumValue
|
|
4074
|
-
}));
|
|
4076
|
+
}), `list-item-${enumValue}-${index}`);
|
|
4075
4077
|
})
|
|
4076
4078
|
}));
|
|
4077
4079
|
};
|
|
@@ -5062,7 +5064,10 @@ data, field, index, requiredFields) => {
|
|
|
5062
5064
|
elements.forEach((element, j) => {
|
|
5063
5065
|
const fieldName = element.scope.split('/').pop() || '';
|
|
5064
5066
|
const label = resolveLabelFromScope(element.scope);
|
|
5065
|
-
|
|
5067
|
+
let value = String(elementData[fieldName]);
|
|
5068
|
+
if (value === 'undefined') {
|
|
5069
|
+
value = '';
|
|
5070
|
+
}
|
|
5066
5071
|
itemData.push([label, value]);
|
|
5067
5072
|
});
|
|
5068
5073
|
detailData.push([`${i}`, itemData]);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@abgov/jsonforms-components",
|
|
3
|
-
"version": "1.24.
|
|
3
|
+
"version": "1.24.4",
|
|
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",
|