@millistream/millistream-widgets 1.0.31 → 1.0.32
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/millistream-widgets.js +19 -7
- package/package.json +1 -1
package/millistream-widgets.js
CHANGED
|
@@ -4141,7 +4141,8 @@ function Milli_OptionsList(settings) {
|
|
|
4141
4141
|
if (this.settings.autodraw == true) this.drawWidget();
|
|
4142
4142
|
|
|
4143
4143
|
}
|
|
4144
|
-
var milli_data_api_url = 'https://stage.millistream.com/widgets/3.0.4/data/milli_widget_dataapi.php?';
|
|
4144
|
+
//var milli_data_api_url = 'https://stage.millistream.com/widgets/3.0.4/data/milli_widget_dataapi.php?';
|
|
4145
|
+
var milli_data_api_url = 'https://test.millistream.com/mws.fcgi?';
|
|
4145
4146
|
|
|
4146
4147
|
var millistream_data_api = {
|
|
4147
4148
|
callbackcounter: 0,
|
|
@@ -4450,16 +4451,16 @@ function MillistreamWidgetApi_buildQuery(widget, type) {
|
|
|
4450
4451
|
url += '&pricetype=' + widget.settings.pricetype;
|
|
4451
4452
|
}
|
|
4452
4453
|
if (typeof widget.settings.millisectorl1 !== 'undefined' && widget.settings.millisectorl1 !== null) {
|
|
4453
|
-
if (typeof widget.settings.millisectorl1 !== '
|
|
4454
|
-
url += '&millisectorl1=' + widget.settings.millisectorl1
|
|
4454
|
+
if (typeof widget.settings.millisectorl1 !== 'object') throw new Error(widget.constructor.name + ': millisectorl1 is not valid' + widget.settings.millisectorl1);
|
|
4455
|
+
url += '&millisectorl1=' + widget.settings.millisectorl1.join(',');;
|
|
4455
4456
|
}
|
|
4456
4457
|
if (typeof widget.settings.millisectorl2 !== 'undefined' && widget.settings.millisectorl2 !== null) {
|
|
4457
|
-
if (typeof widget.settings.millisectorl2 !== '
|
|
4458
|
-
url += '&millisectorl2=' + widget.settings.millisectorl2
|
|
4458
|
+
if (typeof widget.settings.millisectorl2 !== 'object') throw new Error(widget.constructor.name + ': millisectorl2 is not valid');
|
|
4459
|
+
url += '&millisectorl2=' + widget.settings.millisectorl2.join(',');;
|
|
4459
4460
|
}
|
|
4460
4461
|
if (typeof widget.settings.millisectorl3 !== 'undefined' && widget.settings.millisectorl3 !== null) {
|
|
4461
|
-
if (typeof widget.settings.millisectorl3 !== '
|
|
4462
|
-
url += '&millisectorl3=' + widget.settings.millisectorl3
|
|
4462
|
+
if (typeof widget.settings.millisectorl3 !== 'object') throw new Error(widget.constructor.name + ': millisectorl3 is not valid');
|
|
4463
|
+
url += '&millisectorl3=' + widget.settings.millisectorl3.join(',');;
|
|
4463
4464
|
}
|
|
4464
4465
|
if (typeof widget.settings.ppmfunds !== 'undefined' && widget.settings.ppmfunds !== null) {
|
|
4465
4466
|
if (typeof widget.settings.ppmfunds !== 'boolean') throw new Error(widget.constructor.name + ': millisectorl3 is not valid');
|
|
@@ -4489,6 +4490,9 @@ function MillistreamWidgetApi_buildQuery(widget, type) {
|
|
|
4489
4490
|
if (typeof widget.settings.tradecode === 'number') {
|
|
4490
4491
|
url += '&tradecode=' + widget.settings.tradecode;
|
|
4491
4492
|
}
|
|
4493
|
+
if (typeof widget.settings.peers === 'boolean' && widget.settings.peers === true) {
|
|
4494
|
+
url += '&peer=true';
|
|
4495
|
+
}
|
|
4492
4496
|
return url;
|
|
4493
4497
|
}
|
|
4494
4498
|
|
|
@@ -5749,6 +5753,14 @@ function MillistreamWidgetApi_getColumnInfo(widget, name) {
|
|
|
5749
5753
|
case '3311':
|
|
5750
5754
|
case 'hv360':
|
|
5751
5755
|
return [3311, 'numeric', 'right', widget.get_lang_text(name) || name, 0];
|
|
5756
|
+
case '3312':
|
|
5757
|
+
case 'sectorl3name':
|
|
5758
|
+
case 'sectorl3symbol':
|
|
5759
|
+
case 'sectorl2name':
|
|
5760
|
+
case 'sectorl2symbol':
|
|
5761
|
+
case 'sectorl1name':
|
|
5762
|
+
case 'sectorl1symbol':
|
|
5763
|
+
return [3312, 'string', 'left', widget.get_lang_text(name) || name, 0];
|
|
5752
5764
|
default:
|
|
5753
5765
|
return [0, 'numeric', 'right', widget.get_lang_text(name) || name, 0];
|
|
5754
5766
|
}
|