Commit Graph

69 Commits

Author SHA1 Message Date
Petro31 b7f354dae6
Add grid-template-areas explanation (#313)
Adds a quick explanation on the grid-template-areas style attribute.

Co-authored-by: Jérôme W <jerome@wnetworks.org>
2020-04-21 00:58:51 +02:00
Jérôme Wiedemann ed1bc74629 Update Maintained Badge 2020-04-14 19:47:57 +02:00
Jérôme Wiedemann c25fe6d2a5 Support for templates in variables 2020-03-15 19:59:04 +01:00
Jérôme Wiedemann 84ac418d5c Add CSS injection through extra_styles 2020-03-15 19:59:04 +01:00
Jérôme Wiedemann d91993df16 Support for alternative state display 2020-03-15 19:59:04 +01:00
Jérôme Wiedemann 8d29f56434 Add support for live camera streams 2020-03-15 19:59:04 +01:00
Jérôme Wiedemann 94e53b7500 Fix variables documentation 2020-01-05 16:03:32 +01:00
Jérôme Wiedemann 770e221c2b Support for variables in the templates 2020-01-05 15:53:47 +01:00
Jérôme Wiedemann 4efafe4ab6 Template support in custom_fields' cards config 2020-01-05 15:53:47 +01:00
Jérôme Wiedemann 6dc0573cf7 Update manual download link 2020-01-03 19:15:27 +01:00
Ian Richardson 73a3e1b86c
Update README.md 2019-11-04 09:59:57 -06:00
Jérôme W b1fa112fbc Bunch of features (#231)
* Add support for any card in custom_fields

* Fix version script

* Drop support for custom_updater

* confirmation template support and per action confirmation

* Confirmation supports templates and exemptions

* Support for Safari 10

* Using createThing from cch

* Proper events handling for embedded cards

* Lock with exemptions and delay

* Fix locking documentation

* Fix default color documentation

* Updating templates documentation

* Support for different unlock clicks

* Update embedded card documentation
2019-10-21 10:24:49 +02:00
Jérôme Wiedemann 62b648e504 Fix documentation 2019-07-28 15:13:07 +02:00
Jérôme W a9f27a64a2
2.0.0 (#202)
* _template deprecation and custom fields support (#199)

* Update custom-card-helpers

* _template deprecated and custom_fields support

* Update dependencies

* Add npm audit fix to circleci

* Styles support templating

* *_action support templates

* Some linting

* Fixes #200

* Fixing template eval if input is a number

* State values support templating

* Documentation update

* Doc formating issue

* Bump major version
2019-07-26 21:27:18 +02:00
Jérôme W c382ba5d3b Only specific users can disable the lock (#182)
* Allow to unlock the button for specific users only

* Update documentation
2019-06-05 00:08:23 +02:00
Jérôme W f6a3f2b47c New css variable for light color without temperature (#178)
* Add css variable --button-card-light-color-no-temperature

* Update documentation
2019-06-05 00:08:23 +02:00
Jérôme W 5ec35fd72c
1.10.0 (#166)
* Add an option to ignore light temperature

* Deprecate style in favor of styles.card

* pre-commit hooks

* name_template and entity_picture_template

* Use custom-card-helpers

* Deep merging state by id

* Using latest custom-card-helpers

* Aspect ratio support and auto icon resizing

* Updating documentation
2019-05-24 12:54:42 +02:00
Jérôme Wiedemann 6f12577e15 Fix documentation 2019-05-16 02:48:06 +02:00
Jérôme W 4a2f16e209
Config template support (#154)
* Config template support

* deep merge for templates

* Use terser and fix #157

* Update documentation
2019-05-16 02:43:39 +02:00
apop880 27fb73bfe7 Update with repeat documentation (#151) 2019-05-10 15:23:00 +02:00
Jérôme W 8023fd8265
Repeatable hold_action, double tap & light color in css var (#148)
* Repeatable hold_action

* Cleanup

* lock customization

* CSS reorder

* Support for double click

* light entity css color variable

* doc fix

* css fix
2019-05-10 14:49:44 +02:00
Jérôme W c0f50ff675
Custom layout and refactor (#146)
* Fixes #145

* custom layout support

* Some css fix

* Documentation update

* Doc update

* Update TOC

* Localization support
2019-05-09 16:13:06 +02:00
Jérôme W 880e7e37e1
Add a nice locking mechanism (#139)
* Add a nice locking mecanism

* Update documentation

* Fix typo

* Remove useless styles

* Fix for touch devices

* Disable ripple effect while locked

* fix blank card height

* Show last changed instead of label

* Support for light temperature with color auto

* Style for last_changed

* Update documentation
2019-05-04 13:20:33 +02:00
Jérôme W 7f10243f63
Per element style config (#136)
* Fix brightness calculation

* Own longpress was actually never used...

* Style per element

* Delete commented out functions

* Updating documentation

* Little doc update

* Fix doc

* Linting
2019-05-01 13:40:20 +02:00
Jérôme W 56a8fac0fa
Label and templates support (#134)
* Label and templates support

* Fix blank card with fixed width

* Fix some layouts
2019-04-29 18:44:04 +02:00
Jérôme W 21c60bb033
Switch to css grid and code refactor (#132)
* Switch to css grid and code refactor

* Ability to specify the width of the card

* Update documentation

* Fix invalid CSS value

* requested changes and bugfix
2019-04-29 10:50:13 +02:00
coxtor 25131db8b7 Correct mistake in examples (#126)
changed "service" to "call-service", realizing this error took longer than it should have :)
2019-04-26 10:54:55 -05:00
Jérôme W 55343382ae
entity_picture/custom picture support with style (#119)
* entity_picture/Custom Image support

* Update documentation

* Adding VSCode Debugger support

* Some linting love <3

* Cleanup and Fixes #125

* lit-plugin addition
2019-04-26 01:00:50 +02:00
Alok Saboo a5b4a800af Update button-card.js file path (#124) 2019-04-25 11:38:41 -05:00
Jérôme W 6df003dde9
Haptic (#123)
* Initial haptic support

* Update documentation for haptic
2019-04-25 10:15:57 +02:00
Jérôme W 89c4346358
typescript refactor (#122)
* typescript refactor

* Fix isClickable

* publish build

* Update documentation

* refactor getFontColorBasedOnBackgroundColor

* dist update

* Using babel and defining scripts

* Fix for custom Bot Support

* Removing uneeded code

* Adding babel config

* Requested changes

* Updating documentation

* Actually it's not a js, it's still a module

* Adding contributors

* add shouldUpdate
2019-04-25 09:45:04 +02:00
Jérôme W 0cb256ee46
Layout (#108)
* Add layout, show_units and units options

* Refactor

* Adding 2 new layout options

* Update documentation for layout
2019-04-23 09:13:54 +02:00
Jérôme W 06e000c10e Fallback to simple click if longpress is not found (#117) 2019-04-22 12:14:26 -05:00
Ian Richardson 6bbd65d038 configurable confirmation text (#115)
Fixes #109
2019-04-22 08:04:11 +02:00
Jérôme W 92b1dc9eed Support for long press / hold action (#106) 2019-04-21 13:50:44 -05:00
Jérôme W 7c7afb425f
Name per state and new show_name parameter (#95)
* Possibility to define a name per state and introduce a show_name parameter, defaults to using the entity name
2019-04-20 06:44:35 +02:00
Jérôme W d075d7d463 Support for URL in tap_action (#98) 2019-04-19 13:21:15 -05:00
Jérôme W 17c38bccb1 deprecate icon: attribute (#96) 2019-04-19 13:16:47 -05:00
Ian Richardson 9f88164e1a Add spin option to state object (#91)
* Add spin option to state object
2019-04-19 18:33:07 +02:00
SeanPM5 6f614dc6a7
tap_action location was changed to navigate
Original commit used `location` but it was later changed to `navigate` to be more consistent with HA core. This just updates the docs to match the change. 

Also added a note that navigation_path can link to internal HA URL's.
2019-04-19 02:22:39 -04:00
SeanPM5 8585021b10 adds show_icon: false to the text-only config example (#88)
This adds `show_icon: false` to the "no icon" text only configuration example. This line is now necessary because after recent changes the card automatically uses the default icon for that entity_id if there's no mdi: icon specified. Issue was pointed out in [this forum post](https://community.home-assistant.io/t/lovelace-button-card/65981/595) .
2019-04-18 14:12:46 -05:00
SeanPM5 0b418cd8de Fixed input_select code example, fixed minor typo (#86)
input_selects do not support toggle, updated the example code to a confirmed working one. Also fixed minor typo (swith = switch)
2019-04-18 10:16:36 -05:00
Ian Richardson ae138bacbb
Update README.md 2019-04-17 19:37:53 -05:00
Ian Richardson 82aad39409
Add confirmations (#85)
* Add confirmations

* remove logs

* Better message...maybe?

* Simplify logic
2019-04-17 19:30:57 -05:00
Jérôme W 11b87a5a50 tap_action instead of action, deprecation of color_off and style in state support (#84)
* Support for style definition in state

* Update documentation

* Deprecate color_off and action replaced by tap_action

* Fix documentation

* Fixing documentation

* Fix #71

* Add support for navigation

* Fix documentation

* Fix #71 - better solution

* Default color when off is var(--disabled-text-color)

* location action example

* Fix documentation

* Some bugfix

* Fix documentation

* Disable click when not needed

* Linting and some code fix requested

* Some fix

* renamed location to navigate

* Missing break in switch case

* remove inexisting variable reference

* Fixing button size and font to match default

* Fixing button size on firefox

* Use default entity icon if undefined and add show_icon, Fix #53

* Fix documentation

* Replace default colors to match hass default

* Updating documentation

* Fix isClickable

* Some refactoring

* Blink animation support
2019-04-17 18:03:57 -05:00
Jérôme W 416fb899a9 Fix state icon for color_type: card and equal operators (#82)
* Fix state icon for color_type: card and equal operators

* Fix missing icon when no icon in default config and state used
2019-04-14 16:36:09 -05:00
Jérôme W 59a1ccf420 Fixing documentation (#81)
* Fixing documentation

* Update documentation for state operator icon support
2019-04-14 08:40:33 -05:00
Jérôme Wiedemann 3205163c6a Add operators to state 2019-04-13 17:07:02 +02:00
Ian Richardson fee52165ee
Update README.md 2019-03-16 15:18:30 -05:00
Ian Richardson f528591d91
Update README.md 2019-02-25 20:30:02 -06:00