47 Commits

Author SHA1 Message Date
Joakim Sørensen
21a3a8c594
Navigate cleanup (#9202) 2021-05-25 17:46:36 +02:00
Bram Kragten
bc92c0b052
Upgrade to Lit 2 (#9199) 2021-05-18 07:37:53 -07:00
Bram Kragten
7e2bf920e1
Correct types for script automation editors (#9184) 2021-05-17 07:57:43 -07:00
Bram Kragten
9f032a61a9
Add compatibility for Lit 2.0 (#8878) 2021-05-07 13:16:14 -07:00
Bram Kragten
5754f4463d
Bump babel and eslint (#9049) 2021-04-30 12:15:31 -07:00
Bram Kragten
841c8ab1f1
Update script editor (#8919) 2021-04-16 08:57:07 -07:00
Philip Allgaier
32ba8f4731
Make clear that automation run button skips conditions + remove word "execute" from UI (#8259)
* Do not skip conditions when triggering an automation

* Remove usage of word "execute"

* More concise function names
2021-02-25 14:17:31 +01:00
Bram Kragten
99eff73b0d
Add support for target to automation call service action (#8372) 2021-02-16 21:46:47 +01:00
Philip Allgaier
6919d0cde6
Ensure we always show backend error in automation and script editor (#8139)
Co-authored-by: Bram Kragten <mail@bramkragten.nl>
2021-01-13 20:45:40 +01:00
Joakim Sørensen
a1d07e5a00
Sort imports (#8104) 2021-01-13 17:17:12 +01:00
Philip Allgaier
05057ade05
Catch navigator.clipboard errors (#7942)
Co-authored-by: Bram Kragten <mail@bramkragten.nl>
2021-01-04 14:04:54 +01:00
Philip Allgaier
f9dece0743
Add copy YAML (automation & script) fallback without navigator.clipboard (#7900) 2020-12-10 15:55:57 +01:00
Bram Kragten
b5724ed343
Make fab blue (#7839) 2020-11-28 17:22:42 +01:00
Nathan Orick
fa28b480f1
Add button to duplicate script (#7511)
Co-authored-by: Bram Kragten <mail@bramkragten.nl>
2020-11-10 10:16:42 +01:00
Philip Allgaier
5a9bd73e8b
Use clearer dialog button texts + various translation improvements (#7584) 2020-11-09 23:41:22 +01:00
Philip Allgaier
33cd9bf516
Ensure all <mwc-fab> set a label for ARIA (#7587) 2020-11-07 17:27:34 +01:00
Philip Allgaier
52b2fd046b
Improved automation & script menus + show errors in toast (#7371)
* Improved automation & script menus + show errors in toast

* Changes from review

* Re-added old error display

* Toast back to default duration + remove action
2020-10-19 19:55:36 +02:00
Thomas Lovén
44166f76d4
Scriptomation yaml editor (#7273) 2020-10-12 11:26:16 +02:00
Thomas Lovén
c7f4986e61
Put automation/script editor actions in a menu (#7250)
* Put automation/script editor actions in a menu

* Use disabled property instead of attribute
2020-10-08 16:37:01 +02:00
Gilson Marquato Júnior
0f0a3fdaf7
Add keyboard shortcut to save automation/scene/script (#7207) 2020-10-08 16:24:08 +02:00
Daniel
17ffdb0247
Update script editor panel tooltips (#7204) 2020-10-06 20:44:20 +02:00
Tomasz
5971aee02e
dot notation for path property of ha-svg-icon (#7197) 2020-10-05 19:51:14 +02:00
Joakim Sørensen
7d862d6f2a
Use helper to generate documentation URL (#7012) 2020-09-15 13:20:43 +02:00
Thomas Lovén
426f939982
Add Execute button to script editor (#6957) 2020-09-14 09:34:59 +02:00
Philip Allgaier
1890aab1e6
Color all deletion options consistenly red (#6891)
* Color all deletion options consistenly red

* CSS cleanup

* Color the "Remove Selected" entity config button

* Make eslint happy

* Getting rid of a wayward bracket
2020-09-09 20:48:51 +02:00
Bram Kragten
0d515e2303
Replace createValidEntityId with slugify (#6505) 2020-08-03 02:06:08 +02:00
Bram Kragten
ca4f573be0
Add support for safe area insets (#6473) 2020-07-30 18:27:27 +02:00
Bram Kragten
68e1378615
Fix automation/scripts dirty on start edit (#6474) 2020-07-28 11:12:58 +02:00
Quinn Casey
d07d5832f5
Increase z-index of save button on editor (#6435) 2020-07-20 18:46:10 +02:00
Bram Kragten
f8c5eeab5d
Replace all private properties with internalProperty decorator (#6386) 2020-07-14 21:38:36 -07:00
Bram Kragten
d1dd8231cd
Allow to set an id and icon when creating new script (#6373)
Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
2020-07-14 21:58:24 +02:00
Bram Kragten
e70a3e09bf
Change UI of script entities (#6371) 2020-07-14 10:48:11 -07:00
Bram Kragten
352214ba0a
Add UI for the script and automation modes (#6367) 2020-07-13 10:52:37 +02:00
Thomas Lovén
e8996063dd
Remove google colors. Fix #6254 (#6263) 2020-06-29 10:51:28 +02:00
Bram Kragten
db906ad4d0
Bump material (#5812) 2020-05-09 20:59:53 +02:00
Bram Kragten
0a92c28bac
Split up mdi icons (#4379) 2020-05-05 16:40:11 +02:00
Bram Kragten
8484f7595a
Optimize script editor (#5650) 2020-04-30 20:40:23 +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
35c2d8966b
fix imports (#5506) 2020-04-09 15:44:20 +02:00
Bram Kragten
d3105b6846
Add rel=noopener (#5046) 2020-03-04 22:34:48 +01:00
Bram Kragten
7903541689
Add toolbars and mobile headers + layout tweaks (#4803)
* Add toolbars and mobile headers + layout tweaks

* Comments
2020-02-13 19:53:48 +01:00
Bram Kragten
f45785fafe
Change defaults of automations to device (#4843)
* Change defaults of automations to device

* Script too

* Update device_automation.ts

* Update device_automation.ts
2020-02-12 20:43:44 -08:00
Bram Kragten
65994e7280
Add related items to device info (#4637)
* Add related items to device info

* Update ha-config-device-page.ts

* remove log

* Lint

* Fix dialog logic showing triggers on script dialog

Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io>
2020-01-28 15:13:44 -08:00
Bram Kragten
1c9eab7ca0
Change config navigation to tabs (#4630)
* Change config navigation to tabs

* Update ha-menu-button.ts

* Icons

* update

* Review comments

* configSections -> object instead of array
2020-01-28 21:48:21 +01:00
Bram Kragten
04f8f0f74f Render should always return a html template (#4612) 2020-01-27 08:34:22 -08:00
Timmo
15be1688ad Merge Confirmation Dialogs into Alert, Confirmation or Prompt (#4114)
*  Add alert dialog

🔨 Add alert dialogs

🔨 add more

🔨 Add more

🔨 Enhance check

Co-Authored-By: Bram Kragten <mail@bramkragten.nl>

🔥 Combine confirmation into alert dialog

🔨 Replace confirmation calls with alert dialog

✏️ Remove 3

🔨 Add prompt logic

Rename to generic

Rename and add new params for alert, confirmation and prompt

Renames and prop changes

Rename and props

Cleanup

Setup prompt

Wording

Use text for prompt

Add prompts and confirmation on delete user

Rename

Rename

Rename imports

Fix parms change

Only use default for confirmation

Co-Authored-By: Bram Kragten <mail@bramkragten.nl>

Update src/dialogs/generic/dialog-box.ts

Co-Authored-By: Bram Kragten <mail@bramkragten.nl>

Update

change text

Add autofocus

Merge show dialogs into one generic

Add automation delete confirmation

Modal

Remove deleted file

Add delete donfirm to script

Fix error with tslint

Fix from rebase

Fix from rebase

Fix from rebase

* 🔧 Split dialog functions

* 🔧 Fix from rebase

* 🔧 More fixes

* 🔧 Fix

* 🔧 Apply suggestions from code review

Co-Authored-By: Bram Kragten <mail@bramkragten.nl>

* 🔧 Update from suggestion

* 🔧 Renames and cleanup

* 🔧 Camelcase

Co-Authored-By: Bram Kragten <mail@bramkragten.nl>

* 🔧 camel case

Co-Authored-By: Bram Kragten <mail@bramkragten.nl>

Co-authored-by: Bram Kragten <mail@bramkragten.nl>
2020-01-25 17:48:29 +01:00
Bram Kragten
cbba1849e2
Convert script and automation editor to lit (#4327)
* Convert script and automation editor to lit

* Update yarn.lock
2019-12-09 10:59:52 +01:00