From 7ef0dec1851f2099ddd05972447c84c2a82dd865 Mon Sep 17 00:00:00 2001 From: Paulus Schoutsen Date: Mon, 22 Jun 2015 00:25:56 -0700 Subject: [PATCH] Update frontend to use NuclearJS --- homeassistant/components/demo.py | 4 +- homeassistant/components/frontend/version.py | 2 +- .../frontend/www_static/frontend.html | 2176 +++++++++-------- .../frontend/www_static/polymer/bower.json | 3 +- .../www_static/polymer/cards/state-card.html | 4 +- .../polymer/components/entity-list.html | 21 +- .../polymer/components/events-list.html | 17 +- .../polymer/components/logbook-entry.html | 4 +- .../polymer/components/services-list.html | 32 +- .../components/state-history-chart-line.html | 2 + .../state-history-chart-timeline.html | 16 +- .../components/state-history-charts.html | 40 +- .../polymer/components/stream-status.html | 21 +- .../polymer/dialogs/more-info-dialog.html | 89 +- .../www_static/polymer/home-assistant-js | 2 +- .../www_static/polymer/home-assistant.html | 30 +- .../polymer/layouts/home-assistant-main.html | 167 +- .../polymer/layouts/login-form.html | 29 +- .../layouts/partial-dev-fire-event.html | 2 +- .../layouts/partial-dev-set-state.html | 13 +- .../polymer/layouts/partial-history.html | 51 +- .../polymer/layouts/partial-logbook.html | 58 +- .../polymer/layouts/partial-states.html | 151 +- .../polymer/managers/modal-manager.html | 35 +- .../managers/notification-manager.html | 23 +- .../polymer/managers/preferences-manager.html | 40 + .../more-infos/more-info-configurator.html | 9 +- .../polymer/more-infos/more-info-group.html | 22 +- .../more-infos/more-info-thermostat.html | 5 +- .../polymer/resources/ha-preferences.html | 51 + .../polymer/resources/home-assistant-js.html | 64 +- .../www_static/polymer/resources/lodash.html | 5 + .../resources/store-listener-behavior.html | 39 +- .../www_static/webcomponents-lite.min.js | 6 +- 34 files changed, 1691 insertions(+), 1542 deletions(-) create mode 100644 homeassistant/components/frontend/www_static/polymer/managers/preferences-manager.html create mode 100644 homeassistant/components/frontend/www_static/polymer/resources/ha-preferences.html create mode 100644 homeassistant/components/frontend/www_static/polymer/resources/lodash.html diff --git a/homeassistant/components/demo.py b/homeassistant/components/demo.py index a4eb9481873..07f04dc7aeb 100644 --- a/homeassistant/components/demo.py +++ b/homeassistant/components/demo.py @@ -102,8 +102,8 @@ def setup(hass, config): { "auto": True, ATTR_ENTITY_ID: [ - "device_tracker.Paulus", - "device_tracker.Anne_Therese" + "device_tracker.paulus", + "device_tracker.anne_therese" ] }) diff --git a/homeassistant/components/frontend/version.py b/homeassistant/components/frontend/version.py index ededf05d5ed..de273d5c65f 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 = "010d9683fa9d210abd199b3cde4edbc0" +VERSION = "18d02dc9820b907ac4159da09cd20c4b" diff --git a/homeassistant/components/frontend/www_static/frontend.html b/homeassistant/components/frontend/www_static/frontend.html index 808617e8af5..c3a7243ab19 100644 --- a/homeassistant/components/frontend/www_static/frontend.html +++ b/homeassistant/components/frontend/www_static/frontend.html @@ -516,7 +516,7 @@ debouncer.stop(); } } }); -Polymer.version = '1.0.3'; +Polymer.version = '1.0.4'; Polymer.Base._addFeature({ _registerFeatures: function () { this._prepIs(); @@ -540,13 +540,6 @@ this._marshalBehaviors(); + @@ -11333,7 +11497,7 @@ window.hass.uiUtil.formatDate = function(dateObj) { /** * @demo demo/index.html - * @polymerBehavior + * @polymerBehavior Polymer.IronButtonState */ Polymer.IronButtonStateImpl = { @@ -11494,7 +11658,7 @@ window.hass.uiUtil.formatDate = function(dateObj) { }; - /** @polymerBehavior Polymer.IronButtonState */ + /** @polymerBehavior */ Polymer.IronButtonState = [ Polymer.IronA11yKeysBehavior, Polymer.IronButtonStateImpl @@ -12902,10 +13066,6 @@ is separate from validation, and `allowed-pattern` does not affect how the input /** * The Boolean return value of the media query. - * - * @attribute queryMatches - * @type Boolean - * @default false */ queryMatches: { type: Boolean, @@ -12916,9 +13076,6 @@ is separate from validation, and `allowed-pattern` does not affect how the input /** * The CSS media query to evaluate. - * - * @attribute query - * @type String */ query: { type: String, @@ -13949,9 +14106,9 @@ is separate from validation, and `allowed-pattern` does not affect how the input * * The input element can be accessed by the `inputElement` property if you need to access * properties or methods that are not exposed. - * @polymerBehavior + * @polymerBehavior Polymer.PaperInputBehavior */ - Polymer.PaperInputBehavior = { + Polymer.PaperInputBehaviorImpl = { properties: { @@ -14013,6 +14170,14 @@ is separate from validation, and `allowed-pattern` does not affect how the input type: String }, + /** + * The datalist of the input (if any). This should match the id of an existing . Bind this + * to the ``'s `list` property. + */ + list: { + type: String + }, + /** * A pattern to validate the `input` with. Bind this to the ``'s * `pattern` property. @@ -14244,6 +14409,8 @@ is separate from validation, and `allowed-pattern` does not affect how the input }; + Polymer.PaperInputBehavior = [Polymer.IronControlState, Polymer.PaperInputBehaviorImpl]; + @@ -14506,6 +14673,104 @@ Fires `api-load` event when ready. } }); + - +