* 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
* 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
* Translations for logbook/history panels
* Switch to base localize function
* Move periods to generic durations keys
These are going to end up part of a duration class of keys that will be
more widely used.
* Rewrite _currentDate to work in all time zones
The method toISOString() returns a timestamp in UTC. Thus, midnight in the CET
timezone (UTC+1) was converted into yesterday@2300 and then that date was used
as the current date.
This made the logbook and history start with yesterday's data, at least for
locations east of UTC.
The new version avoids this by using methods that work in local time.
* Remove an embarrassing amount of lint
* Rewrite to be more concise
Proposed by @armills.
* Fix color picker
* Fix map panel CSS
* Convert logbook to use vaadin date picker
* Fix logbook clear date
* Migrate history panel to use vaadin date picker
* Remove pikaday
* Lint
* history panel: disable on loading
* Support multi-day history charts
* Fix lint
* Reduce the periods to 1/3/7 days.
* Switch to end_time param instead of days
* Move async waiting from history-data to panel-history
* Take navigator.languages into account when determining the preferred language
* Lookup language only once, use it also for other date/time functions
* Show the date picker value in localized date
* Show the date picker value in localized date (in history)