Commit Graph

46 Commits

Author SHA1 Message Date
Bram Kragten 7d6911b140
Replace mdc circular progress with mwc (#7248) 2020-10-08 16:17:20 +02:00
Bram Kragten c90c88ecbf
Bump typescript (4) and babel (#7249) 2020-10-07 17:58:56 +02:00
Bram Kragten 5937be695f
Bump Lit, use cache for query (#7245) 2020-10-06 15:55:55 +02:00
Tomasz 5971aee02e
dot notation for path property of ha-svg-icon (#7197) 2020-10-05 19:51:14 +02:00
Zack Barett a2ec878ef0
Entities Card: Entity Row Editor (#7134)
Co-authored-by: Bram Kragten <mail@bramkragten.nl>
2020-09-30 16:20:10 +02:00
Joakim Sørensen 7d862d6f2a
Use helper to generate documentation URL (#7012) 2020-09-15 13:20:43 +02:00
Zack Barett 5339fe6e06
Updates to correct zindexs on new dialogs (#6816) 2020-09-07 20:11:49 +02:00
Zack Arnett f3639c2663
Card Picker: Entity Picker (#6693) 2020-09-03 18:28:53 -05:00
Bram Kragten bbb1468439
Mark card editor dirty on prefilled create (#6545) 2020-08-06 15:18:08 +02:00
Yosi Levy 6b0589d343
Update lint 2020-07-20 14:30:32 +03:00
Yosi Levy cec1eed99e
Merge branch 'dev' into edit-card-RTL-fix 2020-07-20 14:01:20 +03:00
Yosi Levy cae46453a7 New parameterized label 2020-07-20 13:56:39 +03:00
Yosi Levy e6b9389b33 Fixed heading (concat) to support RTL (name comes last) 2020-07-20 07:49:09 +03:00
Yosi Levy 377c37425e Refactor ha-dialog RTL to include dialogs not using createCloseHeader 2020-07-20 07:32:09 +03:00
Bram Kragten cddbf460f8
Add close function to edit card dialog (#6423) 2020-07-17 11:29:08 -07:00
Bram Kragten f8c5eeab5d
Replace all private properties with internalProperty decorator (#6386) 2020-07-14 21:38:36 -07:00
Bram Kragten 7b0e743eca
Fix yaml card editor (#6275) 2020-06-29 13:19:20 -07:00
Paulus Schoutsen d8661cf2db
Fix spinner size (#6247) 2020-06-26 12:47:11 -07:00
Paulus Schoutsen 3b779bf423
Add ha circular progress (#6205) 2020-06-22 14:51:36 -07:00
Bram Kragten 9ffd25e3a0
Fix enter behavior of card editor (#6179) 2020-06-16 13:30:27 -07:00
Bram Kragten 168cc607aa
Move lovelace card edit dialog to mwc-dialog (#6130) 2020-06-09 22:30:18 +02:00
Zack Arnett a1ee9ad48b
Card Editor: Documentation per Card (#5888)
* Doc-links

* Comments

* Fix

* Remove unneeded code

* undo the change

* better
2020-05-15 21:50:28 -04:00
Bram Kragten b61cf60faf
Migrate card preview to UpdatingElement (#5884) 2020-05-15 09:19:24 +02:00
Zack Arnett dd894758a4
Card Editor: Preview Card Margin fix (#5879) 2020-05-14 18:13:26 +02:00
Bram Kragten 82f80db558
Update typescript, prettier, tslint -> eslint (#5536)
* Update typescript, prettier, tslint -> eslint

* Organize imports

* Use glob for eslint fix react import
2020-04-14 09:05:45 -07:00
Bram Kragten 4150ac045d
Gui editor fixes (#5416)
* Gui editor fixes

* Fix

* Add change mode button to conditional card editor
2020-04-02 17:47:01 +02:00
Zack Arnett 4767fcbdfc
Card Editor: Add Toggle to Dialog (#5245)
* Add Toggle to dialog

* Fix for Stack Cards

* reviews

* Reviews
2020-04-01 19:17:16 +02:00
Zack Arnett dbe829bc7d
Card Editor: Copy Card (#5249)
* Copy Card Feature

* dUplicate
2020-03-18 20:33:59 +01:00
Bram Kragten 196540afc7
Allow card editors to use card picker again (#5067) 2020-03-04 22:04:04 +01:00
Zack Arnett aa2e632df3
Card Picker with Previews of cards (#4975)
* Card Picker with Previews of cards

* Getting Preview Async - Using dialogs entities

* Create generic getElement - filter entities before

* lint

* Add entities back to Picker. Set Qualifier

* Style Updates

* Move setup of filtered cards to connected

* style updates

* Dont pull entities if noEntity config

* Move all config logic to getConfig

* Style Update - Remove Manual process

* lint

* Accounting for ll-rebuild for async cards

* Style Updates - Use GetStubConfig for most

* Lint

* Filter entities with function - style - no preview

* Iframe rename and description

* Move getstubconfig to helper - update spinner

* Style for themes

* Move entities to be calc once

* Should update

* oops

* TSC

* Comments
2020-03-03 14:53:55 -05:00
Paulus Schoutsen d7aaed05b7
Clean up generic row (#5022) 2020-02-28 13:35:42 -08:00
Bram Kragten 25d6427aed
Fix for when the preview element was an error element (#4969)
* Fix for when the preview element was an error element

* Comments

* Update hui-dialog-edit-card.ts
2020-02-25 21:51:07 +01:00
Bram Kragten 04f8f0f74f Render should always return a html template (#4612) 2020-01-27 08:34:22 -08:00
Ian Richardson 9aedeab4fa close card editor on ESC (#4570) 2020-01-23 14:43:09 +01:00
Bram Kragten 15a2790b9f
Add support to add all device entities to Lovelace (#4356)
* Add support to add all device entities to Lovelace

* Reload config when it was changed while Lovelace was not active

* Localize

* Update ha-panel-lovelace.ts

* Move to device entities card

* Move Lovelace logic to lovelace combine with unused entities

* Unused imports

* Added suggestions and support for YAML mode
2019-12-23 10:39:17 +01:00
Bram Kragten 5ca82fd39c Fix mobile support for voice dialog (#4154)
* Fix mobile support for voice dialog

* Update ha-voice-command-dialog.ts

* typo

* Add extra data functions

* Start listening for choice

* Remove extra data logic
2019-11-04 12:34:59 -08:00
springstan 11c08e9a69 Added view title to heading of Lovelace Add Card picker (#4083)
* Added view title to heading of Lovelace Add Card picker

* Fixed building error, cleaned up code

* Changed _view to _viewConfig and added check for undefined _cardConfig

* Added else if for undefined _cardConfig, added else for manual cards

* Used template literal instead of string concatenation
2019-10-22 10:24:25 +02:00
Phi Dong e3ed0cf436 Hide save on card configuration if no card is picked (#4062) 2019-10-19 14:18:59 +02:00
Timmo 0cb0525516 Add localized names to card editor (#3941)
* 🔨 Add localized names to card editor

* ✏️ Rename alarm_panel to alarm-panel

* ✏️ Proper case

* 🔨 Move to else

* 🔨 Remove name and object from card picker
2019-10-07 20:17:12 +02:00
Bram Kragten 7e7158b816 Pick unused entities for lovelace cards (#3614)
* Pick unused entities for lovelace cards

* Type

* Table layout for unused entities

* properties

* remove unused import

* mwc-button

Need to find a way to set the color

* add icons to pick view dialog

* Comments

* Lint

* Restore unused entities for yaml mode

* Remove _elements

* decorators, types, comments

* flexbox + comments

* remove unused import
2019-09-08 13:43:28 -07:00
Thomas Lovén c15629b81b Various changes to card editor. (#3265)
* Various changes to card editor.

* Avoid crashing on bad yaml when creating a new card

* Address review comments

* Revert interface change

* Avoid config loops. Nicer error behavior.
2019-08-10 12:14:35 -07:00
Thomas Lovén 44eaa3abad A bit of cleanup in the card editor (#2984)
* edit-card shouldn't need to know about the path

* fix

* Store config as object at all times, convert when necessary

* Hidden is not a property of mwc-button. No need to hide anyway...
2019-03-26 15:31:43 -07:00
Ian Richardson aa3b6343ed Cleanup Editors and some common elements (#2882)
This is what I do while watching TV 😄
2019-03-05 11:36:17 -08:00
Paulus Schoutsen b0d32b5674
upgrade lit (#2458)
* upgrade lit

* Lint
2019-01-12 23:32:53 -08:00
Paulus Schoutsen 71ed83ef07
Fix opening edit dialog twice when closed by clicking on overlay (#2290) 2018-12-13 21:46:57 +01:00
Bram Kragten 4f0a965573 Changes for new storage (#2228)
* Changes for new storage

* Fix lint

* Use indexes for editing

* Use lovelace object

* Use lovelace object

* Lit conversion panel lovelace

* Lovelace obj

* Fix edit cards

* Fix some bugs

* Fix last bugs

* Lint

* Don't drop view content

* Move file

* Add skip button to card picker

* Correctly set lovelace mode
2018-12-10 08:57:29 +01:00