6883 Commits

Author SHA1 Message Date
Paulus Schoutsen
2ed5b7e7c1
Move effects control down (#988)
It's the least important control in the whole more info picker, yet was taking up the prime spot.
2018-03-13 23:58:12 -07:00
NovapaX
7066b40e4c Apply paper-dialog-behavior instead of nesting paper-dialogs (#987)
* disable ha-url-sync

* apply a paper-dialog-behavior mixin to dialogs

* Revert "disable ha-url-sync"

This reverts commit 4758a81af61d9f6979a93c0a899d3788fb48090e.

* fix css :host attribute selector

* move hass back to the components
2018-03-12 18:20:04 -07:00
NovapaX
2c79094fb4 Change more-info-dialog name to ha-more-info-dialog (#986)
* change more-info name to ha-more-info-dialog (like other dialogs)

* rename element

* fix closing tag
2018-03-12 12:34:51 -07:00
c727
3234777154 Add Norsk Nynorsk to languages (#984) 2018-03-11 15:13:50 -07:00
Adam Mills
29f9b2d201 Fix backend translations load without selection (#979) 2018-03-10 10:06:25 -08:00
c727
08d4e0af18
Fix relativeTime format for Date() === dateObj (#974)
* Fix relativeTime format for Date() === dateObj

* Feedback

* Update hass-util.html
2018-03-07 17:31:13 +01:00
Andrey
710139bf4b Clean charts and persist hidden lines (#970) 2018-03-05 13:40:53 -08:00
Paulus Schoutsen
d188821765
Prefer set properties (#968)
* Use set properties

* Address comments

* Update partial-cards.html
2018-03-05 00:12:55 -08:00
Andrey
19705a9c2b IntersectionObserver fixes (#964)
* IntersectionObserver fixes

* handle 'card -> entities -> card' case

* fix typo
2018-03-04 10:22:53 -08:00
Andrey
addad74019 Add css variables to toggle buttons colors (#966) 2018-03-04 10:20:54 -08:00
Boyi C
9dc33de49f Update chartjs to 2.7.2 (#963)
* Update chartjs to 2.7.2

* lint

* lint
2018-03-03 17:43:27 -08:00
Adam Mills
101794c88e Load and subscribe to backend translations (#894)
* Load backend translations

* Add support for component level state translations

* Fix selected language backend translation loading
2018-02-28 19:32:48 -08:00
c727
bae1ab822c
Add Welsh + Indonesian to languages (#873)
* Add Welsh to languages

* Add Indonesian
2018-03-01 04:03:57 +01:00
NovapaX
f87dbc5735 retru importHref once to solve a webkit refresh issue (#958) 2018-02-28 13:59:01 -08:00
Sean Wilson
7377db312b Add 'lock' device class (#800)
* Add 'lock' device class

* Invert lock settings as per https://github.com/home-assistant/home-assistant/pull/11640
2018-02-28 13:25:33 -08:00
NovapaX
bb6c46180d Hide the date-clear icon and style vaadin-date-input like a paper input (#956)
* styling the vaadin-date-input like a paper input.

* move date-picker styles to ha-style
so they get reused automatically

* move vaadin date-picker-styles to thier own file.

* only disable clear button on required field.
and some style changes
2018-02-28 12:56:18 -08:00
Max Prokhorov
9c6d28fbc4 Chart.js labels and ticks with proper locale formatting (#948)
* Use hassUtil to format time in timeline tooltip

* Also format time in timeline ticks

* Use hassUtil.formatTime instead of moment.format
2018-02-28 10:40:38 -08:00
NovapaX
5966e872cf reinstate connectedCallback (#957)
using the debouncer this time so no harm
2018-02-28 19:19:09 +02:00
NovapaX
16734c7423 Fix history data processing (#951)
* don't call filterchanged twice. it's already an observer.

* fix data comparison
Compare new data from ha-state-history-data to existing data and replace
if changed

* remove unnecessary styles

* prevent multiple updates of chart-data

* remove console

* remove another console

* directly binding because debouncing in history-data element
shortening debounce time, works fine at 0

* remove inacurate comment
2018-02-27 20:40:25 -08:00
NovapaX
26b9ddf3ed fix safari es6 bug (#950)
and also at least log the error we catch. (don't know why the catch is
there, so not removing it)
2018-02-27 20:00:33 -08:00
Paulus Schoutsen
73608a73e7
Update zoom icon (#954) 2018-02-27 19:48:49 -08:00
Paulus Schoutsen
c2b090b912
Import mixin to silence build warning (#952) 2018-02-27 19:35:49 -08:00
Paulus Schoutsen
f75147c799
Reset height when not observing (#949) 2018-02-27 19:05:07 -08:00
Paulus Schoutsen
5296dcfe85
Entity Registry UI (#921)
* Entity Registry UI

* Tweak style in fullscreen

* Fix UI comments

* Fix imports

* Change title margin

* Fix graph rendering

* More style fixes

* Remove unused parameter
2018-02-27 19:04:58 -08:00
NovapaX
24bafceb71 Remove tap highlight on mobile Safari (#911)
* remove tap highlight

* indentation fix
removing tab that was already there

* Best of both worlds
Makes tap higlight visible on clickable elements on cards. (provides
some basic tap-feedback on iOS safari)

* allow highlight on sidebar links, add comment
2018-02-27 18:35:20 -08:00
Paulus Schoutsen
3430996700
Migrate to app-drawer-layout (#929) 2018-02-27 17:38:19 -08:00
Andrey
ebc21aaa40 Disconnect unused more-info (#945) 2018-02-27 14:00:50 -08:00
Boyi C
807837a0dc Make the chart color more eye-friendly. (#941)
* Fix chart legend not showing correctly when data has 1 series.

* Change to flexbox

* Change timeline chart color to a palette.
2018-02-27 01:24:40 -08:00
NovapaX
44c325a929 prevent state display line-wrapping (#932)
* prevent state display line-wrapping
Only for applies to default statecards (state-card-display), not for
component specific statecards.

* compute class names function

* apply style to calculated class

* var -> const
2018-02-26 22:10:05 -08:00
NovapaX
294dec59a7 Fix display issues on iOS 9.3.5 (#901)
* Fix global default definition selector

* taking the brute force approach

* Some clarification in comment.
Feel free to change or remove. I thought this would be usefull as this
is a severe code duplacation that justifies some comment/clarification.

* Add link to PR/discussion for future reference

* Revert "taking the brute force approach"

This reverts commit 77d9920cd9c2c77c4bfc9a601c122e31e55ec6a4.

# Conflicts:
#	src/resources/ha-style.html

* change comment

* always include paper-styles before custom style
2018-02-26 16:16:39 -08:00
Adam Mills
d4b257854d Add localization to the automation editor (#923)
* Add localization to the automation editor

* Unnest automation strings from `section`
2018-02-26 16:15:51 -08:00
Paulus Schoutsen
ff658c86ff
Fix deprecated CSS (#928)
* Fix nested var

* Fix deprecated @apply syntax

* Hassio
2018-02-26 11:43:58 -08:00
Boyi C
0ab240c678 Fix chart legend not showing correctly when data has 1 series. (#926)
* Fix chart legend not showing correctly when data has 1 series.

* Change to flexbox
2018-02-26 10:46:20 -08:00
NovapaX
672bfb375f Fix paper card alignment in safari (#933) 2018-02-26 16:14:22 +01:00
Paulus Schoutsen
cdb9936795
Fix cards not getting updated (#927) 2018-02-26 00:24:07 -08:00
NovapaX
8b719778d0 search and replace (#924) 2018-02-25 19:44:03 -08:00
c727
cdd4cabb4b Hassio, use CSS vars to avoid conflicts with themes (#918)
* Hassio, use CSS vars to avoid conflicts with themes

* More
2018-02-23 15:07:09 -08:00
Andrey
ea57e71c8b Optionally use Intersection Observer to late-load cards (#906) 2018-02-21 00:00:52 -08:00
Tabakhase
72a0b3520d Bring back zoom in charts using chartjs-plugin-zoom (#890)
* add chartjs-plugin-zoom + hammerjs

* adds a "unzoom" button for chartjs-plugin-zoom

* limits chartjs zoom and pan area by scanning all axis
2018-02-18 08:12:30 -08:00
Paulus Schoutsen
f3c3bb8c43
Config panel for Config Entries (#861)
* Initial implementation

* Update UI

* Update

* Address comments

* More comments

* Lint
2018-02-16 14:36:11 -08:00
Paulus Schoutsen
5731c1fa28
Load the chart resources in dev too (#896)
When switching to always loading the resources on demand, I forgot to change the default value to be always false instead of dev. This caused the charts not to load in dev.
2018-02-15 21:38:44 -08:00
Marius
1783696ecb more-info-climate.html use supported_features (#849)
* Added supported features for controls

* Improved supported features

* Removed lines resulted from rebase

* Fixed lint and review

* Added more supported_features and fixed fan mode bug
2018-02-13 23:20:11 -08:00
Paulus Schoutsen
4c5d85746c
Fingerprint charts (#883)
* Fingerprint charts URL

* cache in service worker
2018-02-11 09:01:17 -08:00
Boyi C
b6ad4edd32 Fix missing arguments in history-data. (#880) 2018-02-10 10:08:04 +02:00
Boyi C
c6030e6edc Replace Google Charts with Chart.js (#429)
* chartjs test

* [WIP] Modified for Chart.js

* Tweaking styles ( tooltips and lines )

* Almost done
TODO:
Change tooltips to HTML tag
Improve color function

* More work on Tooltips

* Improve update logic
Fix linting

* resolve conflict

* [WIP]
Create new tooltip mode hack.
Add axis padding to top and botton to prevent axis cutoff

* TODO: cleanup

* FIXME: tooltip in history graph not working correctly
reorganize some code

* fix build problem

* Fix color and tooltip issue
Fix label max width for timeline chart

* update dep

* Fix strange color after build due to `uglify` bug with reference the minified version.
Make line chart behavior more similar to Google Charts.
Make the chart honor to `unknown` and other state by manually calculate point value.

* fix bugs

* Remove label for only one data in timeline chart.
Fix bug for infinite loop in some cases

* Add HTML legend to chart.

* Fix isSingleDevice bug due to calculation.
Add isSingleDevice property support.

* fix for lint

* Replace innerHTML code with polymer node.

* Replace tooltip with HTML code

* fix tooltip style

* move default tooltip mode to plugin

* LINTING

* fix
Move localize history data to Timeline Chart.
Fix timeline static color.
Rework on chart resize.

* Bug fix:
Chart may disappear on some case.
Timeline chart calculation issue.
Change timeline chart hidden logic.

* fix tooltip
rework for resize event

* lint

* element

* Replace `var` to `let`.
Move import and ChartJs injection code to `ha-chart-scripts.html`.

* lint: convert more let to const

* fix font
fix undef

* update bower.json

* move

* Load chart code on demand
2018-02-09 22:39:15 -08:00
Abílio Costa
3701e022bc Badge sorting (#844)
* sort badges correctly in user-defined group

* rename sorting list that is used for badges and groups

* remove trailing space

* better array iteration

* Revert "better array iteration"

This reverts commit 0a87b3350cf2bd60450e3d2985c7449efe73c18d.

* simplify sorting of badges
2018-02-09 14:30:35 -08:00
c727
710c2f1094
Hass.io improved add-on view (#874)
* Rename

* Improvements

* Travis

* Feedback

* Typo
2018-02-08 22:15:51 +01:00
Steltek
1f703fbdda Make the password field autofocus on the login screen. (#862)
* Author:    Michel Meyers <debian@tcnnet.com>
Committer: Michel Meyers <debian@tcnnet.com>

Make the password field autofocus on the login screen.

* Update login-form.html
2018-02-07 16:39:50 -08:00
Marius
76153d1e17 Fixing #775 (#854) 2018-02-07 15:21:07 -08:00
Marius
ec930d2c56 HASSIO Improved addon view (#869)
* Improved addon view
Moved files to avoid conflicts with @c727
Modified data to addons
Removed unused properties
Removed blank line and unused class
Added link to polymer-element
Redone grouping

* Changes based on feedback

* Revert flex box

Maybe someone else can help to center the icon and text

* Display timestamp in new line

* Update hassio-card-content.html
2018-02-07 22:57:43 +01:00