335 Commits

Author SHA1 Message Date
Johan Frick
e0c4b85ef1
Fix options typo for ha-form in gallery (#16305) 2023-04-25 19:59:58 +00:00
Steve Repsher
aac28efd32
Streamline HTML generation and consolidate templates (#16117) 2023-04-20 11:10:12 +02:00
Steve Repsher
1f1898fa46
Make module types explicit and convert some to ESM (#15964) 2023-03-30 11:23:43 +02:00
Paul Bottein
27098c5f3f
Create control select component (#15819) 2023-03-17 16:16:51 +01:00
Steve Repsher
9ce4563dd4
Prefer nothing over empty templates (#15633) 2023-02-28 11:02:47 +01:00
Bram Kragten
f69ae84cc6
Use entity registry display api (#15549) 2023-02-23 16:30:13 +01:00
Yosi Levy
658ce80801
Rtl fixes feb23 (#15487) 2023-02-20 18:16:03 +01:00
Paul Bottein
bef586efb3
Rename bar components to control components (#15508)
* Rename ha-bar-slider to ha-control-slider

* Rename ha-bar-switch to ha-control-switch

* Rename ha-bar-button to ha-control-button

* Update tile features
2023-02-20 17:34:37 +01:00
Paul Bottein
cabbbcf9f3
Convert tile button into more generic button (#15485)
* Add button group component

* Add focus style

* Use new component in tile card
2023-02-20 16:25:53 +01:00
Yosi Levy
a13e2af17a
Various RTL fixes (#15446) 2023-02-14 13:02:45 +01:00
Erik Montnemery
050ed145bf
Allow overriding a sensor's display precision (#15363)
* Allow overriding a sensor's display precision

* Update demo + gallery

* Lint

* Fix state not updated in the UI

* Use formatNumber for options

* Feedbacks

* Add default precision and minimumFractionDigits

* Remove useless undefined

---------

Co-authored-by: Paul Bottein <paul.bottein@gmail.com>
2023-02-08 18:20:58 +01:00
Paul Bottein
7e92d62936
Add tile card to gallery (#15394) 2023-02-08 11:29:16 +01:00
Bram Kragten
d2886b1ea7
Add aliases to areas (#15198)
* Add aliases to areas

* rename

* Update dialog-aliases.ts
2023-01-25 16:55:58 +01:00
Paul Bottein
d15d339782
Entity state colors theming (#14831)
Co-authored-by: Bram Kragten <mail@bramkragten.nl>
2023-01-23 09:28:38 +01:00
Bram Kragten
fe87466351
Add link to aliases in cloud config entity settings (#14959) 2023-01-02 20:42:31 +01:00
Gia Ferrari
5c2fcd7f9b
Add alt attribute to various images (#14405)
* ha-config-area-page: Add alt tag for area-picture

* dialog-tag-detail: Add alt tag for generated QR code image.

* ha-config-hardware: Blank alt tag for hardware pic, info already elsewhere

* dialog-energy-solar-settings: Blank alt tag for brand icon.

* ha-energy-grid-settings: Blank alt tag for co2signal brand icon.

* Add a few more appropriately-blank alt texts.

* ha-config-device-page: Logo alt text set to name of device domain.

* ha-config-repairs: Logo alt text set to name of issue domain.

* hui-picture-card(-editor): Alternate Text via config (blank default)

* hui-picture-entity-card(-editor): Alternate Text via config (blank default)

* ha-long-lived-access-token-dialog: Alt text for QR code.

* hui-picture-header-footer: Support alt text via optional property.

* A few more blank alt attributes.

* ha-tile-image: Support alt tag (but it is blank in current usage).

* prod cla-bot

* Lint. Fix whitespace.

* Add missing alt text properties to TS types.

* Fix my silly typo in picture-entity-card-editor's SCHEMA (+ minor reformat)

* Add alt_text to Picture(Entity)CardConfig TypeScript types.

* Format with prettier.

* Revise alt text for tag QR

* Revise alt text for token QR

* Revise alternate to alternative

* Add alt to logo in gallery

* Add alt text to crop image

* Use ifDefined for tile image alt

* Change area picture alt to area name

* Remove entry from entities config struct

* Revert altText changes for Picture Entity Card (to revisit in future PR)

See:
https://github.com/home-assistant/frontend/pull/14405#discussion_r1032735871

* Revert changes to hui-image and picture entity editor

Co-authored-by: Steve Repsher <steverep@users.noreply.github.com>
2022-12-29 01:16:05 +00:00
Paul Bottein
2575d35f2c
Add aliases dialog to entity registry settings (#14860) 2022-12-27 21:36:08 +01:00
Paul Bottein
b18160d987
Use CSS colors for tile components (#14770)
* Do not use rgb colors for tile components

* Fixes gallery

* Change tile color

* Do not use rgb colors in tile button
2022-12-15 11:27:45 +01:00
Philip Allgaier
b4d6fc3c20
Handle "idle" state of alert entity (#14779) 2022-12-14 19:08:08 +01:00
Philip Allgaier
175a388822
Add sun domain to gallery entity states (#14742) 2022-12-14 11:43:49 +01:00
Paul Bottein
b82d6fd35f
Fix climate hvac action color (#14747) 2022-12-13 16:49:12 +01:00
Joakim Sørensen
f83544dd38
Add action for design preview (#14721)
* Add action for design preview

* Remove netlify_build_gallery
2022-12-12 16:23:11 +01:00
Bram Kragten
4ea19a6041
Add daily gallery build action (#14640)
Co-authored-by: Joakim Sørensen <ludeeus@ludeeus.dev>
2022-12-08 14:41:51 +00:00
Philip Allgaier
feddbdba96
More "state_color" variants for gallery + wording tweaks (#14641) 2022-12-08 14:05:09 +00:00
Paul Bottein
f1393e5f00
Clean up colors code and add all missing domains (#14597) 2022-12-07 14:47:54 +01:00
Paul Bottein
e6f2e8058b
Color adjustments for entity state (#14557) 2022-12-06 17:45:24 +01:00
Paul Bottein
dfc461ce05
Add support for entity translation key (#14482) 2022-12-01 12:53:44 +01:00
Philip Allgaier
684f6db4df
Gallery: Added switch and gauge component pages + CSS vars (#14479) 2022-11-30 22:22:02 +01:00
Paul Bottein
e43f3b193e
Rename indicator property and add show-handle property for ha bar slider (#14466) 2022-11-30 21:18:27 +01:00
Paul Bottein
bfd96944f9
Add switch bar (#14429)
* Add basic swich support

* Add color and reversed state

* Fix slotted icon

* Update gallery/src/pages/components/ha-bar-switch.ts

Co-authored-by: Bram Kragten <mail@bramkragten.nl>

Co-authored-by: Bram Kragten <mail@bramkragten.nl>
2022-11-28 16:58:18 +01:00
Paul Bottein
aec0eb3c78
Improve state colors and add documentation for entity state (#14437)
* Add documentation for entity icons and colors

* Add domains

* Add domains

* improve colors

* Add fan color

* Change fan to cyan

* color rules adjustments
2022-11-28 14:37:07 +01:00
Franck Nijhof
a9d44fcb61
Add Text entity (#14447) 2022-11-24 21:23:50 +01:00
Bram Kragten
0aae285236
Rename disabled attribute on integration card (#14268) 2022-11-07 14:45:02 +01:00
Paul Bottein
55467666f7
Add slider bar (#14094)
* Add slider bar

* a11y feedbacks

* allow undefined values

* rename variable

* Add end style

* Add vertical slider

* Allow theming

* Improve theming

* Improve colors

* fix properties

* stepped value for aria value

* use vertical instead of orientation

* Improve a11y

* force role slider
2022-10-24 09:25:26 +02:00
Matthias de Baat
9b19b6f203
Remove confusing header image (#14070)
Co-authored-by: Bram Kragten <mail@bramkragten.nl>
2022-10-13 09:30:37 +00:00
Joakim Sørensen
08279f35cf
Ignore progress if no progress (#14024) 2022-10-10 16:21:46 +02:00
Franck Nijhof
176d8567f4
Add condition description for trigger condition (#13941) 2022-10-02 17:39:15 +02:00
Bram Kragten
0b76183acd
Show non-editable automations in UI (#13900) 2022-09-29 12:11:29 -04:00
Meow
894258d7b8
fixed duplicate unit_of_measurement (#13884) 2022-09-28 10:53:25 +02:00
Paul Bottein
cc76a6c5ed
Add unique_id to entity registry (#13886) 2022-09-27 15:39:14 +02:00
Paul Bottein
81b21f874b
Improve cover entity definition (#13750) 2022-09-15 12:31:36 +02:00
Bram Kragten
ea319d55ef
Allow to disable a select option (#13618) 2022-09-15 12:00:00 +02:00
Paul Bottein
8c03bbdccc
Improve light entity definition (#13744) 2022-09-15 11:58:36 +02:00
Matthias de Baat
3c289deb21
Add remove, delete, add and create guidelines (#13593)
Co-authored-by: Philip Allgaier <philip.allgaier@gmx.de>
2022-09-05 18:28:54 +02:00
chpego
a57d7813e7
typo dialogs (#13598) 2022-09-05 15:55:48 +00:00
Bram Kragten
430e671901
unique-id -> id (#13552) 2022-09-01 11:51:38 -04:00
Matthias de Baat
d661450121
Typo on dialogs page (#13555) 2022-09-01 10:36:56 -05:00
Bram Kragten
d041bd9fd3
use device and area names in service call description (#13532) 2022-08-31 15:30:44 +00:00
Matthias de Baat
93debac19a
Add dialogs guidelines (#13526)
* Add dialogs guidelines

* Updated the Buttons and X-icon text
2022-08-31 11:00:19 -04:00
Bram Kragten
e976f9c119
Simplify action descriptions (#13529) 2022-08-31 12:48:28 +00:00