@abgov/jsonforms-components 1.56.1 → 1.56.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 +2 -11
- package/package.json +1 -1
package/index.esm.js
CHANGED
|
@@ -9225,11 +9225,7 @@ const FullNameControl = props => {
|
|
|
9225
9225
|
enabled
|
|
9226
9226
|
} = props;
|
|
9227
9227
|
const requiredFields = schema.required;
|
|
9228
|
-
const defaultName = {
|
|
9229
|
-
firstName: '',
|
|
9230
|
-
middleName: '',
|
|
9231
|
-
lastName: ''
|
|
9232
|
-
};
|
|
9228
|
+
const defaultName = {};
|
|
9233
9229
|
const [nameData, setNameData] = useState(data || defaultName);
|
|
9234
9230
|
const updateFormData = updatedData => {
|
|
9235
9231
|
updatedData = Object.fromEntries(Object.entries(updatedData).filter(([_, value]) => value !== ''));
|
|
@@ -9267,12 +9263,7 @@ const FullNameDobControl = props => {
|
|
|
9267
9263
|
} = props;
|
|
9268
9264
|
const requiredFields = schema.required;
|
|
9269
9265
|
const [errors, setErrors] = useState({});
|
|
9270
|
-
const defaultNameAndDob = {
|
|
9271
|
-
firstName: '',
|
|
9272
|
-
middleName: '',
|
|
9273
|
-
lastName: '',
|
|
9274
|
-
dateOfBirth: undefined
|
|
9275
|
-
};
|
|
9266
|
+
const defaultNameAndDob = {};
|
|
9276
9267
|
const validDates = () => {
|
|
9277
9268
|
const currentDate = new Date();
|
|
9278
9269
|
const minDate = new Date(currentDate.getFullYear() - 150, currentDate.getMonth(), currentDate.getDate()).toISOString().substring(0, 10);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@abgov/jsonforms-components",
|
|
3
|
-
"version": "1.56.
|
|
3
|
+
"version": "1.56.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",
|