mirror of
https://github.com/home-assistant/core.git
synced 2025-07-21 04:07:08 +00:00
Update frontend
This commit is contained in:
parent
19705ab40a
commit
5a562f3db8
@ -1,2 +1,2 @@
|
||||
""" DO NOT MODIFY. Auto-generated by build_frontend script """
|
||||
VERSION = "453ba2e41c4b0c0c25af5f75e5c14df7"
|
||||
VERSION = "6df4efbaae7a898c33d2cae1f2ca7ef1"
|
||||
|
@ -4191,7 +4191,9 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
||||
height: 48px;
|
||||
opacity: 0.5;
|
||||
pointer-events: none;
|
||||
}</style><template><div id="toggleContainer"><div id="toggleBar" class="toggle-bar"></div><div id="toggleButton" class="toggle-button"><paper-ripple id="ink" class="toggle-ink circle" recenters=""></paper-ripple></div></div></template><script>Polymer({is:"paper-toggle-button",behaviors:[Polymer.PaperInkyFocusBehavior],hostAttributes:{role:"button","aria-pressed":"false",tabindex:0},properties:{checked:{type:Boolean,value:!1,reflectToAttribute:!0,notify:!0,observer:"_checkedChanged"},toggles:{type:Boolean,value:!0,reflectToAttribute:!0}},listeners:{track:"_ontrack"},ready:function(){this._isReady=!0},_buttonStateChanged:function(){this.disabled||this._isReady&&(this.checked=this.active)},_checkedChanged:function(t){this.active=this.checked,this.fire("iron-change")},_ontrack:function(t){var e=t.detail;"start"===e.state?this._trackStart(e):"track"===e.state?this._trackMove(e):"end"===e.state&&this._trackEnd(e)},_trackStart:function(t){this._width=this.$.toggleBar.offsetWidth/2,this._trackChecked=this.checked,this.$.toggleButton.classList.add("dragging")},_trackMove:function(t){var e=t.dx;this._x=Math.min(this._width,Math.max(0,this._trackChecked?this._width+e:e)),this.translate3d(this._x+"px",0,0,this.$.toggleButton),this._userActivate(this._x>this._width/2)},_trackEnd:function(t){this.$.toggleButton.classList.remove("dragging"),this.transform("",this.$.toggleButton)}});</script></dom-module><dom-module id="ha-entity-toggle" assetpath="components/entity/"><template><paper-toggle-button class="self-center" checked="[[toggleChecked]]" on-change="toggleChanged"></paper-toggle-button></template></dom-module><dom-module id="domain-icon" assetpath="components/"><template><iron-icon icon="[[computeIcon(domain, state)]]"></iron-icon></template></dom-module><dom-module id="state-badge" assetpath="components/entity/"><style>:host {
|
||||
}</style><template><div id="toggleContainer"><div id="toggleBar" class="toggle-bar"></div><div id="toggleButton" class="toggle-button"><paper-ripple id="ink" class="toggle-ink circle" recenters=""></paper-ripple></div></div></template><script>Polymer({is:"paper-toggle-button",behaviors:[Polymer.PaperInkyFocusBehavior],hostAttributes:{role:"button","aria-pressed":"false",tabindex:0},properties:{checked:{type:Boolean,value:!1,reflectToAttribute:!0,notify:!0,observer:"_checkedChanged"},toggles:{type:Boolean,value:!0,reflectToAttribute:!0}},listeners:{track:"_ontrack"},ready:function(){this._isReady=!0},_buttonStateChanged:function(){this.disabled||this._isReady&&(this.checked=this.active)},_checkedChanged:function(t){this.active=this.checked,this.fire("iron-change")},_ontrack:function(t){var e=t.detail;"start"===e.state?this._trackStart(e):"track"===e.state?this._trackMove(e):"end"===e.state&&this._trackEnd(e)},_trackStart:function(t){this._width=this.$.toggleBar.offsetWidth/2,this._trackChecked=this.checked,this.$.toggleButton.classList.add("dragging")},_trackMove:function(t){var e=t.dx;this._x=Math.min(this._width,Math.max(0,this._trackChecked?this._width+e:e)),this.translate3d(this._x+"px",0,0,this.$.toggleButton),this._userActivate(this._x>this._width/2)},_trackEnd:function(t){this.$.toggleButton.classList.remove("dragging"),this.transform("",this.$.toggleButton)}});</script></dom-module><dom-module id="ha-entity-toggle" assetpath="components/entity/"><style>paper-toggle-button {
|
||||
cursor: pointer;
|
||||
}</style><template><paper-toggle-button class="self-center" checked="[[toggleChecked]]" on-change="toggleChanged"></paper-toggle-button></template></dom-module><dom-module id="domain-icon" assetpath="components/"><template><iron-icon icon="[[computeIcon(domain, state)]]"></iron-icon></template></dom-module><dom-module id="state-badge" assetpath="components/entity/"><style>:host {
|
||||
position: relative;
|
||||
display: inline-block;
|
||||
width: 40px;
|
||||
|
@ -1 +1 @@
|
||||
Subproject commit f2def04044046c933e1eaadc8c556caa7ea6b3b5
|
||||
Subproject commit 7aadd6da9c3527f6c92ae5d9497db9570e833472
|
Loading…
x
Reference in New Issue
Block a user