@abgov/jsonforms-components 1.24.2 → 1.24.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.
Files changed (2) hide show
  1. package/index.esm.js +10 -8
  2. 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
- if (props) {
3544
- if ('min' in props && typeof props.min === 'string') {
3545
- props['min'] = standardizeDate(props.min);
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 ('max' in props && typeof props.max === 'string') {
3548
- props['max'] = standardizeDate(props.max);
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 props;
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
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abgov/jsonforms-components",
3
- "version": "1.24.2",
3
+ "version": "1.24.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",