iobroker.ebus 3.2.4 → 3.2.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (47) hide show
  1. package/.eslintrc.json +34 -34
  2. package/.releaseconfig.json +3 -0
  3. package/LICENSE +20 -20
  4. package/README.md +147 -130
  5. package/admin/index_m.html +419 -419
  6. package/admin/style.css +18 -18
  7. package/admin/words.js +27 -27
  8. package/io-package.json +218 -192
  9. package/lib/support_tools.js +370 -370
  10. package/lib/tools.js +99 -99
  11. package/main.js +1232 -1232
  12. package/package.json +13 -11
  13. package/widgets/ebus/lib/js/flot/jquery.canvaswrapper.js +549 -549
  14. package/widgets/ebus/lib/js/flot/jquery.colorhelpers.js +199 -199
  15. package/widgets/ebus/lib/js/flot/jquery.flot.axislabels.js +212 -212
  16. package/widgets/ebus/lib/js/flot/jquery.flot.browser.js +98 -98
  17. package/widgets/ebus/lib/js/flot/jquery.flot.categories.js +202 -202
  18. package/widgets/ebus/lib/js/flot/jquery.flot.composeImages.js +330 -330
  19. package/widgets/ebus/lib/js/flot/jquery.flot.crosshair.js +202 -202
  20. package/widgets/ebus/lib/js/flot/jquery.flot.drawSeries.js +662 -662
  21. package/widgets/ebus/lib/js/flot/jquery.flot.errorbars.js +375 -375
  22. package/widgets/ebus/lib/js/flot/jquery.flot.fillbetween.js +254 -254
  23. package/widgets/ebus/lib/js/flot/jquery.flot.flatdata.js +47 -47
  24. package/widgets/ebus/lib/js/flot/jquery.flot.hover.js +361 -361
  25. package/widgets/ebus/lib/js/flot/jquery.flot.image.js +249 -249
  26. package/widgets/ebus/lib/js/flot/jquery.flot.js +2953 -2953
  27. package/widgets/ebus/lib/js/flot/jquery.flot.legend.js +437 -437
  28. package/widgets/ebus/lib/js/flot/jquery.flot.logaxis.js +298 -298
  29. package/widgets/ebus/lib/js/flot/jquery.flot.navigate.js +834 -834
  30. package/widgets/ebus/lib/js/flot/jquery.flot.pie.js +794 -794
  31. package/widgets/ebus/lib/js/flot/jquery.flot.resize.js +60 -60
  32. package/widgets/ebus/lib/js/flot/jquery.flot.saturated.js +43 -43
  33. package/widgets/ebus/lib/js/flot/jquery.flot.selection.js +527 -527
  34. package/widgets/ebus/lib/js/flot/jquery.flot.stack.js +220 -220
  35. package/widgets/ebus/lib/js/flot/jquery.flot.symbol.js +98 -98
  36. package/widgets/ebus/lib/js/flot/jquery.flot.threshold.js +143 -143
  37. package/widgets/ebus/lib/js/flot/jquery.flot.time.js +586 -586
  38. package/widgets/ebus/lib/js/flot/jquery.flot.touch.js +320 -320
  39. package/widgets/ebus/lib/js/flot/jquery.flot.touchNavigate.js +360 -360
  40. package/widgets/ebus/lib/js/flot/jquery.flot.uiConstants.js +10 -10
  41. package/widgets/ebus/lib/js/flot/jquery.js +9473 -9473
  42. package/widgets/ebus/lib/js/lib/globalize.culture.en-US.js +33 -33
  43. package/widgets/ebus/lib/js/lib/globalize.js +1601 -1601
  44. package/widgets/ebus/lib/js/lib/jquery.event.drag.js +145 -145
  45. package/widgets/ebus/lib/js/lib/jquery.mousewheel.js +86 -86
  46. package/widgets/ebus.html +2395 -2395
  47. package/readme.txt +0 -297
@@ -1,60 +1,60 @@
1
- /* eslint-disable */
2
- /* Flot plugin for automatically redrawing plots as the placeholder resizes.
3
-
4
- Copyright (c) 2007-2014 IOLA and Ole Laursen.
5
- Licensed under the MIT license.
6
-
7
- It works by listening for changes on the placeholder div (through the jQuery
8
- resize event plugin) - if the size changes, it will redraw the plot.
9
-
10
- There are no options. If you need to disable the plugin for some plots, you
11
- can just fix the size of their placeholders.
12
-
13
- */
14
-
15
- /* Inline dependency:
16
- * jQuery resize event - v1.1 - 3/14/2010
17
- * http://benalman.com/projects/jquery-resize-plugin/
18
- *
19
- * Copyright (c) 2010 "Cowboy" Ben Alman
20
- * Dual licensed under the MIT and GPL licenses.
21
- * http://benalman.com/about/license/
22
- */
23
- (function($,e,t){"$:nomunge";var i=[],n=$.resize=$.extend($.resize,{}),a,r=false,s="setTimeout",u="resize",m=u+"-special-event",o="pendingDelay",l="activeDelay",f="throttleWindow";n[o]=200;n[l]=20;n[f]=true;$.event.special[u]={setup:function(){if(!n[f]&&this[s]){return false}var e=$(this);i.push(this);e.data(m,{w:e.width(),h:e.height()});if(i.length===1){a=t;h()}},teardown:function(){if(!n[f]&&this[s]){return false}var e=$(this);for(var t=i.length-1;t>=0;t--){if(i[t]==this){i.splice(t,1);break}}e.removeData(m);if(!i.length){if(r){cancelAnimationFrame(a)}else{clearTimeout(a)}a=null}},add:function(e){if(!n[f]&&this[s]){return false}var i;function a(e,n,a){var r=$(this),s=r.data(m)||{};s.w=n!==t?n:r.width();s.h=a!==t?a:r.height();i.apply(this,arguments)}if($.isFunction(e)){i=e;return a}else{i=e.handler;e.handler=a}}};function h(t){if(r===true){r=t||1}for(var s=i.length-1;s>=0;s--){var l=$(i[s]);if(l[0]==e||l.is(":visible")){var f=l.width(),c=l.height(),d=l.data(m);if(d&&(f!==d.w||c!==d.h)){l.trigger(u,[d.w=f,d.h=c]);r=t||true}}else{d=l.data(m);d.w=0;d.h=0}}if(a!==null){if(r&&(t==null||t-r<1e3)){a=e.requestAnimationFrame(h)}else{a=setTimeout(h,n[o]);r=false}}}if(!e.requestAnimationFrame){e.requestAnimationFrame=function(){return e.webkitRequestAnimationFrame||e.mozRequestAnimationFrame||e.oRequestAnimationFrame||e.msRequestAnimationFrame||function(t,i){return e.setTimeout(function(){t((new Date).getTime())},n[l])}}()}if(!e.cancelAnimationFrame){e.cancelAnimationFrame=function(){return e.webkitCancelRequestAnimationFrame||e.mozCancelRequestAnimationFrame||e.oCancelRequestAnimationFrame||e.msCancelRequestAnimationFrame||clearTimeout}()}})(jQuery,window);
24
-
25
- /* eslint-enable */
26
- (function ($) {
27
- var options = { }; // no options
28
-
29
- function init(plot) {
30
- function onResize() {
31
- var placeholder = plot.getPlaceholder();
32
-
33
- // somebody might have hidden us and we can't plot
34
- // when we don't have the dimensions
35
- if (placeholder.width() === 0 || placeholder.height() === 0) return;
36
-
37
- plot.resize();
38
- plot.setupGrid();
39
- plot.draw();
40
- }
41
-
42
- function bindEvents(plot, eventHolder) {
43
- plot.getPlaceholder().resize(onResize);
44
- }
45
-
46
- function shutdown(plot, eventHolder) {
47
- plot.getPlaceholder().unbind("resize", onResize);
48
- }
49
-
50
- plot.hooks.bindEvents.push(bindEvents);
51
- plot.hooks.shutdown.push(shutdown);
52
- }
53
-
54
- $.plot.plugins.push({
55
- init: init,
56
- options: options,
57
- name: 'resize',
58
- version: '1.0'
59
- });
60
- })(jQuery);
1
+ /* eslint-disable */
2
+ /* Flot plugin for automatically redrawing plots as the placeholder resizes.
3
+
4
+ Copyright (c) 2007-2014 IOLA and Ole Laursen.
5
+ Licensed under the MIT license.
6
+
7
+ It works by listening for changes on the placeholder div (through the jQuery
8
+ resize event plugin) - if the size changes, it will redraw the plot.
9
+
10
+ There are no options. If you need to disable the plugin for some plots, you
11
+ can just fix the size of their placeholders.
12
+
13
+ */
14
+
15
+ /* Inline dependency:
16
+ * jQuery resize event - v1.1 - 3/14/2010
17
+ * http://benalman.com/projects/jquery-resize-plugin/
18
+ *
19
+ * Copyright (c) 2010 "Cowboy" Ben Alman
20
+ * Dual licensed under the MIT and GPL licenses.
21
+ * http://benalman.com/about/license/
22
+ */
23
+ (function($,e,t){"$:nomunge";var i=[],n=$.resize=$.extend($.resize,{}),a,r=false,s="setTimeout",u="resize",m=u+"-special-event",o="pendingDelay",l="activeDelay",f="throttleWindow";n[o]=200;n[l]=20;n[f]=true;$.event.special[u]={setup:function(){if(!n[f]&&this[s]){return false}var e=$(this);i.push(this);e.data(m,{w:e.width(),h:e.height()});if(i.length===1){a=t;h()}},teardown:function(){if(!n[f]&&this[s]){return false}var e=$(this);for(var t=i.length-1;t>=0;t--){if(i[t]==this){i.splice(t,1);break}}e.removeData(m);if(!i.length){if(r){cancelAnimationFrame(a)}else{clearTimeout(a)}a=null}},add:function(e){if(!n[f]&&this[s]){return false}var i;function a(e,n,a){var r=$(this),s=r.data(m)||{};s.w=n!==t?n:r.width();s.h=a!==t?a:r.height();i.apply(this,arguments)}if($.isFunction(e)){i=e;return a}else{i=e.handler;e.handler=a}}};function h(t){if(r===true){r=t||1}for(var s=i.length-1;s>=0;s--){var l=$(i[s]);if(l[0]==e||l.is(":visible")){var f=l.width(),c=l.height(),d=l.data(m);if(d&&(f!==d.w||c!==d.h)){l.trigger(u,[d.w=f,d.h=c]);r=t||true}}else{d=l.data(m);d.w=0;d.h=0}}if(a!==null){if(r&&(t==null||t-r<1e3)){a=e.requestAnimationFrame(h)}else{a=setTimeout(h,n[o]);r=false}}}if(!e.requestAnimationFrame){e.requestAnimationFrame=function(){return e.webkitRequestAnimationFrame||e.mozRequestAnimationFrame||e.oRequestAnimationFrame||e.msRequestAnimationFrame||function(t,i){return e.setTimeout(function(){t((new Date).getTime())},n[l])}}()}if(!e.cancelAnimationFrame){e.cancelAnimationFrame=function(){return e.webkitCancelRequestAnimationFrame||e.mozCancelRequestAnimationFrame||e.oCancelRequestAnimationFrame||e.msCancelRequestAnimationFrame||clearTimeout}()}})(jQuery,window);
24
+
25
+ /* eslint-enable */
26
+ (function ($) {
27
+ var options = { }; // no options
28
+
29
+ function init(plot) {
30
+ function onResize() {
31
+ var placeholder = plot.getPlaceholder();
32
+
33
+ // somebody might have hidden us and we can't plot
34
+ // when we don't have the dimensions
35
+ if (placeholder.width() === 0 || placeholder.height() === 0) return;
36
+
37
+ plot.resize();
38
+ plot.setupGrid();
39
+ plot.draw();
40
+ }
41
+
42
+ function bindEvents(plot, eventHolder) {
43
+ plot.getPlaceholder().resize(onResize);
44
+ }
45
+
46
+ function shutdown(plot, eventHolder) {
47
+ plot.getPlaceholder().unbind("resize", onResize);
48
+ }
49
+
50
+ plot.hooks.bindEvents.push(bindEvents);
51
+ plot.hooks.shutdown.push(shutdown);
52
+ }
53
+
54
+ $.plot.plugins.push({
55
+ init: init,
56
+ options: options,
57
+ name: 'resize',
58
+ version: '1.0'
59
+ });
60
+ })(jQuery);
@@ -1,43 +1,43 @@
1
- (function ($) {
2
- 'use strict';
3
- var saturated = {
4
- saturate: function (a) {
5
- if (a === Infinity) {
6
- return Number.MAX_VALUE;
7
- }
8
-
9
- if (a === -Infinity) {
10
- return -Number.MAX_VALUE;
11
- }
12
-
13
- return a;
14
- },
15
- delta: function(min, max, noTicks) {
16
- return ((max - min) / noTicks) === Infinity ? (max / noTicks - min / noTicks) : (max - min) / noTicks
17
- },
18
- multiply: function (a, b) {
19
- return saturated.saturate(a * b);
20
- },
21
- // returns c * bInt * a. Beahves properly in the case where c is negative
22
- // and bInt * a is bigger that Number.MAX_VALUE (Infinity)
23
- multiplyAdd: function (a, bInt, c) {
24
- if (isFinite(a * bInt)) {
25
- return saturated.saturate(a * bInt + c);
26
- } else {
27
- var result = c;
28
-
29
- for (var i = 0; i < bInt; i++) {
30
- result += a;
31
- }
32
-
33
- return saturated.saturate(result);
34
- }
35
- },
36
- // round to nearby lower multiple of base
37
- floorInBase: function(n, base) {
38
- return base * Math.floor(n / base);
39
- }
40
- };
41
-
42
- $.plot.saturated = saturated;
43
- })(jQuery);
1
+ (function ($) {
2
+ 'use strict';
3
+ var saturated = {
4
+ saturate: function (a) {
5
+ if (a === Infinity) {
6
+ return Number.MAX_VALUE;
7
+ }
8
+
9
+ if (a === -Infinity) {
10
+ return -Number.MAX_VALUE;
11
+ }
12
+
13
+ return a;
14
+ },
15
+ delta: function(min, max, noTicks) {
16
+ return ((max - min) / noTicks) === Infinity ? (max / noTicks - min / noTicks) : (max - min) / noTicks
17
+ },
18
+ multiply: function (a, b) {
19
+ return saturated.saturate(a * b);
20
+ },
21
+ // returns c * bInt * a. Beahves properly in the case where c is negative
22
+ // and bInt * a is bigger that Number.MAX_VALUE (Infinity)
23
+ multiplyAdd: function (a, bInt, c) {
24
+ if (isFinite(a * bInt)) {
25
+ return saturated.saturate(a * bInt + c);
26
+ } else {
27
+ var result = c;
28
+
29
+ for (var i = 0; i < bInt; i++) {
30
+ result += a;
31
+ }
32
+
33
+ return saturated.saturate(result);
34
+ }
35
+ },
36
+ // round to nearby lower multiple of base
37
+ floorInBase: function(n, base) {
38
+ return base * Math.floor(n / base);
39
+ }
40
+ };
41
+
42
+ $.plot.saturated = saturated;
43
+ })(jQuery);