- Loading history data
+ Updating history data
-
-
-
-
+
+
+ No state history found.
-
-
-
-
-
+
+
+
+
+
+
-
+
@@ -23197,7 +23364,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
groupedStateHistory: {
type: Object,
- computed: 'computeGroupedStateHistory(stateHistory)',
+ computed: 'computeGroupedStateHistory(isLoading, stateHistory)',
},
isSingleDevice: {
@@ -23210,11 +23377,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
return stateHistory && stateHistory.length == 1;
},
- computeGroupedStateHistory: function(stateHistory) {
+ computeGroupedStateHistory: function(isLoading, stateHistory) {
var lineChartDevices = {};
var timelineDevices = [];
- if (!stateHistory) {
+ if (isLoading || !stateHistory) {
return {line: unitStates, timeline: timelineDevices};
}
@@ -23257,10 +23424,18 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
});
},
+ computeContentClasses: function(isLoading) {
+ return isLoading ? 'loading' : '';
+ },
+
computeIsLoading: function(isLoadingData, apiLoaded) {
return isLoadingData || !apiLoaded;
},
+ computeIsEmpty: function(stateHistory) {
+ return stateHistory && stateHistory.length === 0;
+ },
+
extractUnit: function(arr) {
return arr[0];
},
@@ -23280,6 +23455,14 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
.content.wide {
padding: 8px;
}
+
+ paper-input {
+ max-width: 200px;
+ }
+
+ .narrow paper-input {
+ margin-left: 8px;
+ }