Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This commits moves the datepicker directive from gmf to ngeo.
The wmstime service was splitted in two for this. Now we have the time service in ngeo, and the wmstime service in gmf. The wms time service has the formatting functions, while the time service has simple option setting functions and and utc utility function.
For all of this to work, jquery-ui needs to be a dependency of ngeo instead of gmf, and angular ui-date too. So the third-party folder was moved, and I had to tweak the Makefile a bit for it to work.
Also the ui-date library was included globally in gmf, so that's what I did here too, and that's the bulk of the file changes we see here.
Here the link to the original datepicker example, I kept it since the format is a bit different. It'll visually work exactly as it used to, but the example uses the new ngeo datepicker instead of the gmf one that was deleted:
http://jlap.github.io/ngeo/datepicker/examples/contribs/gmf/datepicker.html
And here's and example right in ngeo:
http://jlap.github.io/ngeo/datepicker/examples/datepicker.html
A nice addition could be to add date formatting functions to the ngeo.time class, but I think that might be out of scope for the ticket.