14550 Commits

Author SHA1 Message Date
Ian Richardson
82eb33a7d4 Convert hui-climate-entity-row to TypeScript/LitElement (#1899)
* Convert hui-climate-entity-row to TypeScript/LitElement

* Address review comments

* Address review comments
2018-10-28 21:09:41 +01:00
Ian Richardson
4f6bae193d Convert hui-weblink-row to TypeScript/LitElement (#1898)
* Convert hui-weblink-row to TypeScript/LitElement

* Addressed review comments

* Made name and icon fields optional. Will create a corresponding PR to the docs to update them as Optional
* Updated entities-card to not check weblink config as that is the job of the element (entities-card should be updated to not check service-call config either as that is the job of the row element as well)

* Addressed review comments

That's cool!
2018-10-28 21:08:58 +01:00
Ian Richardson
b8752c4158 Convert hui-divider-row to TypeScript/LitElement (#1896)
* Convert hui-divider-row to TypeScript/LitElement

* Add return types

* Fixed style issues

* Address review comments
2018-10-28 21:07:30 +01:00
Zack Arnett
b6d0d777bf Gauge convert and fix issues (#1886)
* Gauge convert and fix issues

* Fixing Unit_of_Measurement

* Addressing Reviews

* Updating typing
2018-10-28 20:47:21 +01:00
Ian Richardson
8c155d4d0e Convert hui-state-badge-element to TypeScript/LitElement (#1892)
* Convert hui-state-badge-element to TypeScript/LitElement

The state image is not updating. This is true with the image-element as well. There's probably something simple between them both that I'm missing in my syntax for defining them

* Added htmlmap interface

* Addressed review comments
2018-10-28 20:36:53 +01:00
Ian Richardson
bdf5d0f5c6 Convert hui-state-icon-element to TypeScript/LitElement (#1891)
* Convert hui-state-icon-element to TypeScript/LitElement

The icon is not currently dispalying and therefor cannot determine if changing as well. Everything else is working. Should probably create a base class for all these elements to extend for simple things like checking for the entity and setting hass correctly once I get that sorted out.

* Fixed setting of properties

* Remove ! on this._config

* Addressed review comments

* Moved event handlers to private functions to avoid arrow function creation on each render
* Check for `hass` before looking for state
* Movevd absolute import above relative imports
2018-10-28 20:35:48 +01:00
Ian Richardson
4959b861bd Convert hui-image-element to TypeScript/LitElement (#1890)
* Convert hui-image-element to TypeScript/LitElement

WIP
Some of the state portions passed down to ha-image are not updating the view.

* Fixed setting of properties

* Add tagnamemap interface

* Address review comments
2018-10-28 20:25:12 +01:00
Paulus Schoutsen
a4fa0ae64b
Handle no operation mode (#1901)
* Handle no operation mode

* Upgrade HAWS so we can use correct types

* Lint
2018-10-28 20:07:05 +01:00
Ian Richardson
7cd5f36c7a Convert hui-service-button-element to TypeScript/LitElement (#1888)
* Convert hui-service-button-element to TypeScript/LitElement

Will need to rebase once hui-icon-element PR is merged

* Added return types

* Convert ha-call-service-button attributes to properties

* Re-order imports
2018-10-28 13:57:52 +01:00
Ian Richardson
ecfdb16957 Convert hui-state-label-element to TypeScript/LitElement (#1893) 2018-10-28 09:09:43 +01:00
Ian Richardson
d31195fc87 Add to HTML tag name map (#1900) 2018-10-28 09:00:37 +01:00
eyager1
f3ef4cef74 Change icon to set operation_mode to "off" (#1883)
The choice of the "fan-off" icon to set the climate operation_mode to off should be changed . Many HVAC thermostats have a manual fan control.   The use of the fan icon in this card would imply that it would change or toggle the fan_mode of a climate component, not the operation_mode.  If setting the fan_mode of a climate component via this card were to be implemented in the future the use of "fan" and "fan-off" icons would be the most logical choices for icons.   I propose changing the icon that would set the operation_mode to off to generic power icon such as "power", or "power-off" to avoid confusion and to reserve the "fan" and "fan-off" icons for future use to change the the state of fan_mode.
2018-10-28 08:57:54 +01:00
Ian Richardson
ec6db9c8ca
Merge pull request #1895 from iantrich/row-types
Make hass optional within EntityRow as it may not be defined
2018-10-27 21:17:45 -05:00
Ian Richardson
bb483c9d72 Make hass optional within EntityRow as it may not be defined 2018-10-27 21:00:06 -05:00
Zack Arnett
414448137a
Merge pull request #1871 from iantrich/typescript-icon-element
Convert hui-icon-element to TypeScript/LitElement
2018-10-27 21:50:09 -04:00
Ian Richardson
d0acef3ecb Add return types 2018-10-27 18:01:07 -05:00
Ian Richardson
5617416932 cleaned up elementconfig type order 2018-10-27 16:54:27 -05:00
Ian Richardson
bf0eb798d9 Implemented navigate function
Fix linting error
2018-10-27 16:51:44 -05:00
Ian Richardson
8afc3812b7 Remove element-click refactor
Was unable to get computeTooltip to work for non-converted elements. There are not many elements that use this so will just remove this mixin once conversion of all to TS has been completed.
2018-10-27 16:40:43 -05:00
Ian Richardson
5a7841e6bf Pass correct node to handleClick 2018-10-27 15:51:34 -05:00
Ian Richardson
2758e86fab Convert hui-icon-element to TypeScript/LitElement and extract ElementClick mixin functions 2018-10-27 15:51:34 -05:00
Paulus Schoutsen
d9935a714e Bumped version to 20181026.1 20181026.1 2018-10-27 12:05:14 +02:00
Paulus Schoutsen
d6a9d6829b Fix hass setting on stack (#1868)
* Fix hass setting on stack

* Don't set hass on pic elements if undefined

* Don't set hass on entity rows if undefined

* prefix config prop

* Pic elements set hass yoooo

* Remove interface

* Make stack config private

* Fix import

* Lint
2018-10-27 12:05:06 +02:00
Paulus Schoutsen
8b02371786
Fix hass setting on stack (#1868)
* Fix hass setting on stack

* Don't set hass on pic elements if undefined

* Don't set hass on entity rows if undefined

* prefix config prop

* Pic elements set hass yoooo

* Remove interface

* Make stack config private

* Fix import

* Lint
2018-10-27 12:00:40 +02:00
Paulus Schoutsen
9a5b692204 Add version bump script 2018-10-27 11:40:52 +02:00
Zack Arnett
0b504c7df2 Thermostat fix (#1867)
* Thermostat fix

* Fix for unknown operation mode

* No title for you

* I suck at removing unnecessary things

* Fixing pointless Ternary operator
2018-10-27 11:16:10 +02:00
Zack Arnett
6cab3bbc8e Thermostat fix (#1867)
* Thermostat fix

* Fix for unknown operation mode

* No title for you

* I suck at removing unnecessary things

* Fixing pointless Ternary operator
2018-10-27 10:59:33 +02:00
Paulus Schoutsen
35194cf345
Extract navigate mixin (#1865)
* Extract navigate to function

* Remove eventsmixin properly and side effects
2018-10-27 10:56:03 +02:00
Paulus Schoutsen
13c5724d7c
Fix version extract (#1866) 2018-10-26 23:22:45 +02:00
Zack Arnett
156ea62ffa
Merge pull request #1863 from home-assistant/states-sensor-badges
States Sensor badges Padding fix
2018-10-26 15:24:10 -04:00
Zack Arnett
22693bcbcc
Updating to meet Material Design standards 2018-10-26 14:11:11 -04:00
Zack Arnett
ba70220659 Prettier fixes (#1864) 2018-10-26 19:40:53 +02:00
Gabriel Oliveira
fc96d33d6a 1813 - Improve Hass.io System cards UI (#1862)
* 1813 - Improve Hass.io System cards UI

* 1813 - Move margin to proper card file
2018-10-26 19:38:02 +02:00
Zack Arnett
685915e13c Fix States Badges Padding 2018-10-26 12:39:40 -04:00
Paulus Schoutsen
c39b17f12c Version bump to 20181026.0 20181026.0 2018-10-26 10:10:27 +02:00
Paulus Schoutsen
110d9a4cc1 update translations 2018-10-26 10:07:24 +02:00
Piotr Dobrowolski
8902328b30 Allow custom UI on "card" entities (#1824)
This will always render entities with `custom_ui_state_card` attribute
set in `entities` state card. Fixes custom UI on `media_player` objects.
2018-10-26 10:06:17 +02:00
Ian Richardson
7ff9211dfc Convert hui-picture-elements-card to TypeScript/LitElement (#1853)
* Convert hui-picture-elements-card to TypeScript/LitElement

Elements are not showing currently

* Address review comments

* Update demo
2018-10-26 10:04:04 +02:00
Paulus Schoutsen
17b4f873e7
Enforce prettier for TypeScript (#1860) 2018-10-26 09:37:47 +02:00
Zack Arnett
741c0c08b9 Thermostat Card LoveLace (#1814)
* POC/WIP: Thermostat Card

* Fix jQuery imports

* Cleaning out testing code and working on reviews

* Colors Dynamic + mode dynamic

* Minor changes

* adding html prefix

* Dynamic Text size and colors - getting somwhere slowly.

* Review Changes - Working version (i think)

* Updating Gallery Entry

* Travies Review

* Remove provide plugin, move CSS to JS

* Add provideHass to demo

* Demo fixes

* tweak margins

* Travis changes

* Style Tweaks

* Update to client Width range
2018-10-26 09:30:58 +02:00
Ian Richardson
c42d9385d1 Convert hui-horizontal-stack-card to TypeScript/LitElement (#1851)
* Convert horizontal-stack to TypeScript/LitElement

Base stack-card class for horizontal and vertical stack cards to extend as their code overlaps a lot. Not sure if it should be in `common` or not

* rename locale hass variable

* Address review comments

* Abstract getCardSize
2018-10-26 09:27:57 +02:00
Thomas Lovén
8cbd667286 Lovelace - Long Press for everything (#1848)
* Long-press controller and lit-directive

* Enable long-press for glance card

* Enable long-press for entity-button

* Use new long-press for picture-elements

* Enable long-press for picture-entity card
2018-10-26 09:27:39 +02:00
Paulus Schoutsen
8bf60d502a
Allow mocking websocket commands in the gallery (#1859)
* Allow mocking rest/websocket commands in the gallery

* typo
2018-10-26 09:27:10 +02:00
Zack Arnett
9f60499a3f Fix for input slider on states ui (#1861) 2018-10-25 20:15:31 -04:00
Paulus Schoutsen
56a9ff2b35
Gallery: fix notifs, fake config/services, glance demo (#1857)
* Gallery: fix notifs, fake config/services, glance demo

* Fix missing glance states

* Fill in more missing entities

* Add controller to entity filter card
2018-10-25 14:05:22 +02:00
Paulus Schoutsen
8c7b62509b
Fix stack card getSize (#1856) 2018-10-25 12:29:05 +02:00
Ian Richardson
5e61065b64 Convert hui-error-card to TypeScript/LitElement (#1852) 2018-10-25 09:28:15 +02:00
Zack Arnett
39dd0524f8
Merge pull request #1792 from zsarnett/entities-card-lit
Updating Entities Card to TS+lit
2018-10-24 21:12:08 -04:00
Zack Arnett
25c6a4d3a6 Switching to new version of localize 2018-10-24 16:34:20 -04:00
Zack Arnett
0b9a4c56a9 Review Update 2018-10-24 16:34:20 -04:00