diff --git a/homeassistant/components/frontend/version.py b/homeassistant/components/frontend/version.py index e3e2ae2bf01..32ac212af89 100644 --- a/homeassistant/components/frontend/version.py +++ b/homeassistant/components/frontend/version.py @@ -1,2 +1,2 @@ """ DO NOT MODIFY. Auto-generated by build_frontend script """ -VERSION = "a44970ec771fb08baa6b54ff00a4e223" +VERSION = "9e4807d493dcb52e24dcd5163e6a2d4b" diff --git a/homeassistant/components/frontend/www_static/frontend.html b/homeassistant/components/frontend/www_static/frontend.html index 149052babc5..c62c8efa628 100644 --- a/homeassistant/components/frontend/www_static/frontend.html +++ b/homeassistant/components/frontend/www_static/frontend.html @@ -5803,7 +5803,6 @@ this._removeChildren(); } }); - - - - - - - @@ -22777,7 +20859,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
- + Loading logbook entries
@@ -22828,6 +20910,10 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN function(entries) { return entries.toArray(); }, ], }, + + datePicker: { + type: Object, + }, }, isStaleChanged: function(newVal) { @@ -22839,15 +20925,25 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN } }, - handleShowDatePicker: function() { - uiActions.showDatePicker( - logbookActions.changeCurrentDate, - this.selectedDate); - }, - handleRefresh: function() { logbookActions.fetchDate(this.selectedDate); }, + + datepickerFocus: function() { + this.datePicker.adjustPosition(); + this.datePicker.gotoDate(moment('2015-06-30').toDate()); + }, + + attached: function() { + this.datePicker = new Pikaday({ + field: this.$.datePicker.inputElement, + onSelect: logbookActions.changeCurrentDate, + }); + }, + + detached: function() { + this.datePicker.destroy(); + }, }); })(); @@ -23141,7 +21237,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
- +
@@ -23197,10 +21293,20 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN entityHistoryActions.fetchSelectedDate(); }, - handleShowDatePicker: function() { - uiActions.showDatePicker( - entityHistoryActions.changeCurrentDate, - this.selectedDate); + datepickerFocus: function() { + this.datePicker.adjustPosition(); + this.datePicker.gotoDate(moment('2015-06-30').toDate()); + }, + + attached: function() { + this.datePicker = new Pikaday({ + field: this.$.datePicker.inputElement, + onSelect: entityHistoryActions.changeCurrentDate, + }); + }, + + detached: function() { + this.datePicker.destroy(); }, computeContentClasses: function(narrow) { @@ -24500,1285 +22606,6 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN })(); - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -