Commit Graph

415 Commits (fix-menu-overflow)

Author SHA1 Message Date
Bram Kragten 4092f7f75d
Convert selectors to MWC (#11543) 2022-02-06 14:29:28 -08:00
Paulus Schoutsen 0046252e32
Add selectors to ha-form (#11534) 2022-02-04 12:47:21 +01:00
Paulus Schoutsen deba6a0db4
Remove optional field from ha-form schema type (#11538) 2022-02-03 16:30:37 -08:00
fpro1212 0e41a408e7
Design home - Fix GitHub Links (#11519) 2022-02-03 10:03:26 +01:00
Philip Allgaier b34b92fa87
Give the design page menu some space (#11441) 2022-01-26 15:48:34 +01:00
Paulus Schoutsen 87c22229e0
Add demo for selectors (#11398)
* Add demo for selectors

* Update label name
2022-01-22 14:44:50 -08:00
Matthias de Baat 197b581e8e
Adding results of the Configuration menu user test (#11381)
* Adding results of the Configuration menu user test

* Update title

* Add sidebar entry

Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
2022-01-21 08:39:17 -08:00
Matthias de Baat d1f1309198
Added examples and corrected some text (#11156) 2022-01-19 09:02:22 -08:00
Matthias de Baat 884ed561a1
Update Home text (#11319)
Co-authored-by: Zack Barett <zackbarett@hey.com>
Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io>
2022-01-14 23:46:31 +00:00
Zack Barett 4165e64ce0
Area card gallery updates (#11324) 2022-01-14 15:27:54 -08:00
Paulus Schoutsen 77fe687ec2
Re-order automation menu (#11154) 2022-01-11 08:50:00 -06:00
Paulus Schoutsen 920d2972ea
Add helper entity rows to design page (#11150) 2022-01-10 14:54:06 -08:00
Matthias de Baat 27fa34e24e
Add guidelines and implementation (#11144)
Co-authored-by: Bram Kragten <mail@bramkragten.nl>
2022-01-10 10:29:52 -08:00
Paulus Schoutsen f021480bc5
Fix design nightly build (#11134) 2022-01-10 09:24:29 +01:00
Paulus Schoutsen 34c3374d84
Small UI tweaks to design website (#11135) 2022-01-09 21:20:15 -08:00
Paulus Schoutsen 08863348dc
Update integration-card.ts 2022-01-07 17:24:56 -08:00
Paulus Schoutsen 2bcf816b77
Update util-long-press.ts 2022-01-07 17:24:18 -08:00
Paulus Schoutsen d2b99e6963
Add description pages to all pages (#11124) 2022-01-07 15:52:07 -06:00
Joakim Sørensen 5c488f8298
Limit design site builds (#11120) 2022-01-07 06:52:08 -08:00
Paulus Schoutsen 6fc87a6f66 Fix design footer 2022-01-06 23:37:50 -08:00
Paulus Schoutsen 3133f9b01f
Use page instead of demo (#11118)
* Use page instead of demo

* Update netlify script

* Update ci.yml

* Rename demo -> page
2022-01-06 22:32:10 -08:00
Paulus Schoutsen 2c0d330f1f
Reorganize gallery (#11116)
* Reorganize gallery

* GitHub edit links

* Render sidebar during build

* Auto rebuild when sidebar changes

* Yarn dedupe

* Fixes

* Allow just metadata without text

* Show edit text link if metadata defined

* Update build-scripts/gulp/gallery.js

Co-authored-by: Zack Barett <arnett.zackary@gmail.com>

Co-authored-by: Zack Barett <arnett.zackary@gmail.com>
2022-01-06 20:20:57 -08:00
Paulus Schoutsen 63c113f78d
Gallery: Make sidebar collapsible + more tweaks (#11104) 2022-01-06 10:21:17 +01:00
Paulus Schoutsen a67799a670
Allow markdown readme above the gallery pages (#11103) 2022-01-05 23:08:21 +01:00
Paulus Schoutsen e3d78d6dc5
Convert ha-gallery to TS (#11102)
* Convert ha-gallery to TS

* Prepare gallery to be design portal

* Import card in introduction

* Clean up demo IDs

* Convert demo-cards

* TypeScript conversion of demo-card

* Fix default demo
2022-01-05 12:49:05 -08:00
J. Nick Koston 6f9b2ee569
Add hardware version to the device info card (#10914) 2021-12-16 05:16:23 -06:00
Philip Allgaier ea18fc0078
Ensure we always have an active theme name (fixes dark theme issues) (#10780)
Co-authored-by: Bram Kragten <mail@bramkragten.nl>
2021-12-03 17:02:54 +00:00
Philip Allgaier 2c0b2f4bc5
Convert cover UI to Lit + ensure proper tilt rendering (#10671) 2021-11-29 10:30:14 +01:00
Joakim Sørensen 117b50f3ea
Add ha-faded (#10651) 2021-11-28 22:27:53 -08:00
Joakim Sørensen 4719636176
Fix dark main-content and split gallery demo (#10675) 2021-11-21 21:01:51 -08:00
Joakim Sørensen 6c4e987a24
Make ha-chip-set slot-able (#10647) 2021-11-21 09:15:38 -08:00
Joakim Sørensen 1a5c43d72a
Fix color over slotted image in ha-alert (#10652) 2021-11-21 09:13:48 -08:00
Joakim Sørensen 0ca35d7012
Remove ha-alert actionText (#10646) 2021-11-18 16:09:13 -08:00
Zack Barett 4684979ae7
Area Card (#10141)
Co-authored-by: Philip Allgaier <mail@spacegaier.de>
Co-authored-by: Bram Kragten <mail@bramkragten.nl>
Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
2021-11-17 19:43:41 +01:00
Joakim Sørensen e9f0967578
Move updates (#10626) 2021-11-17 10:21:27 -08:00
Paulus Schoutsen 4b44e197ae
ha-form-integer to only show slider if < 256 steps (#10430) 2021-10-28 13:44:25 +02:00
Paulus Schoutsen dd11fb1b99
Add automation editor to gallery (#10392) 2021-10-25 15:53:32 +00:00
Paulus Schoutsen 33e1d34cb1
Add support for device configuration URL (#10251)
* Add support for device configuration URL

* Lint

* Tweak text
2021-10-14 11:17:44 -07:00
Paulus Schoutsen 48948d5854
Initial support for entity category (#10266) 2021-10-14 09:56:51 -07:00
Philip Allgaier 0c940be5fb
Consolidate all icon button logic into `<ha-icon-button>` + ensure tooltip (#9230) 2021-10-14 15:44:20 +02:00
Joakim Sørensen e52118db93
Use correct build url (#10258) 2021-10-13 10:08:10 +02:00
Joakim Sørensen 9e7acacb06
Add ha-label-badge to gallery (#10248) 2021-10-13 10:05:44 +02:00
Joakim Sørensen 56deb15bca
Add netlify build script for gallery (#10253) 2021-10-12 22:47:53 +02:00
Joakim Sørensen a3d4969d7b
Add ha-chip to gallery (#10252) 2021-10-12 21:19:09 +02:00
Joakim Sørensen b6c470edf1
Add ha-bar to gallery (#10242) 2021-10-12 11:38:43 +02:00
Paulus Schoutsen 9bf41a37b4
Allow disabling an ha-form (#10218) 2021-10-09 12:41:36 +02:00
Paulus Schoutsen 6f6fc759cc
Add selector demo to gallery (#10213) 2021-10-08 20:56:32 +02:00
Paulus Schoutsen 2841369d3d
Extract black/white row into component (#10212)
* Extract black/white row into component

* Remove unused import
2021-10-08 10:48:39 -07:00
Paulus Schoutsen a839494a1e
Use MWC components for ha-form (#10120) 2021-10-07 12:21:35 -07:00
Bram Kragten dc3bad56f2
Improve padding/positioning of ha-alert (#10145)
Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
2021-10-04 16:27:03 +00:00
Paulus Schoutsen 2ddab4eecc
Fix webpack dev server (#10130) 2021-10-01 14:18:53 -07:00
Paulus Schoutsen 419942112b
Fix Lit lint warnings (#10112) 2021-09-30 08:46:03 -07:00
Bram Kragten 2936865c55
Bump typescript, lint, prettier (#10108) 2021-09-30 12:39:03 +02:00
Joakim Sørensen 2ab0e40952
Break overflow in ha-alert (#9885) 2021-08-30 18:08:16 +02:00
Joakim Sørensen f3606014c6
Add ha-alert component (#9874) 2021-08-24 09:44:30 -07:00
Bram Kragten e797c01761
Update lint rules (#9563)
Updated deps

Added `unused-imports`, prefer arrow, and import order
2021-07-15 12:08:04 +02:00
Paulus Schoutsen 9d0b20adce
Add support for system options v2 (#9332)
* Add support for system options v2

* Update src/dialogs/config-entry-system-options/dialog-config-entry-system-options.ts

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

* Update dialog-config-entry-system-options.ts

Co-authored-by: Bram Kragten <mail@bramkragten.nl>
2021-06-01 12:22:25 -07:00
Paulus Schoutsen d8bab6aba9
Add support for disable polling system option (#9316) 2021-05-31 15:40:50 -07:00
Bram Kragten fdcbb5b432
Bump js-yaml (#9245) 2021-05-26 00:13:58 +02:00
Bram Kragten bc92c0b052
Upgrade to Lit 2 (#9199) 2021-05-18 07:37:53 -07:00
Bram Kragten 9f032a61a9
Add compatibility for Lit 2.0 (#8878) 2021-05-07 13:16:14 -07:00
Paulus Schoutsen ac5f85820f
Integration Card: Fix Safari header break and deal with long errors (#9070) 2021-05-02 10:54:40 +02:00
Paulus Schoutsen 92b32458ad
Fix grid card size when square (#9056) 2021-04-30 18:57:20 +02:00
Joakim Sørensen d57e8a45d3
Break primary anywhere (#9050) 2021-04-30 15:02:01 +02:00
Paulus Schoutsen a288fd370f
Fix gallery element definitions (#9046) 2021-04-30 01:10:29 +02:00
Paulus Schoutsen acd335e249 Set columns to 4 in demo 2021-04-29 14:06:52 -07:00
Paulus Schoutsen af0c7b5a50
Fix grid card size (#9044)
* Fix grid card size

* Remove console

* Rename
2021-04-29 12:31:46 -07:00
Bram Kragten 36586b798e
Use `supported_color_modes` to determine what UI elements to show (#8961) 2021-04-27 10:43:25 -07:00
Paulus Schoutsen 24e202a3d7
Use translations for config entry reason (#8981) 2021-04-26 17:50:23 +02:00
Paulus Schoutsen 3f21c87a3d
Allow config entries to show the reason (#8974) 2021-04-23 09:25:09 +02:00
Paulus Schoutsen 179767e9f8
Align layout of all cards (#8931)
* Align layout of all cards

* Make ignore card have normal button
2021-04-16 12:27:01 -07:00
Paulus Schoutsen 25b3bb1285
Fixes for integration cards (#8930) 2021-04-16 20:22:22 +02:00
Paulus Schoutsen 60fe48d355
Show config entry state on card (#8911) 2021-04-16 13:16:59 +02:00
Paulus Schoutsen 9833accc79
Fix failed conditions reason (#8870) 2021-04-08 23:01:12 -07:00
Paulus Schoutsen 401064d3c8
Render script execution state (#8789) 2021-04-01 11:29:08 -07:00
Paulus Schoutsen 5c1604e959
Fix showing choose actions if default path chosen and other things (#8779) 2021-04-01 10:28:37 +02:00
Paulus Schoutsen b866166425
Adjust for latest trace API (#8755) 2021-03-29 17:01:39 -07:00
Paulus Schoutsen c341a99b83
Add more trace visualization (#8724)
Co-authored-by: Bram Kragten <mail@bramkragten.nl>
2021-03-28 20:31:59 +02:00
Paulus Schoutsen c269c8fd3f
Fix ordering of logbook entries inside choose sequence with multiple … (#8715) 2021-03-25 10:54:20 +01:00
Paulus Schoutsen 9676d2cee7
Add compatibility with latest trace API (#8700) 2021-03-23 17:21:57 -07:00
Paulus Schoutsen 20da329a21 Fix types 2021-03-22 22:43:08 +00:00
Paulus Schoutsen c9b620fdb2 Update basic trace in gallery 2021-03-22 19:26:59 +00:00
Paulus Schoutsen 3c75eb96f1
Adjust traces to latest API (#8656) 2021-03-16 10:43:30 -07:00
Paulus Schoutsen a465254418
Add new trace (#8633) 2021-03-15 09:38:23 +01:00
Paulus Schoutsen 03f694922d
Add timeline entry when a long period of time passes (#8638) 2021-03-14 16:45:49 -07:00
Paulus Schoutsen 5d2afdd825
Add motion light trace (#8637) 2021-03-14 15:03:50 +01:00
Paulus Schoutsen 7bd4eeb0df
Trace foundation (#8608) 2021-03-12 20:13:06 -08:00
Philip Allgaier 1aab656705
Make entity-filter and glances demo a bit clearer & cleaner (#8157) 2021-01-14 11:20:18 +01:00
Joakim Sørensen a1d07e5a00
Sort imports (#8104) 2021-01-13 17:17:12 +01:00
Philip Allgaier cb2c6d8560
Convert gallery elements to LitElement (#8088) 2021-01-05 13:29:21 +01:00
Philip Allgaier 42f0101440
Add gallery demo for plant card (#7989) 2021-01-04 22:10:58 +01:00
Philip Allgaier a3fdfe0e15
Add additional entities to gallery more-info-light (#7930) 2021-01-04 18:06:47 +01:00
Philip Allgaier a0de209a55
Aligned gallery more-info with hui-cards (#7931) 2021-01-04 18:05:30 +01:00
Philip Allgaier 2ab1c6e9a9
Make media player card work as square + add to gallery + icon pos tweaks (#7727) 2020-12-02 16:57:19 +01:00
Philip Allgaier e7e192ffe3
Align gallery code + fix icon in entity-icon demo (#7754) 2020-11-21 14:28:25 +01:00
Philip Allgaier 38ba85e89d
Make gallery config visible in dark mode + fix config alignment (#7741) 2020-11-20 15:13:19 +01:00
Philip Allgaier 7c492338a2
Improve gallery hui-gauge-card (#7682) 2020-11-17 15:46:33 +01:00
Philip Allgaier 530f494df8
Improve gallery hui-light-card (#7684) 2020-11-17 15:46:00 +01:00
Philip Allgaier 6ace8307d8
Always show "off" button if supported by player (#7389) 2020-11-11 14:00:53 +01:00
Bram Kragten da12233ade
Add dark mode toggle to gallery cards (#7532) 2020-11-02 10:46:52 +01:00
Paulus Schoutsen 48ef8c86c2
Add unavailable entity to gauge demo (#7530) 2020-10-30 14:30:27 +01:00
Paulus Schoutsen f1c16d6674
Mock subscribe template (#7529) 2020-10-29 21:28:41 +01:00
Paulus Schoutsen fbb43821ba
Add grid card to the gallery (#7524) 2020-10-29 17:56:26 +01:00
Bram Kragten 4759c89628
Bring back lazy load more info + helper (#7131) 2020-09-28 13:29:02 +02:00
Andrew Rabert b9c41d8f99
Optimize images (#7091) 2020-09-22 10:49:43 +02:00
Tomasz c62ff85e73
Fix package.json for windows (errors when runing yarn run lint and yarn run format) (#6762) 2020-09-15 21:15:05 +02:00
Bram Kragten 99d0a0a6fd
Lazy load more info content, split logbook and history (#6936) 2020-09-12 19:39:54 +02:00
Bram Kragten a48aa3c778
Remove weblink and history_graph integrations (#6378)
Closes #4941
2020-07-14 09:19:42 -07:00
Bram Kragten b429fe8254
Migrate more-info-dialog to mwc and Lit (#6345)
Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
2020-07-08 11:38:07 +02:00
Paulus Schoutsen c53fd0d1e1
Use Gulp to index demos (#6203) 2020-06-22 10:24:01 -07:00
Bram Kragten 256aec5308
Remove slot from ha-switch (#6133) 2020-06-09 22:37:43 +02:00
Paulus Schoutsen f819e2cf8d
Cleanup of builds (#6106) 2020-06-05 11:03:11 +02:00
Paulus Schoutsen af23110074
Move legacy styles to their own files (#6033) 2020-05-25 10:16:01 +02:00
Paulus Schoutsen 7e281f66c2
Rollup (#5995) 2020-05-22 23:05:47 -07:00
Bram Kragten 0a92c28bac
Split up mdi icons (#4379) 2020-05-05 16:40:11 +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 4388d82076
Fix gallery translation and add more demos (#5473)
* Fix gallery translation and add more demos

* Update provide_hass.ts

* Update demo-hui-alarm-panel-card.ts
2020-04-08 12:36:29 +02:00
Paulus Schoutsen b3beb7ef85
Fix dynamic import in gallery (#5472) 2020-04-06 22:29:52 +02:00
Bram Kragten dfe808cfb4
Show volume slider on smaller screens (#5385)
* Show volume slider on smaller screens

* Update hui-media-player-entity-row.ts

* Beter deal with unavailable and off states
2020-04-01 17:24:22 +02:00
imgbot[bot] 0535247bb3
[ImgBot] Optimize images (#5378)
*Total -- 1,745.75kb -> 1,539.81kb (11.8%)

/demo/public/assets/teachingbirds/meteogram.png -- 66.71kb -> 24.48kb (63.31%)
/demo/public/assets/teachingbirds/background_square.png -- 0.76kb -> 0.37kb (51.98%)
/demo/public/assets/arsaboo/icons/security_armed_red.png -- 6.38kb -> 3.67kb (42.5%)
/demo/public/assets/jimpower/background-15.jpg -- 231.78kb -> 159.68kb (31.11%)
/public/static/images/image-broken.svg -- 0.56kb -> 0.42kb (23.99%)
/demo/public/assets/arsaboo/icons/security_disarmed.png -- 4.21kb -> 3.25kb (22.7%)
/demo/public/assets/arsaboo/icons/automation_enabled.png -- 3.96kb -> 3.08kb (22.32%)
/demo/public/assets/jimpower/cardbackK.png -- 10.56kb -> 8.21kb (22.22%)
/demo/public/assets/arsaboo/icons/abode_enabled.png -- 3.98kb -> 3.16kb (20.62%)
/demo/public/assets/arsaboo/icons/ecobee_blank.png -- 2.18kb -> 1.78kb (18.22%)
/demo/public/assets/arsaboo/floorplans/ecobee_blank.png -- 2.17kb -> 1.78kb (17.87%)
/demo/public/assets/arsaboo/icons/automation_disabled.png -- 6.89kb -> 5.73kb (16.82%)
/demo/public/assets/jimpower/home/james_10.jpg -- 73.21kb -> 61.89kb (15.46%)
/demo/public/assets/arsaboo/icons/camera_patio_streaming.png -- 11.63kb -> 9.88kb (14.98%)
/demo/public/assets/arsaboo/icons/Harmony.png -- 3.83kb -> 3.25kb (14.95%)
/demo/public/assets/arsaboo/icons/light_off.png -- 9.53kb -> 8.51kb (10.77%)
/demo/public/assets/arsaboo/icons/tv_enabled.png -- 5.48kb -> 4.90kb (10.69%)
/demo/public/assets/jimpower/home/bus_10.jpg -- 36.36kb -> 32.58kb (10.4%)
/demo/public/assets/kernehed/bella.jpg -- 33.09kb -> 30.29kb (8.44%)
/demo/public/assets/arsaboo/images/camera.backyard.jpg -- 81.15kb -> 74.80kb (7.82%)
/demo/public/assets/kernehed/oscar.jpg -- 25.32kb -> 23.34kb (7.81%)
/demo/public/assets/arsaboo/images/camera.patio.jpg -- 63.13kb -> 58.52kb (7.29%)
/demo/public/assets/arsaboo/images/camera.porch.jpg -- 76.49kb -> 70.95kb (7.25%)
/demo/public/assets/arsaboo/icons/light_on.png -- 12.03kb -> 11.19kb (6.97%)
/demo/public/assets/jimpower/home/tina_4.jpg -- 59.69kb -> 55.92kb (6.31%)
/gallery/public/images/album_cover.jpg -- 26.11kb -> 24.46kb (6.31%)
/demo/public/assets/teachingbirds/clothes_drying_square.jpg -- 31.93kb -> 29.98kb (6.11%)
/demo/public/assets/arsaboo/images/camera.driveway.jpg -- 59.47kb -> 55.84kb (6.1%)
/demo/public/assets/teachingbirds/laundry_running_square.jpg -- 58.68kb -> 55.61kb (5.22%)
/demo/public/assets/kernehed/camera.entre.jpg -- 65.84kb -> 62.49kb (5.09%)
/demo/public/assets/teachingbirds/Stefan_square.jpg -- 11.25kb -> 10.68kb (5.06%)
/demo/public/assets/teachingbirds/isa_square.jpg -- 18.90kb -> 17.98kb (4.88%)
/demo/public/assets/jimpower/security/motion_3.jpg -- 87.09kb -> 82.99kb (4.71%)
/demo/public/assets/teachingbirds/roomba_square.jpg -- 32.23kb -> 30.82kb (4.39%)
/demo/public/assets/teachingbirds/laundry_clean_2_square.jpg -- 31.87kb -> 30.48kb (4.34%)
/demo/public/assets/teachingbirds/folded_clothes_square.jpg -- 28.60kb -> 27.41kb (4.16%)
/demo/public/assets/arsaboo/icons/abode_disabled.png -- 8.74kb -> 8.38kb (4.06%)
/gallery/public/images/netflix.jpg -- 20.19kb -> 19.39kb (4%)
/demo/public/assets/teachingbirds/roomba_bw_square.jpg -- 15.97kb -> 15.34kb (3.97%)
/demo/public/assets/teachingbirds/trash_square.jpg -- 29.50kb -> 28.39kb (3.76%)
/demo/public/assets/teachingbirds/cleaning_square.jpg -- 38.57kb -> 37.19kb (3.59%)
/demo/public/assets/teachingbirds/dryer_square.jpg -- 18.78kb -> 18.16kb (3.32%)
/gallery/public/images/album_cover_2.jpg -- 129.79kb -> 125.62kb (3.21%)
/demo/public/assets/teachingbirds/House_square.jpg -- 40.59kb -> 39.31kb (3.15%)
/demo/public/assets/arsaboo/icons/tv_disabled.png -- 10.24kb -> 9.93kb (3.08%)
/demo/public/assets/teachingbirds/washer_square.jpg -- 20.52kb -> 20.00kb (2.52%)
/demo/public/assets/teachingbirds/mailbox_square.jpg -- 42.97kb -> 41.98kb (2.3%)
/demo/public/assets/teachingbirds/trash_bear_bw_square.jpg -- 17.60kb -> 17.35kb (1.46%)
/demo/public/assets/teachingbirds/guests_square.jpg -- 49.05kb -> 48.38kb (1.38%)
/demo/public/assets/teachingbirds/mailbox_bw_square.jpg -- 19.44kb -> 19.25kb (0.98%)
/demo/public/assets/arsaboo/icons/tv_on2.png -- 0.79kb -> 0.78kb (0.25%)

Signed-off-by: ImgBotApp <ImgBotHelp@gmail.com>

Co-authored-by: ImgBotApp <ImgBotHelp@gmail.com>
2020-03-31 16:50:20 +02:00
Paulus Schoutsen eacf58b5a5
Update color count in color extraction (#5270)
* Update color count in color extraction

* add the images
2020-03-18 23:12:27 -04:00
Paulus Schoutsen 3c17ee03b6
Improve color extraction for media control card (#5189)
* Improve color extraction

* Lazy load media control

* Update src/panels/lovelace/cards/hui-media-control-card.ts

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

* Extract constant

* Fix media control demo

* Remove quality(1)

Co-authored-by: Bram Kragten <mail@bramkragten.nl>
2020-03-13 10:01:36 -07:00
Bram Kragten e0a6d2efe5
Add on state to media control card (#5168) 2020-03-12 20:11:33 +01:00
Paulus Schoutsen 9b220cc6ce
Extract media controls into method (#5141)
* Extract media controls into method

* address comments

* lint

* Moooorre fixes

* Fix margin

* Update demos

* Very narrow idle players show play button

* Lint

* More stuff

* Marquee on steroids
2020-03-12 10:40:03 +01:00
Paulus Schoutsen 56bfa01c56 Fix demo name 2020-03-07 21:53:40 -08:00
Paulus Schoutsen 4a0fc3e087 Rename demo 2020-03-07 21:51:48 -08:00
Paulus Schoutsen f3c371996f
Add media player card gallery (#5101) 2020-03-07 21:47:53 -08:00
Ian Richardson 3f7c29a6f6
♻️ change entity-button to button card (#4581)
* ♻️ change entity-button to button card

* maintain separate entity-button class
2020-02-14 10:56:08 +01:00
Bram Kragten 04f8f0f74f Render should always return a html template (#4612) 2020-01-27 08:34:22 -08:00
Paulus Schoutsen 62654ec598
Refactor create element (#4509)
* Refactor create element

* Move things around

* Fix reference in gallery
2020-01-17 16:19:01 -08: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
Paulus Schoutsen 70d6c6b902
Refactor Webpack build scripts (#4093)
* Refactor Webpack build scripts

* Add Gallery too

* Fix icons

* Update travis
2019-10-21 15:02:54 -07:00
Bram Kragten 5e3cb812ec
Fix `yaml` name collision in card editor (#4079)
* Fix `yaml` name collision

* Add types for js-yaml change to named imports
2019-10-21 17:36:09 +02:00
Bram Kragten d05dc2e4dc
Bring back babel (#3974)
* Bring back babel

* bump preset env

* Remove empty TS properties in mixins
2019-10-19 14:06:04 +02: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
Franck Nijhof 8b6d8f9086 Update documentation link URL for integrations (#3857) 2019-10-02 13:23:41 +02:00
Bram Kragten a1b9a092d0 Bring back babel for ES5 builds (#3797)
* Bring back babel for ES5 builds

* Remove ts from babel
2019-09-23 13:15:12 -07:00
Ian Richardson 5e28e1b320 Switch paper-toggle-button to mwc-switch (#3683)
* Switch paper-toggle-button to mwc-switch

Closes https://github.com/home-assistant/home-assistant-polymer/issues/3352

* ha-switch

* apply not-checked theming

Thanks @bramkragten!

* address review comments
2019-09-21 11:59:27 +02:00
Paulus Schoutsen 594ee7ce9b Update build scripts 2019-09-08 23:39:37 -07:00
Paulus Schoutsen 4fdbec93b3
Migrate for climate 1.0 (#3333)
* Migrate for climate 1.0

* Update demo

* Fix gallery

* Add preset to thermostat card

* Fix climate entity row
2019-07-05 15:13:53 -07:00
Thomas Lovén d99744e054 ha-card migration - step #2 (#3187)
* Convert profile settings to ha-card

* Convert dev- panels to ha-card

* Convert empty-state-card to ha-card

* Convert zha config to ha-card - UNTESTED

* Convert zwave config to ha-card - UNTESTED

* Convert various panels to ha-card - UNTESTED

* Convert gallery to ha-card
2019-05-13 01:24:43 -07:00
Paulus Schoutsen 6c41c7b1ab
Gulpify build pipeline (#3145)
* Gulpify build pipeline

* Update build frontend script

* Fixes

* Limit service worker to latest build

* Use shorthand

* Fix hassio build
2019-05-02 11:35:46 -07:00
Paulus Schoutsen 1c6235546a
Swap out babel-minify for terser (#2885) 2019-03-05 13:10:35 -08:00
Paulus Schoutsen 1b8c567fd7
Use mwc-button instead of paper-button (#2744)
* Convert from paper-button to mwc-button

* Fixes

* Bye paper-button

* Fixes

* Final fixes

* Fix rebase conversion
2019-02-12 23:08:29 -08:00
Paulus Schoutsen 310b81de04
Convert HUI-IMAGE to TypeScript/Lit (#2713)
* Fix gallery demos

* Convert HUI-IMAGE to TypeScript/Lit

* Clean up
2019-02-11 14:14:29 -08:00
Paulus Schoutsen 504e4987b7
Fix event action in automation editor (#2686)
* Fix event action in automation editor

* Fix webpack resolve

* Update ha-automation-editor.js
2019-02-06 11:13:00 -08:00
Paulus Schoutsen 7a344c865f
Fix gauge card gallery demo (#2688) 2019-02-05 22:13:27 -08:00
Paulus Schoutsen 8db111c2fb
Update lint tools (#2576)
* Update lint

* Prettier Hass.io

* Update prettier
2019-01-26 19:34:07 -08:00
Paulus Schoutsen 5a6d537d43
Generalize minifier (#2577) 2019-01-26 18:55:32 -08:00
Paulus Schoutsen 3b66d58f91
Fix demo translations (#2511)
* Fix demo translations

* Comment out some more panels

* Fix reference
2019-01-20 11:24:39 -08:00
Paulus Schoutsen bb71fe0bec
Add demo (#2502)
* Add demo

* Fix stuff

* Lint

* Typescript and demo card

* More fixes

* Allow switching through configs

* Lint

* Lint2

* Add two demo configs

* Lint

* Lint
2019-01-18 21:24:32 -08:00
Tontze 65359aabe3 Update demo-hui-entity-button-card.ts (#2503)
Entity button change to correct format
2019-01-18 09:52:46 -08:00
Franck Nijhof faee6a7163 🎨 Optmizes image assets (#2499) 2019-01-17 11:06:29 -08:00
Paulus Schoutsen b0d32b5674
upgrade lit (#2458)
* upgrade lit

* Lint
2019-01-12 23:32:53 -08:00
Malte Franken 603cf7ba0f two new geo location map demo cards (#2349) 2018-12-18 11:29:12 +01:00
Ian Richardson b7c34c483a 🔨 Fix for element positioning (#2335)
* Fix for element positioning

* Address comments
2018-12-17 10:07:59 +01:00
Paulus Schoutsen 6a9cfbfa1c
TS create element functions (#2276)
* TS create element functions

* Name chunk
2018-12-12 14:21:34 +01:00
Paulus Schoutsen d277571735
Generalize errors (#2275) 2018-12-12 09:47:32 +01:00
Paulus Schoutsen a6f3684846
Fix gauge (#2274) 2018-12-12 09:29:46 +01:00
Ian Richardson 3d67d9eba3 Update gallery demos (#2206)
* Update gallery demos

* Update demo-hui-glance-card.ts
2018-12-07 07:04:02 +01:00
Paulus Schoutsen 7e584402ea
Add gallery demo for Long Press directive (#2189)
* Convert gallery to TS

* Add long press demo
2018-12-05 20:32:36 +01:00
Aephir f3b8d66f4f Update demo-hui-glance-card.js (#2157)
* Update demo-hui-glance-card.js

Fixed updated syntax

* Update gallery/src/demos/demo-hui-glance-card.js

Co-Authored-By: Aephir <waldenb@gmail.com>
2018-12-01 09:41:52 +01:00
Paulus Schoutsen a58a324073
Format html (#2006)
* Upgrade prettier

* Format files with prettier
2018-11-07 09:56:43 +01:00
Ian Richardson 6432207bf1 New Card: Shopping List (#1970)
* New Card: Shopping List

Following features:
- Add item
- Edit item
- Complete item
- Clear items

* Address Travis complaint

* Addressed review comments

* Update translation variable name

* Line up input row text

* Taking MVP to heart

Addressed review comments and scaled this back to just get a simple shopping list card out there and we can discuss/debate how best to add the additional pieces with smaller PRs

* Remove calling connected in set hass
2018-11-06 10:47:24 +01:00
Paulus Schoutsen 2ecb6e0f9e pic 2018-11-02 20:07:32 +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
Zack Arnett bb4ce278b0 Fixing Gallery and updating timeout type 2018-10-29 18:07:57 -04:00
Zack Arnett 7178d208d3 Light Card addition 2018-10-29 14:33:38 -04:00
Ian Richardson 7ff9211dfc Convert hui-picture-elements-card to TypeScript/LitElement (#1853)
* Convert hui-picture-elements-card to TypeScript/LitElement

Elements are not showing currently

* Address review comments

* Update demo
2018-10-26 10:04:04 +02:00
Zack Arnett 741c0c08b9 Thermostat Card LoveLace (#1814)
* POC/WIP: Thermostat Card

* Fix jQuery imports

* Cleaning out testing code and working on reviews

* Colors Dynamic + mode dynamic

* Minor changes

* adding html prefix

* Dynamic Text size and colors - getting somwhere slowly.

* Review Changes - Working version (i think)

* Updating Gallery Entry

* Travies Review

* Remove provide plugin, move CSS to JS

* Add provideHass to demo

* Demo fixes

* tweak margins

* Travis changes

* Style Tweaks

* Update to client Width range
2018-10-26 09:30:58 +02:00
Paulus Schoutsen 8bf60d502a
Allow mocking websocket commands in the gallery (#1859)
* Allow mocking rest/websocket commands in the gallery

* typo
2018-10-26 09:27:10 +02:00
Paulus Schoutsen 56a9ff2b35
Gallery: fix notifs, fake config/services, glance demo (#1857)
* Gallery: fix notifs, fake config/services, glance demo

* Fix missing glance states

* Fill in more missing entities

* Add controller to entity filter card
2018-10-25 14:05:22 +02:00
Thomas Lovén 5774d913af Lovelace: Add a label entity row (#1779)
* Add a label entity row

* Style fixes

* Allow blank label text

* Rename to section
2018-10-16 16:50:40 +02:00
Zack Arnett 794808d3a7 Button Card - Lovelace Addition (#1766)
* Initial Commit - Button Card

* Fixing Coloring Review

* Resolving Reviews

* Updating last Reviews
2018-10-15 20:07:13 +02:00
Zack Arnett 48f6d1dfec Adding Alarm Panel to Lovelace (#1758)
* Adding Alarm Panel

* Updating error in Lint

* Review Changes

* Using label-badge for upper right icon

* Resolving Reviews

* Prettier Fixes

* Updating style to fix overlapping state badge

* Adding Alarm Card back to create element

* Resolving reviews and reposition of Icon

* Updating to Localize Labels
2018-10-15 19:14:43 +02:00
Paulus Schoutsen 97e1aae9c0
Introduce TypeScript (#1773) 2018-10-15 19:07:08 +02:00
Paulus Schoutsen e2511c5ed3
Remove default export fire event (#1772)
* Remove default export fire event

* Update provide_hass.js
2018-10-15 06:17:33 +02:00
Paulus Schoutsen 3949b47e51
Introduce object rest spread (#1763) 2018-10-14 19:03:25 +02:00
Paulus Schoutsen 3bcd0ddc46
Migrate Babel 6 -> 7 (#1762)
* Migrate Babel 6 -> 7

* Update babel-eslint
2018-10-13 11:25:03 +02:00
Paulus Schoutsen 34bfc12647
Prettier 💎 (#1737)
* Add prettier

* Apply Prettier
2018-10-11 12:22:11 +02:00
Zack Arnett 69eb007ea2 Adding Gauge Card to Lovelace (#1742)
* Commiting Only needed Files. Adds Gallery Entry

* Adding Attribute current_temperature to gallery entry config

* Fixing code from review and updating gallery

* Updating Gallery to show errors

* Resolving Reviews and updating gallery

* Deleting unused line

* Minor changes

* Address my own comments.
2018-10-11 10:30:56 +02:00
Thomas Lovén 362e758c40 Lovelace: Allow glance card to assume theme colors (#1732)
* Allow glance card to assume theme colors

* Better configuration options

* Added example to gallery

* Fixing problems from review
2018-10-05 10:26:31 +02:00
Jerad Meisner 8b262f3424 Added entity row for media players. (#1495)
* Added entity row for media players.

* Use artist:track/series:episode for music/tvshow.

* Add controls

* Comments

* Fixes

* Fixes for off states. Added gallery demo.

* Resolve conflicts. Change to use template extension points.

* Fixes
2018-09-17 09:58:43 +02:00
Jerad Meisner b9f84d012f Add default_zoom option to map card. (#1592) 2018-08-24 10:27:36 +02:00
Jerad Meisner cde106bd77 Fix custom icon colors in entities and glance cards. (#1587)
* Fix custom icon colors in entities and glance cards.

* Use ha-icon directly in state-badge.
2018-08-23 22:24:21 +02:00
Jerad Meisner 4bc83b01d3 Remove _hiddenState method. (#1557)
* Remove _hiddenState method since it always has the same result.

* Hide state when row element is narrow. Add input_number row to gallery.
2018-08-13 09:42:09 +02:00
Paulus Schoutsen 8fa9b15fbe Fix margin gallery 2018-08-03 13:31:11 +02:00
c727 7ca7d3e12c Add conditional card for Lovelace (#1524)
* Add conditional card for Lovelace

* Make it work

* Fix cardSize

* Lint

* Check if visible in cardSize

* Fix

* Add demo, remove visible in cardSize

* Check if undefined
2018-07-27 08:37:09 +02:00
quthla e458cf1388 Fix name styling (#1522)
* Fix name styling

* Update hui-glance-card.js

* Demo

* Update demo-hui-glance-card.js

* Update hui-glance-card.js
2018-07-26 00:56:25 +02:00
c727 1b18315e96 Add icon support for picture glance (#1518)
* Add icon support for picture glance

* Add gallery demo

* Replace icon-button with ha-icon
2018-07-25 11:02:25 +02:00
Jerad Meisner 690252a6ba Added row entity for climate entities. (#1494)
* Added row entity for climate entities.

* Revert to old climate state style.

* Added climate entity to entities-card in gallery.
2018-07-25 10:40:21 +02:00
c727 201959841c Hide name or state in picture entity (#1511)
* Hide name or state in picture entity

* Lint
2018-07-24 13:54:54 +02:00
c727 5e91fbc54f Glance: replace turn-on with call-service (#1510)
* Glance: replace turn-on with call-service

* Fix demo

* Lint
2018-07-24 13:50:01 +02:00
c727 d1d248ab87 Add call-service row element (#1513) 2018-07-24 13:49:12 +02:00
Paulus Schoutsen b589412fdd
More info (#1500)
* Add more info

* Lint

* Minor cleanup

* Address comments
2018-07-23 22:40:42 +02:00
c727 a899fb1df8 Use local and optimized images in gallery (#1506) 2018-07-23 15:40:58 +02:00
Paulus Schoutsen d30bf6d566 Tweak divider example (#1505) 2018-07-23 14:46:57 +02:00
c727 22ed241286 Add row divider for entities card (#1503)
* Add row divider for entities card

* Add gallery demo

* Change hr to div, less attributes needed
2018-07-23 10:02:33 +02:00
c727 44ab96d590
Entities card: special row types, weblink (#1493)
* Add special row-cards: weblink

* Fix binding

* Fix yaml

* Lint

* Feedback

* Fix build

* Lint

* Lint
2018-07-23 03:57:42 +02:00
Alok Saboo af4df647cc Updated picture-elements demo card (#1501)
* Update floorplan image

* Add image elements

* Updated card to use different elements

* Change light name

* Light name

* Updated path
2018-07-22 20:31:05 +02:00
Paulus Schoutsen bdf26bbccd
Tweaks (#1489)
* Tweaks

* Lint

* No need for copy plugin

* Allow handling more complex service calls

* Missed a state

* Add locks

* Lint

* Add cover entity

* Make generic entity constructor

* Light to handle homeassistant.X services

* Lint

* Fix translations

* final tweaks
2018-07-22 11:41:56 +02:00
Paulus Schoutsen 3b2d4de313
Add example to show single entity conditionally (#1498) 2018-07-22 10:55:13 +02:00
Alok Saboo aaea698a6c Added basic picture-elements demo card (#1496)
* Added basic picture-elements card

* Cleanup

* Added title

* Remoted comment
2018-07-22 09:53:51 +02:00
c727 97f548a9f1 Custom icons for row cards and glance (#1492)
* Custom icons for row cards

* Remove var fallback

* Add icon support to glance

* Fix glance
2018-07-21 09:04:45 +02:00
c727 f42bddd447 Add more hass data to gallery (#1487)
* Add more hass data to gallery

* Fix media player images
2018-07-20 22:13:34 +02:00
Paulus Schoutsen 9634a13dc2
Fix static assets (#1484) 2018-07-20 11:42:07 +02:00
c727 a78aba5f50
Add more gallery cards (#1481)
* Add more gallery cards

* Lint
2018-07-20 03:22:16 +02:00
Paulus Schoutsen 1b039aee50
tweak demo cards layout (#1479)
* tweak demo cards layout

* Lint
2018-07-19 23:44:12 +02:00
c727 54860d7762 Add more features to gallery (#1477)
* Add more features to gallery

* Feedback

* Fix margin

* Use array-style config

* Split into DemoCards and DemoCard

* Move padding

* Use min-height
2018-07-19 22:57:51 +02:00
Paulus Schoutsen 5c74e31629
Add some styling to the gallery (#1478) 2018-07-19 22:19:10 +02:00
Paulus Schoutsen 61d3d446f4
picture glance: better handle if no title (#1474)
* Better handle if no title

* Simplify code

* Arrays in ifs

* Remove unused method

* Always render the middle div

* Always show both entity divs
2018-07-19 21:18:24 +02:00
Paulus Schoutsen a5befbe153
Add more demos (#1476) 2018-07-19 17:00:18 +02:00
Paulus Schoutsen f952d9c307 Fix build scripts for first run 2018-07-19 15:45:44 +02:00
Paulus Schoutsen 56907fb922
Add gallery (#1475)
* Add gallery

* Add build script

* Lint

* Remove cache
2018-07-19 15:24:30 +02:00