CMS-3905 Make api.ui.time.Calendar
Refactored, grouped logic into methods