mirror of
https://github.com/home-assistant/core.git
synced 2025-07-08 22:07:10 +00:00
Merge remote-tracking branch 'origin/dev' into refactor-media-player
Conflicts: homeassistant/components/frontend/version.py
This commit is contained in:
commit
492ea478e7
@ -1,2 +1,2 @@
|
|||||||
""" DO NOT MODIFY. Auto-generated by build_frontend script """
|
""" DO NOT MODIFY. Auto-generated by build_frontend script """
|
||||||
VERSION = "17c8913244cf7359d3e107501e6ca373"
|
VERSION = "d0b5982b1bc41a96b8a4f49aaa92af5d"
|
||||||
|
@ -21188,7 +21188,7 @@ iron-selector:not(.narrow-layout) #main ::content [paper-drawer-toggle] {
|
|||||||
<paper-scroll-header-panel class="fit">
|
<paper-scroll-header-panel class="fit">
|
||||||
<paper-toolbar>
|
<paper-toolbar>
|
||||||
<paper-icon-button icon="menu" hidden$="[[!narrow]]" on-click="toggleMenu"></paper-icon-button>
|
<paper-icon-button icon="menu" hidden$="[[!narrow]]" on-click="toggleMenu"></paper-icon-button>
|
||||||
<div title="">
|
<div class="title">
|
||||||
<content select="[header-title]"></content>
|
<content select="[header-title]"></content>
|
||||||
</div>
|
</div>
|
||||||
<content select="[header-buttons]"></content>
|
<content select="[header-buttons]"></content>
|
||||||
@ -22404,15 +22404,13 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|||||||
},
|
},
|
||||||
|
|
||||||
listeners: {
|
listeners: {
|
||||||
'tap': 'cardTapped',
|
// listening for click instead of tap as a work around
|
||||||
|
// https://github.com/PolymerElements/iron-overlay-behavior/issues/14
|
||||||
|
'click': 'cardTapped',
|
||||||
},
|
},
|
||||||
|
|
||||||
cardTapped: function() {
|
cardTapped: function() {
|
||||||
// Debounce wrapper added as workaround for bug
|
uiActions.showMoreInfoDialog(this.stateObj.entityId);
|
||||||
// https://github.com/PolymerElements/iron-overlay-behavior/issues/14
|
|
||||||
this.debounce('show-more-info-dialog', function() {
|
|
||||||
uiActions.showMoreInfoDialog(this.stateObj.entityId);
|
|
||||||
}, 1);
|
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
})();
|
})();
|
||||||
@ -25870,7 +25868,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|||||||
<div class$="[[computeClassNames(stateObj)]]">
|
<div class$="[[computeClassNames(stateObj)]]">
|
||||||
<div class="layout horizontal">
|
<div class="layout horizontal">
|
||||||
<div class="flex">
|
<div class="flex">
|
||||||
<paper-icon-button icon="power-settings-new" highlight$="[[isOff]]" on-tap="handleTogglePower"></paper-icon-button>
|
<paper-icon-button icon="power-settings-new" highlight$="[[isOff]]" on-tap="handleTogglePower" hidden$="[[computeHidePowerButton(isOff, supportsTurnOn, supportsTurnOff)]]"></paper-icon-button>
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
<template is="dom-if" if="[[!isOff]]">
|
<template is="dom-if" if="[[!isOff]]">
|
||||||
@ -25882,7 +25880,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|||||||
</div>
|
</div>
|
||||||
<div class="volume center horizontal layout" hidden$="[[!supportsVolumeSet]]">
|
<div class="volume center horizontal layout" hidden$="[[!supportsVolumeSet]]">
|
||||||
<paper-icon-button on-tap="handleVolumeTap" icon="[[computeMuteVolumeIcon(isMuted)]]"></paper-icon-button>
|
<paper-icon-button on-tap="handleVolumeTap" icon="[[computeMuteVolumeIcon(isMuted)]]"></paper-icon-button>
|
||||||
<paper-slider disabled$="[[isMuted]]" min="0" max="100" value="{{volumeSliderValue}}" on-change="volumeSliderChanged" class="flex">
|
<paper-slider disabled$="[[isMuted]]" min="0" max="100" value="[[volumeSliderValue]]" on-change="volumeSliderChanged" class="flex">
|
||||||
</paper-slider>
|
</paper-slider>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@ -25989,10 +25987,6 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|||||||
return stateObj.state == 'off';
|
return stateObj.state == 'off';
|
||||||
},
|
},
|
||||||
|
|
||||||
computePowerButtonCaption: function(isOff) {
|
|
||||||
return isOff ? 'Turn on' : 'Turn off';
|
|
||||||
},
|
|
||||||
|
|
||||||
computeMuteVolumeIcon: function(isMuted) {
|
computeMuteVolumeIcon: function(isMuted) {
|
||||||
return isMuted ? 'av:volume-off' : 'av:volume-up';
|
return isMuted ? 'av:volume-off' : 'av:volume-up';
|
||||||
},
|
},
|
||||||
@ -26004,6 +25998,10 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|||||||
return 'av:play-arrow';
|
return 'av:play-arrow';
|
||||||
},
|
},
|
||||||
|
|
||||||
|
computeHidePowerButton: function(isOff, supportsTurnOn, supportsTurnOff) {
|
||||||
|
return isOff && !supportsTurnOn || !isOff && supportsTurnOff;
|
||||||
|
},
|
||||||
|
|
||||||
handleTogglePower: function() {
|
handleTogglePower: function() {
|
||||||
this.callService(this.isOff ? 'turn_on' : 'turn_off');
|
this.callService(this.isOff ? 'turn_on' : 'turn_off');
|
||||||
},
|
},
|
||||||
@ -26396,6 +26394,10 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
paper-icon-item.logout {
|
||||||
|
margin-top: 16px;
|
||||||
|
}
|
||||||
|
|
||||||
.divider {
|
.divider {
|
||||||
border-top: 1px solid #e0e0e0;
|
border-top: 1px solid #e0e0e0;
|
||||||
}
|
}
|
||||||
@ -26419,10 +26421,10 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|||||||
<paper-toolbar>
|
<paper-toolbar>
|
||||||
|
|
||||||
<paper-icon-button hidden=""></paper-icon-button>
|
<paper-icon-button hidden=""></paper-icon-button>
|
||||||
<div title="">Home Assistant</div>
|
<div class="title">Home Assistant</div>
|
||||||
</paper-toolbar>
|
</paper-toolbar>
|
||||||
|
|
||||||
<paper-menu id="menu" class="layout vertical fit" selectable="[data-panel]" attr-for-selected="data-panel" on-iron-select="menuSelect" selected="[[selected]]">
|
<paper-menu id="menu" selectable="[data-panel]" attr-for-selected="data-panel" on-iron-select="menuSelect" selected="[[selected]]">
|
||||||
<paper-icon-item data-panel="states">
|
<paper-icon-item data-panel="states">
|
||||||
<iron-icon item-icon="" icon="apps"></iron-icon> States
|
<iron-icon item-icon="" icon="apps"></iron-icon> States
|
||||||
</paper-icon-item>
|
</paper-icon-item>
|
||||||
@ -26448,9 +26450,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|||||||
</paper-icon-item>
|
</paper-icon-item>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<div class="flex"></div>
|
<paper-icon-item data-panel="logout" class="logout">
|
||||||
|
|
||||||
<paper-icon-item data-panel="logout">
|
|
||||||
<iron-icon item-icon="" icon="exit-to-app"></iron-icon>
|
<iron-icon item-icon="" icon="exit-to-app"></iron-icon>
|
||||||
Log Out
|
Log Out
|
||||||
</paper-icon-item>
|
</paper-icon-item>
|
||||||
|
@ -38,15 +38,13 @@
|
|||||||
},
|
},
|
||||||
|
|
||||||
listeners: {
|
listeners: {
|
||||||
'tap': 'cardTapped',
|
// listening for click instead of tap as a work around
|
||||||
|
// https://github.com/PolymerElements/iron-overlay-behavior/issues/14
|
||||||
|
'click': 'cardTapped',
|
||||||
},
|
},
|
||||||
|
|
||||||
cardTapped: function() {
|
cardTapped: function() {
|
||||||
// Debounce wrapper added as workaround for bug
|
uiActions.showMoreInfoDialog(this.stateObj.entityId);
|
||||||
// https://github.com/PolymerElements/iron-overlay-behavior/issues/14
|
|
||||||
this.debounce('show-more-info-dialog', function() {
|
|
||||||
uiActions.showMoreInfoDialog(this.stateObj.entityId);
|
|
||||||
}, 1);
|
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
})();
|
})();
|
||||||
|
@ -39,6 +39,10 @@
|
|||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
paper-icon-item.logout {
|
||||||
|
margin-top: 16px;
|
||||||
|
}
|
||||||
|
|
||||||
.divider {
|
.divider {
|
||||||
border-top: 1px solid #e0e0e0;
|
border-top: 1px solid #e0e0e0;
|
||||||
}
|
}
|
||||||
@ -62,10 +66,10 @@
|
|||||||
<paper-toolbar>
|
<paper-toolbar>
|
||||||
<!-- forces paper toolbar to style title appropriate -->
|
<!-- forces paper toolbar to style title appropriate -->
|
||||||
<paper-icon-button hidden></paper-icon-button>
|
<paper-icon-button hidden></paper-icon-button>
|
||||||
<div title>Home Assistant</div>
|
<div class="title">Home Assistant</div>
|
||||||
</paper-toolbar>
|
</paper-toolbar>
|
||||||
|
|
||||||
<paper-menu id='menu' class='layout vertical fit'
|
<paper-menu id='menu'
|
||||||
selectable='[data-panel]' attr-for-selected='data-panel'
|
selectable='[data-panel]' attr-for-selected='data-panel'
|
||||||
on-iron-select='menuSelect' selected='[[selected]]'>
|
on-iron-select='menuSelect' selected='[[selected]]'>
|
||||||
<paper-icon-item data-panel='states'>
|
<paper-icon-item data-panel='states'>
|
||||||
@ -93,9 +97,7 @@
|
|||||||
</paper-icon-item>
|
</paper-icon-item>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<div class='flex'></div>
|
<paper-icon-item data-panel='logout' class='logout'>
|
||||||
|
|
||||||
<paper-icon-item data-panel='logout'>
|
|
||||||
<iron-icon item-icon icon='exit-to-app'></iron-icon>
|
<iron-icon item-icon icon='exit-to-app'></iron-icon>
|
||||||
Log Out
|
Log Out
|
||||||
</paper-icon-item>
|
</paper-icon-item>
|
||||||
|
@ -10,7 +10,7 @@
|
|||||||
<paper-scroll-header-panel class='fit'>
|
<paper-scroll-header-panel class='fit'>
|
||||||
<paper-toolbar>
|
<paper-toolbar>
|
||||||
<paper-icon-button icon='menu' hidden$='[[!narrow]]' on-click='toggleMenu'></paper-icon-button>
|
<paper-icon-button icon='menu' hidden$='[[!narrow]]' on-click='toggleMenu'></paper-icon-button>
|
||||||
<div title>
|
<div class="title">
|
||||||
<content select='[header-title]'></content>
|
<content select='[header-title]'></content>
|
||||||
</div>
|
</div>
|
||||||
<content select='[header-buttons]'></content>
|
<content select='[header-buttons]'></content>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user