Slightly modifies the changes introduced in https://github.com/TerriaJS/terriajs/pull/7026 so that the default date/time values are used only if the parameter is required (i.e minOccurs=1)
The default value will be equal to the timeline value when the WPS form is rendered
Refactors the implementation of date/time parameters moving most of the validation and logic to model layer, this greatly simplifies the view components
Test me
Add the Date Time WPS catalog item from share link for this branch and test the date field - setting new date, clearing etc. Note that submitting won't work because the catalog item points to a static gist ProcessDescription XML.
Checklist
[x] There are unit tests to verify my changes are correct or unit tests aren't applicable (if so, write quick reason why unit tests don't exist)
[ ] I've updated relevant documentation in doc/.
[x] I've updated CHANGES.md with what I changed.
[x] I've provided instructions in the PR description on how to test this PR.
What this PR does
Follow up to https://github.com/TerriaJS/terriajs/pull/7026, fixes https://github.com/TerriaJS/terriajs/issues/7200
Test me
Date Time WPS
catalog item from share link for this branch and test the date field - setting new date, clearing etc. Note that submitting won't work because the catalog item points to a static gist ProcessDescription XML.Checklist
doc/
.