@hpcc-js/api 2.9.1 → 2.10.1

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.
package/dist/index.es6.js CHANGED
@@ -1,8 +1,8 @@
1
1
  import { Palette, hsl, Widget, select, selection, map, format } from '@hpcc-js/common';
2
2
 
3
3
  var PKG_NAME = "@hpcc-js/api";
4
- var PKG_VERSION = "2.9.1";
5
- var BUILD_VERSION = "2.102.4";
4
+ var PKG_VERSION = "2.10.1";
5
+ var BUILD_VERSION = "2.103.1";
6
6
 
7
7
  function I1DChart() {
8
8
  }
@@ -10,10 +10,8 @@ I1DChart.prototype._dataFamily = "1D";
10
10
  I1DChart.prototype._palette = Palette.rainbow("default");
11
11
  // Events ---
12
12
  I1DChart.prototype.click = function (row, column, selected) {
13
- console.log("Click: " + JSON.stringify(row) + ", " + column + ", " + selected);
14
13
  };
15
14
  I1DChart.prototype.dblclick = function (row, column, selected) {
16
- console.log("Double click: " + JSON.stringify(row) + ", " + column + ", " + selected);
17
15
  };
18
16
 
19
17
  function I2DChart() {
@@ -31,10 +29,8 @@ I2DChart.prototype.textColor = function (row, column, value, origRow) {
31
29
  };
32
30
  // Events ---
33
31
  I2DChart.prototype.click = function (row, column, selected) {
34
- console.log("Click: " + JSON.stringify(row) + ", " + column + ", " + selected);
35
32
  };
36
33
  I2DChart.prototype.dblclick = function (row, column, selected) {
37
- console.log("Double click: " + JSON.stringify(row) + ", " + column + ", " + selected);
38
34
  };
39
35
 
40
36
  function I2DAggrChart() {
@@ -51,10 +47,8 @@ I2DAggrChart.prototype.textColor = function (row, column, value) {
51
47
  };
52
48
  // Events ---
53
49
  I2DAggrChart.prototype.click = function (row, column, selected) {
54
- console.log("Click: " + JSON.stringify(row) + ", " + column + ", " + selected);
55
50
  };
56
51
  I2DAggrChart.prototype.dblclick = function (row, column, selected) {
57
- console.log("Double click: " + JSON.stringify(row) + ", " + column + ", " + selected);
58
52
  };
59
53
 
60
54
  function IGraph() {
@@ -62,124 +56,85 @@ function IGraph() {
62
56
  IGraph.prototype._dataFamily = "graph";
63
57
  // Events ---
64
58
  IGraph.prototype.vertex_click = function (_row, _col, _sel, more) {
65
- if (more && more.vertex) {
66
- console.log("Vertex click: " + more.vertex.id());
67
- }
59
+ if (more && more.vertex) ;
68
60
  };
69
61
  IGraph.prototype.vertex_dblclick = function (_row, _col, _sel, more) {
70
- if (more && more.vertex) {
71
- console.log("Vertex double click: " + more.vertex.id());
72
- }
62
+ if (more && more.vertex) ;
73
63
  };
74
64
  IGraph.prototype.edge_click = function (_row, _col, _sel, more) {
75
- if (more && more.edge) {
76
- console.log("Edge click: " + more.edge.id());
77
- }
65
+ if (more && more.edge) ;
78
66
  };
79
67
  IGraph.prototype.edge_dblclick = function (_row, _col, _sel, more) {
80
- if (more && more.edge) {
81
- console.log("Edge double click: " + more.edge.id());
82
- }
68
+ if (more && more.edge) ;
83
69
  };
84
70
 
85
71
  function instanceOfIHighlight(w) {
86
72
  return typeof w.highlightColumn === "function";
87
73
  }
88
74
 
89
- /*! *****************************************************************************
90
- Copyright (c) Microsoft Corporation.
91
-
92
- Permission to use, copy, modify, and/or distribute this software for any
93
- purpose with or without fee is hereby granted.
94
-
95
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
96
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
97
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
98
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
99
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
100
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
101
- PERFORMANCE OF THIS SOFTWARE.
102
- ***************************************************************************** */
103
- /* global Reflect, Promise */
104
-
105
- var extendStatics = function(d, b) {
106
- extendStatics = Object.setPrototypeOf ||
107
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
108
- function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
109
- return extendStatics(d, b);
110
- };
111
-
112
- function __extends(d, b) {
113
- if (typeof b !== "function" && b !== null)
114
- throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
115
- extendStatics(d, b);
116
- function __() { this.constructor = d; }
117
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
75
+ // Use old school class declaration as this is a mixin ---
76
+ function IInput() {
118
77
  }
119
-
120
- var IInput = /** @class */ (function (_super) {
121
- __extends(IInput, _super);
122
- function IInput() {
123
- return _super.call(this) || this;
124
- }
125
- // Implementation ---
126
- IInput.prototype.isValid = function () {
127
- if (this.validate()) {
128
- var re = new RegExp(this.validate());
129
- if (!re.test(this.value())) {
130
- return false;
131
- }
132
- }
133
- return true;
134
- };
135
- IInput.prototype.hasValue = function () {
136
- if (typeof this.type === "function") {
137
- switch (this.type()) {
138
- case "radio":
139
- /* falls through */
140
- case "checkbox":
141
- if (this.value() && this.value() !== "false") {
142
- return true;
143
- }
144
- break;
145
- default:
146
- if (this.value()) {
147
- return true;
148
- }
149
- break;
150
- }
78
+ IInput.prototype = Object.create(Widget.prototype);
79
+ IInput.prototype.constructor = IInput;
80
+ // abstract target(): any;
81
+ // abstract target(_: any): this;
82
+ // Implementation ---
83
+ IInput.prototype.isValid = function () {
84
+ if (this.validate()) {
85
+ var re = new RegExp(this.validate());
86
+ if (!re.test(this.value())) {
151
87
  return false;
152
88
  }
153
- return this.value() !== "";
154
- };
155
- // Events ---
156
- IInput.prototype.blur = function (_w) {
157
- };
158
- IInput.prototype.keyup = function (_w) {
159
- };
160
- IInput.prototype.focus = function (_w) {
161
- };
162
- IInput.prototype.click = function (_w) {
163
- };
164
- IInput.prototype.dblclick = function (_w) {
165
- };
166
- IInput.prototype.change = function (_w, complete) {
167
- };
168
- IInput.prototype.resetValue = function (w) {
169
- w.value(w._inputElement[0].node().value);
170
- };
171
- IInput.prototype.disable = function (disable) {
172
- this._inputElement.forEach(function (e, idx) {
173
- e.attr("disabled", disable ? "disabled" : null);
174
- });
175
- };
176
- IInput.prototype.setFocus = function () {
177
- if (this._inputElement.length) {
178
- this._inputElement[0].node().focus();
89
+ }
90
+ return true;
91
+ };
92
+ IInput.prototype.hasValue = function () {
93
+ if (typeof this.type === "function") {
94
+ switch (this.type()) {
95
+ case "radio":
96
+ /* falls through */
97
+ case "checkbox":
98
+ if (this.value() && this.value() !== "false") {
99
+ return true;
100
+ }
101
+ break;
102
+ default:
103
+ if (this.value()) {
104
+ return true;
105
+ }
106
+ break;
179
107
  }
180
- };
181
- return IInput;
182
- }(Widget));
108
+ return false;
109
+ }
110
+ return this.value() !== "";
111
+ };
112
+ // Events ---
113
+ IInput.prototype.blur = function (_w) {
114
+ };
115
+ IInput.prototype.keyup = function (_w) {
116
+ };
117
+ IInput.prototype.focus = function (_w) {
118
+ };
119
+ IInput.prototype.click = function (_w) {
120
+ };
121
+ IInput.prototype.dblclick = function (_w) {
122
+ };
123
+ IInput.prototype.change = function (_w, complete) {
124
+ };
125
+ IInput.prototype.resetValue = function (w) {
126
+ w.value(w._inputElement[0].node().value);
127
+ };
128
+ IInput.prototype.disable = function (disable) {
129
+ this._inputElement.forEach(function (e, idx) {
130
+ e.attr("disabled", disable ? "disabled" : null);
131
+ });
132
+ };
133
+ IInput.prototype.setFocus = function () {
134
+ if (this._inputElement.length) {
135
+ this._inputElement[0].node().focus();
136
+ }
137
+ };
183
138
  IInput.prototype.publish("name", "", "string", "HTML name for the input");
184
139
  IInput.prototype.publish("label", "", "string", "Descriptive label");
185
140
  IInput.prototype.publish("value", "", "string", "Input Current Value");
@@ -200,10 +155,8 @@ INDChart.prototype.textColor = function (row, column, value, origRow) {
200
155
  };
201
156
  // Events ---
202
157
  INDChart.prototype.click = function (row, column, selected) {
203
- console.log("Click: " + JSON.stringify(row) + ", " + column + ", " + selected);
204
158
  };
205
159
  INDChart.prototype.dblclick = function (row, column, selected) {
206
- console.log("Double click: " + JSON.stringify(row) + ", " + column + ", " + selected);
207
160
  };
208
161
 
209
162
  // Based on https://github.com/GordonSmith/d3-tip forked from https://github.com/Caged/d3-tip
@@ -592,152 +545,151 @@ function styleInject(css, ref) {
592
545
  var css_248z = ".d3-tip{background:rgba(0,0,0,.66);border-radius:2px;color:#fff;font-weight:700;line-height:1;padding:12px;pointer-events:none!important;z-index:10}.d3-tip.hidden{visibility:hidden}.d3-tip:after{border:4px solid rgba(0,0,0,.66);box-sizing:border-box;content:\" \";display:inline-block;height:8px;margin:0;pointer-events:none!important;position:absolute;width:8px}.d3-tip.n:after{border-right-color:transparent;border-top-width:8px;left:calc(50% - 4px);top:100%}.d3-tip.e:after,.d3-tip.n:after{border-bottom-color:transparent;border-left-color:transparent}.d3-tip.e:after{border-right-width:8px;border-top-color:transparent;left:-12px;top:calc(50% - 4px)}.d3-tip.s{margin-top:8px}.d3-tip.s:after{border-bottom-width:8px;border-left-color:transparent;left:calc(50% - 4px);top:-12px}.d3-tip.s:after,.d3-tip.w:after{border-right-color:transparent;border-top-color:transparent}.d3-tip.w:after{border-bottom-color:transparent;border-left-width:8px;left:100%;top:calc(50% - 4px)}.d3-tip.notick:after{border-color:transparent!important}.common_Widget .over{stroke:rgba(0,0,0,.66);opacity:.66}.d3-tip.ITooltip-tooltipStyle-series-table{padding:0}.d3-tip .ITooltip-series-table td,.d3-tip .ITooltip-series-table th{border:1px solid #d1d1d1;padding:6px;text-align:left}.d3-tip .ITooltip-series-table .series-table-row-color{display:inline-block;height:10px;margin-right:10px;width:10px}.d3-tip .ITooltip-series-table .series-table-row-label{display:inline-block}.d3-tip .ITooltip-series-table th{background-color:#b3b3b3}.d3-tip .ITooltip-series-table td{background-color:#fff;color:#555;font-weight:400}.d3-tip .ITooltip-series-table td:first-child{border-right:0}table.ITooltip-series-table td:last-child{border-left:1px dotted #a3a3a3}";
593
546
  styleInject(css_248z);
594
547
 
595
- var ITooltip = /** @class */ (function (_super) {
596
- __extends(ITooltip, _super);
597
- function ITooltip() {
598
- var _this = _super.call(this) || this;
599
- _this.tooltip = tip();
600
- _this._valueFormatter = format(_this.tooltipValueFormat());
601
- if (_this.layerEnter) {
602
- var layerEnter_1 = _this.layerEnter;
603
- _this.layerEnter = function (_base, svgElement, _domElement) {
604
- if (!this._parentOverlay) {
605
- this._parentOverlay = _base._parentOverlay;
606
- }
607
- this.tooltipEnter(svgElement);
608
- layerEnter_1.apply(this, arguments);
609
- };
610
- var layerUpdate_1 = _this.layerUpdate;
611
- _this.layerUpdate = function (_base) {
612
- layerUpdate_1.apply(this, arguments);
613
- this.tooltipUpdate();
614
- };
615
- var layerExit_1 = _this.layerExit;
616
- _this.layerExit = function (_base) {
617
- this.tooltipExit();
618
- layerExit_1.apply(this, arguments);
619
- };
620
- }
621
- else {
622
- var enter_1 = _this.enter;
623
- _this.enter = function (_domNode, element) {
624
- this.tooltipEnter(element);
625
- enter_1.apply(this, arguments);
626
- };
627
- var update_1 = _this.update;
628
- _this.update = function (_domNode, _element) {
629
- update_1.apply(this, arguments);
630
- this.tooltipUpdate();
631
- };
632
- var exit_1 = _this.exit;
633
- _this.exit = function (_domNode, _element) {
634
- this.tooltipExit();
635
- exit_1.apply(this, arguments);
636
- };
637
- }
638
- return _this;
639
- }
640
- ITooltip.prototype.tooltipEnter = function (element) {
641
- var overlayElement = this.parentOverlay();
642
- if (!overlayElement.empty()) {
643
- this.tooltip.rootElement(overlayElement.node().parentNode);
644
- }
645
- element.call(this.tooltip);
646
- };
647
- ITooltip.prototype.tooltipUpdate = function () {
648
- var _this = this;
649
- this.tooltip.offset(function () {
650
- if (event && _this.tooltipFollowMouse()) {
651
- var d3tipElement = document.querySelector(".d3-tip"); // d3Tip offers no reference to the '.d3-tip' element...?
652
- d3tipElement.style.display = "block";
653
- d3tipElement.style.left = _this.tooltipOffset() + (event.clientX) + "px";
654
- d3tipElement.style.top = event.clientY + "px";
655
- return [];
548
+ // Use old school class declaration as this is a mixin ---
549
+ function ITooltip() {
550
+ this.tooltip = tip();
551
+ this._valueFormatter = format(this.tooltipValueFormat());
552
+ if (this.layerEnter) {
553
+ var layerEnter_1 = this.layerEnter;
554
+ this.layerEnter = function (_base, svgElement, _domElement) {
555
+ if (!this._parentOverlay) {
556
+ this._parentOverlay = _base._parentOverlay;
656
557
  }
657
- switch (_this.tooltip.direction()()) {
658
- case "e":
659
- return [0, _this.tooltipOffset()];
660
- default:
661
- return [-_this.tooltipOffset(), 0];
662
- }
663
- });
664
- var classed = this.tooltip.attr("class");
665
- if (classed) {
666
- classed = classed.split(" notick").join("") + (this.tooltipTick() ? "" : " notick") + (this.tooltipStyle() === "none" ? " hidden" : "");
667
- classed = classed.split(" ")
668
- .filter(function (_class) {
669
- return _class.indexOf("ITooltip-tooltipStyle-") !== 0;
670
- })
671
- .join(" ");
672
- classed += " ITooltip-tooltipStyle-" + this.tooltipStyle();
673
- this.tooltip
674
- .attr("class", classed);
675
- }
676
- };
677
- ITooltip.prototype.tooltipExit = function () {
678
- if (this.tooltip) {
679
- this.tooltip.destroy();
680
- }
681
- };
682
- ITooltip.prototype._tooltipHTML = function (d) {
683
- return d;
684
- };
685
- ITooltip.prototype.tooltipHTML = function (_) {
686
- return this.tooltip.html(_);
687
- };
688
- ITooltip.prototype.tooltipFormat = function (opts) {
689
- if (opts === void 0) { opts = {}; }
690
- opts.label = opts.label === undefined ? "" : opts.label;
691
- opts.series = opts.series || "";
692
- if (opts.value instanceof Date) {
693
- opts.value = opts.value || "";
694
- }
695
- else {
696
- opts.value = this._valueFormatter(opts.value) || "";
558
+ this.tooltipEnter(svgElement);
559
+ layerEnter_1.apply(this, arguments);
560
+ };
561
+ var layerUpdate_1 = this.layerUpdate;
562
+ this.layerUpdate = function (_base) {
563
+ layerUpdate_1.apply(this, arguments);
564
+ this.tooltipUpdate();
565
+ };
566
+ var layerExit_1 = this.layerExit;
567
+ this.layerExit = function (_base) {
568
+ this.tooltipExit();
569
+ layerExit_1.apply(this, arguments);
570
+ };
571
+ }
572
+ else {
573
+ var enter_1 = this.enter;
574
+ this.enter = function (_domNode, element) {
575
+ this.tooltipEnter(element);
576
+ enter_1.apply(this, arguments);
577
+ };
578
+ var update_1 = this.update;
579
+ this.update = function (_domNode, _element) {
580
+ update_1.apply(this, arguments);
581
+ this.tooltipUpdate();
582
+ };
583
+ var exit_1 = this.exit;
584
+ this.exit = function (_domNode, _element) {
585
+ this.tooltipExit();
586
+ exit_1.apply(this, arguments);
587
+ };
588
+ }
589
+ }
590
+ ITooltip.prototype = Object.create(Widget.prototype);
591
+ ITooltip.prototype.constructor = ITooltip;
592
+ // abstract target(): any;
593
+ // abstract target(_: any): this;
594
+ ITooltip.prototype.tooltipEnter = function (element) {
595
+ var overlayElement = this.parentOverlay();
596
+ if (!overlayElement.empty()) {
597
+ this.tooltip.rootElement(overlayElement.node().parentNode);
598
+ }
599
+ element.call(this.tooltip);
600
+ };
601
+ ITooltip.prototype.tooltipUpdate = function () {
602
+ var _this = this;
603
+ this.tooltip.offset(function () {
604
+ if (event && _this.tooltipFollowMouse()) {
605
+ var d3tipElement = document.querySelector(".d3-tip"); // d3Tip offers no reference to the '.d3-tip' element...?
606
+ d3tipElement.style.display = "block";
607
+ d3tipElement.style.left = _this.tooltipOffset() + (event.clientX) + "px";
608
+ d3tipElement.style.top = event.clientY + "px";
609
+ return [];
697
610
  }
698
- switch (this.tooltipStyle()) {
699
- case "none":
700
- break;
701
- case "series-table":
702
- var html_1 = '<table class="ITooltip-series-table">'
703
- + "<thead>"
704
- + '<tr><th colspan="2">' + opts.label + "</th></tr>"
705
- + "</thead>"
706
- + "<tbody>";
707
- opts.arr.forEach(function (row) {
708
- html_1 += "<tr>";
709
- html_1 += "<td>";
710
- html_1 += '<div class="series-table-row-color" style="background-color:' + row.color + '"></div>';
711
- html_1 += '<div class="series-table-row-label">' + row.label + "</div>";
712
- html_1 += "</td>";
713
- html_1 += '<td><div class="series-table-row-value">' + row.value + "</div></td>";
714
- html_1 += "</tr>";
715
- });
716
- html_1 += "</tbody>";
717
- html_1 += "</table>";
718
- return html_1;
611
+ switch (_this.tooltip.direction()()) {
612
+ case "e":
613
+ return [0, _this.tooltipOffset()];
719
614
  default:
720
- if (opts.series) {
721
- return "<span style='color:" + this.tooltipSeriesColor() + "'>" + opts.series + "</span> / <span style='color:" + this.tooltipLabelColor() + "'>" + opts.label + "</span>: <span style='color:" + this.tooltipValueColor() + "'>" + opts.value + "</span>";
722
- }
723
- if (opts.label !== "") {
724
- return "<span style='color:" + this.tooltipLabelColor() + "'>" + opts.label + "</span>: <span style='color:" + this.tooltipValueColor() + "'>" + opts.value + "</span>";
725
- }
726
- return "<span style='color:" + this.tooltipValueColor() + "'>" + opts.value + "</span>";
615
+ return [-_this.tooltipOffset(), 0];
727
616
  }
728
- };
729
- ITooltip.prototype.tooltipKeyValueFormat = function (titleKey, obj) {
730
- var body = "";
731
- for (var key in obj) {
732
- if (key !== titleKey) {
733
- var value = obj && obj[key] ? obj[key] : "";
734
- body += "<tr><td style=\"".concat(this.tooltipLabelColor_exists() ? "color:" + this.tooltipLabelColor() : "", "\">").concat(key, "</td><td style=\"font-weight:normal\">").concat(value, "</td></tr>");
617
+ });
618
+ var classed = this.tooltip.attr("class");
619
+ if (classed) {
620
+ classed = classed.split(" notick").join("") + (this.tooltipTick() ? "" : " notick") + (this.tooltipStyle() === "none" ? " hidden" : "");
621
+ classed = classed.split(" ")
622
+ .filter(function (_class) {
623
+ return _class.indexOf("ITooltip-tooltipStyle-") !== 0;
624
+ })
625
+ .join(" ");
626
+ classed += " ITooltip-tooltipStyle-" + this.tooltipStyle();
627
+ this.tooltip
628
+ .attr("class", classed);
629
+ }
630
+ };
631
+ ITooltip.prototype.tooltipExit = function () {
632
+ if (this.tooltip) {
633
+ this.tooltip.destroy();
634
+ }
635
+ };
636
+ ITooltip.prototype._tooltipHTML = function (d) {
637
+ return d;
638
+ };
639
+ ITooltip.prototype.tooltipHTML = function (_) {
640
+ return this.tooltip.html(_);
641
+ };
642
+ ITooltip.prototype.tooltipFormat = function (opts) {
643
+ if (opts === void 0) { opts = {}; }
644
+ opts.label = opts.label === undefined ? "" : opts.label;
645
+ opts.series = opts.series || "";
646
+ if (opts.value instanceof Date) {
647
+ opts.value = opts.value || "";
648
+ }
649
+ else {
650
+ opts.value = this._valueFormatter(opts.value) || "";
651
+ }
652
+ switch (this.tooltipStyle()) {
653
+ case "none":
654
+ break;
655
+ case "series-table":
656
+ var html_1 = '<table class="ITooltip-series-table">'
657
+ + "<thead>"
658
+ + '<tr><th colspan="2">' + opts.label + "</th></tr>"
659
+ + "</thead>"
660
+ + "<tbody>";
661
+ opts.arr.forEach(function (row) {
662
+ html_1 += "<tr>";
663
+ html_1 += "<td>";
664
+ html_1 += '<div class="series-table-row-color" style="background-color:' + row.color + '"></div>';
665
+ html_1 += '<div class="series-table-row-label">' + row.label + "</div>";
666
+ html_1 += "</td>";
667
+ html_1 += '<td><div class="series-table-row-value">' + row.value + "</div></td>";
668
+ html_1 += "</tr>";
669
+ });
670
+ html_1 += "</tbody>";
671
+ html_1 += "</table>";
672
+ return html_1;
673
+ default:
674
+ if (opts.series) {
675
+ return "<span style='color:" + this.tooltipSeriesColor() + "'>" + opts.series + "</span> / <span style='color:" + this.tooltipLabelColor() + "'>" + opts.label + "</span>: <span style='color:" + this.tooltipValueColor() + "'>" + opts.value + "</span>";
676
+ }
677
+ if (opts.label !== "") {
678
+ return "<span style='color:" + this.tooltipLabelColor() + "'>" + opts.label + "</span>: <span style='color:" + this.tooltipValueColor() + "'>" + opts.value + "</span>";
735
679
  }
680
+ return "<span style='color:" + this.tooltipValueColor() + "'>" + opts.value + "</span>";
681
+ }
682
+ };
683
+ ITooltip.prototype.tooltipKeyValueFormat = function (titleKey, obj) {
684
+ var body = "";
685
+ for (var key in obj) {
686
+ if (key !== titleKey) {
687
+ var value = obj && obj[key] ? obj[key] : "";
688
+ body += "<tr><td style=\"".concat(this.tooltipLabelColor_exists() ? "color:" + this.tooltipLabelColor() : "", "\">").concat(key, "</td><td style=\"font-weight:normal\">").concat(value, "</td></tr>");
736
689
  }
737
- return "<table>\n <thead>\n <tr><th colspan=\"2\" style=\"font-weight:bold;font-size:16px\">".concat(obj[titleKey], "</th></tr>\n </thead>\n <tbody>\n ").concat(body, "\n </tbody>\n </table>");
738
- };
739
- return ITooltip;
740
- }(Widget));
690
+ }
691
+ return "<table>\n <thead>\n <tr><th colspan=\"2\" style=\"font-weight:bold;font-size:16px\">".concat(obj[titleKey], "</th></tr>\n </thead>\n <tbody>\n ").concat(body, "\n </tbody>\n </table>");
692
+ };
741
693
  ITooltip.prototype.publish("tooltipStyle", "default", "set", "Style mode", ["default", "none", "series-table"], {});
742
694
  ITooltip.prototype.publish("tooltipFollowMouse", false, "boolean", "If true, the tooltip will follow mouse movement", null, {});
743
695
  ITooltip.prototype.publish("tooltipValueFormat", ",.2f", "string", "Number format of tooltip value(s)", null, {});
@@ -755,18 +707,15 @@ ITooltip.prototype.tooltipValueFormat = function (_) {
755
707
  return retVal;
756
708
  };
757
709
 
758
- var ITree = /** @class */ (function () {
759
- function ITree() {
760
- }
761
- // Events ---
762
- ITree.prototype.click = function (row, column, selected) {
763
- console.log("Click: " + JSON.stringify(row) + ", " + column + ", " + selected);
764
- };
765
- ITree.prototype.dblclick = function (row, column, selected) {
766
- console.log("Double click: " + JSON.stringify(row) + ", " + column + ", " + selected);
767
- };
768
- return ITree;
769
- }());
710
+ // Use old school class declaration as this is a mixin ---
711
+ function ITree() {
712
+ }
713
+ ITree.prototype.constructor = ITree;
714
+ // Events ---
715
+ ITree.prototype.click = function (row, column, selected) {
716
+ };
717
+ ITree.prototype.dblclick = function (row, column, selected) {
718
+ };
770
719
  ITree.prototype._palette = Palette.ordinal("default");
771
720
 
772
721
  export { BUILD_VERSION, I1DChart, I2DAggrChart, I2DChart, IGraph, IInput, INDChart, ITooltip, ITree, PKG_NAME, PKG_VERSION, instanceOfIHighlight };