* 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
* 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
* 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
* 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
* 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
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.
* 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
* 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
* 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
* 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
* 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
When the slider width is updated, resizeObserver prevent for firing the function another time.
Exemple: https://jsfiddle.net/ba1ad26e/11/
Compete doc: https://wicg.github.io/ResizeObserver/#html-event-loop
Solution: Observe the width change of the card instead of the slider. If the state value is hidden/displayed, it won't change again the slider width and so it will prevent the msg in the log
Drawback: the function cannot use the width sent by the resizeObserver anymore as it's no longer the slider width but the card width
* feature : display input number next to slider
* Improvements for Box mode of input number
Add unit when available and align the value to the right
* fix for small width cards
hide state if slider width<100px
* add a space between if and (
* Fix value display after a window resize
State value is now hiding or showing correctly after a window resize, using iron-resize component
* fixes eslint validator
* Fix a typo in state-card
* Improvement : Apply all properties altogether
As suggered by @andrey-git, I made use of setProperties
* Watch for mode update of input_number
If a mode is updated and the box switches from "box" to "slider", it now also update the visibility of the state value depending on the slider width
* Update width showing state value
* Use ResizeObserver when available
* Fix conditionnal mistake
Related @andrey-git review here https://github.com/home-assistant/home-assistant-polymer/pull/808#pullrequestreview-90048982