17 Commits

Author SHA1 Message Date
Ian Richardson
753804f463 💄 additional active icon states (#4510)
* 💄 additional active icon states

* ♻️ sort by domain

* 👌 address review comments

* state_color option for entities card

* fix typo

* 👌 address comments

extract common css
properly set boolean attributes
separate error states/color
fix unavailable color

* only make copy if necessary

* remove paused timer

* remove paused timer
2020-01-23 09:01:18 -08:00
Ian Richardson
28511d0cbf only set tabindex if tap_action defined (#4511) 2020-01-18 21:59:56 -08:00
Ian Richardson
0f487ae4bf Add tabindex to lovelace elements (#4160)
* tabindex

* use action handler

* circular focus test

* address comment

* add focus styling to other elements

* add focus styling to cards

* style glance card entities

* Add back light/thermo changes that were lost in rebase

* Remove unused import

* lint

* lint

* 💄 tweak focus style for glance entities

* 💄 apply styling to focused state-label-badges
2020-01-11 11:50:43 +01:00
Ian Richardson
274c2016c0
action-handler (#4115)
* action-handler

* comments

* address comments

* finish conversion

* move haptics

* address comments

* lint

* keyup

* double enter

* address comments

* keyup
2019-11-01 13:15:11 -05:00
Ian Richardson
df29a5becb
Add double tap action (#3879)
* add dbltap_action

* apply to picture-glance

* types and boolean

* fix typo

* simplify double tap logic

* extract hasDoubleClick functionality

* address comments

* address comments

* double_tap_action
2019-10-16 08:57:05 -05:00
Thomas Lovén
d66cf3f787 Allow changing state-icon element icon (#3122) 2019-04-27 10:37:57 -07:00
Ian Richardson
1d24b83e5c Align configs (#3019)
* Align configurations

* cleanup

* fix imports
2019-03-27 21:10:55 -07:00
Ian Richardson
004892e11a
🔧 Remove unnecessary re-renders (#3014)
* 🔧 Remove unnecessary re-renders

* address review comments

* address review comments
2019-03-26 00:18:16 -05:00
Ian Richardson
324f0bb8a2 warning-element (#3006)
* warning-element

* add warning-element to picture-glance

* add glance-card
2019-03-23 23:10:55 -07:00
Ian Richardson
a259a12eab 🧹 cleanup elements (#2820)
* 🧹 cleanup elements

* lint
2019-02-22 20:37:27 -08:00
Paulus Schoutsen
c3f473c3e7
Remove Lit localize mixin (#2597)
* Remove some localize mixins form Lit Elements

* Remove litLocalizeMixin

* Revert unwanted changes
2019-01-27 16:52:15 -08:00
Paulus Schoutsen
b0d32b5674
upgrade lit (#2458)
* upgrade lit

* Lint
2019-01-12 23:32:53 -08:00
Paulus Schoutsen
a58a324073
Format html (#2006)
* Upgrade prettier

* Format files with prettier
2018-11-07 09:56:43 +01:00
Paulus Schoutsen
fbc1a722bd Normalize all line endings 2018-11-02 16:00:25 +01:00
Ian Richardson
c0c7c0f41a Remove .js from imports (#1948)
* Remove .js from lovelace

Also cleaned up some trailing whitespace

* Go big or go home

* More removals

* Revert changes to gallery webpack

* Revert changes to webpack.config.js
2018-11-02 12:26:03 +01:00
Ian Richardson
acab465c96 Move click and tooltip function to LL folder (#1935) 2018-10-31 09:45:38 +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