@hpcc-js/other 2.14.2 → 2.14.5
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 +21 -47
- package/dist/index.es6.js.map +1 -1
- package/dist/index.js +21 -47
- package/dist/index.js.map +1 -1
- package/dist/index.min.js +1 -1
- package/dist/index.min.js.map +1 -1
- package/package.json +6 -6
- package/src/AutoCompleteText.ts +0 -1
- package/src/CalendarHeatMap.ts +0 -2
- package/src/Comms.ts +16 -19
- package/src/Legend.ts +0 -9
- package/src/PropertyEditor.ts +2 -2
- package/src/RadioCheckbox.ts +0 -1
- package/src/Select.ts +0 -1
- package/src/Table.ts +1 -10
- package/src/__package__.ts +2 -2
- package/types/AutoCompleteText.d.ts.map +1 -1
- package/types/CalendarHeatMap.d.ts.map +1 -1
- package/types/Comms.d.ts.map +1 -1
- package/types/Legend.d.ts.map +1 -1
- package/types/RadioCheckbox.d.ts.map +1 -1
- package/types/Select.d.ts.map +1 -1
- package/types/Table.d.ts.map +1 -1
- package/types/__package__.d.ts +2 -2
- package/types-3.4/__package__.d.ts +2 -2
package/dist/index.js
CHANGED
|
@@ -20,8 +20,8 @@
|
|
|
20
20
|
}
|
|
21
21
|
|
|
22
22
|
var PKG_NAME = "@hpcc-js/other";
|
|
23
|
-
var PKG_VERSION = "2.14.
|
|
24
|
-
var BUILD_VERSION = "2.
|
|
23
|
+
var PKG_VERSION = "2.14.5";
|
|
24
|
+
var BUILD_VERSION = "2.103.1";
|
|
25
25
|
|
|
26
26
|
/*! *****************************************************************************
|
|
27
27
|
Copyright (c) Microsoft Corporation.
|
|
@@ -604,7 +604,6 @@
|
|
|
604
604
|
_super.prototype.exit.call(this, domNode, element);
|
|
605
605
|
};
|
|
606
606
|
AutoCompleteText.prototype.click = function (row, column, selected) {
|
|
607
|
-
console.log("Click: " + JSON.stringify(row) + ", " + column + ", " + selected);
|
|
608
607
|
};
|
|
609
608
|
return AutoCompleteText;
|
|
610
609
|
}(common.HTMLWidget));
|
|
@@ -918,10 +917,8 @@
|
|
|
918
917
|
};
|
|
919
918
|
// Events ---
|
|
920
919
|
CalendarHeatMap.prototype.click = function (row, column, selected) {
|
|
921
|
-
console.log("Click: " + JSON.stringify(row) + ", " + column + ", " + selected);
|
|
922
920
|
};
|
|
923
921
|
CalendarHeatMap.prototype.dblclick = function (row, column, selected) {
|
|
924
|
-
console.log("Double click: " + JSON.stringify(row) + ", " + column + ", " + selected);
|
|
925
922
|
};
|
|
926
923
|
return CalendarHeatMap;
|
|
927
924
|
}(common.HTMLWidget));
|
|
@@ -1152,13 +1149,9 @@
|
|
|
1152
1149
|
respondedTimeout -= respondedTick;
|
|
1153
1150
|
if (respondedTimeout <= 0) {
|
|
1154
1151
|
clearInterval(progress);
|
|
1155
|
-
console.log("Request timeout: " + script.src);
|
|
1156
1152
|
doCallback();
|
|
1157
1153
|
reject(Error("Request timeout: " + script.src));
|
|
1158
1154
|
}
|
|
1159
|
-
else {
|
|
1160
|
-
console.log("Request pending (" + respondedTimeout / 1000 + " sec): " + script.src);
|
|
1161
|
-
}
|
|
1162
1155
|
}
|
|
1163
1156
|
}, respondedTick);
|
|
1164
1157
|
function doCallback() {
|
|
@@ -1283,7 +1276,7 @@
|
|
|
1283
1276
|
throw Error("not cached");
|
|
1284
1277
|
}
|
|
1285
1278
|
if (callback) {
|
|
1286
|
-
console.
|
|
1279
|
+
console.error("Deprecated: callback, use promise (Basic.prototype.call)");
|
|
1287
1280
|
callback(response);
|
|
1288
1281
|
}
|
|
1289
1282
|
resolve(response);
|
|
@@ -1291,7 +1284,7 @@
|
|
|
1291
1284
|
return context_1.get(url).then(function (response2) {
|
|
1292
1285
|
localStorage.setItem("hpcc.viz." + url, JSON.stringify(response2));
|
|
1293
1286
|
if (callback) {
|
|
1294
|
-
console.
|
|
1287
|
+
console.error("Deprecated: callback, use promise (Basic.prototype.call)");
|
|
1295
1288
|
callback(response2);
|
|
1296
1289
|
}
|
|
1297
1290
|
return response2;
|
|
@@ -1302,7 +1295,7 @@
|
|
|
1302
1295
|
localStorage.removeItem("hpcc.viz." + url);
|
|
1303
1296
|
return this.get(url).then(function (response) {
|
|
1304
1297
|
if (callback) {
|
|
1305
|
-
console.
|
|
1298
|
+
console.error("Deprecated: callback, use promise (Basic.prototype.call)");
|
|
1306
1299
|
callback(response);
|
|
1307
1300
|
}
|
|
1308
1301
|
return response;
|
|
@@ -1427,7 +1420,7 @@
|
|
|
1427
1420
|
}
|
|
1428
1421
|
context._mappings.mapResponse(response);
|
|
1429
1422
|
if (callback) {
|
|
1430
|
-
console.
|
|
1423
|
+
console.error("Deprecated: callback, use promise (WsECL.prototype.call)");
|
|
1431
1424
|
callback(response);
|
|
1432
1425
|
}
|
|
1433
1426
|
return response;
|
|
@@ -1558,7 +1551,7 @@
|
|
|
1558
1551
|
context_2._mappings.mapResult(context_2._resultNameCache, target.resultname);
|
|
1559
1552
|
}
|
|
1560
1553
|
if (callback) {
|
|
1561
|
-
console.
|
|
1554
|
+
console.error("Deprecated: callback, use promise (WsWorkunits.prototype._fetchResult)");
|
|
1562
1555
|
callback(context_2._resultNameCache[target.resultname]);
|
|
1563
1556
|
}
|
|
1564
1557
|
return context_2._resultNameCache[target.resultname];
|
|
@@ -1594,7 +1587,7 @@
|
|
|
1594
1587
|
}
|
|
1595
1588
|
response = response.WUQueryResponse.Workunits.ECLWorkunit;
|
|
1596
1589
|
if (callback) {
|
|
1597
|
-
console.
|
|
1590
|
+
console.error("Deprecated: callback, use promise (WsWorkunits.prototype.WUQuery)");
|
|
1598
1591
|
callback(response);
|
|
1599
1592
|
}
|
|
1600
1593
|
return response;
|
|
@@ -1627,7 +1620,7 @@
|
|
|
1627
1620
|
var context_4 = this;
|
|
1628
1621
|
this._fetchResultNamesPromise = this.jsonp(url_1, request_1).then(function (response) {
|
|
1629
1622
|
if (common.Utility.exists("WUInfoResponse.Workunit.Archived", response) && response.WUInfoResponse.Workunit.Archived) {
|
|
1630
|
-
console.
|
|
1623
|
+
console.warn("WU is archived: " + url_1 + " " + JSON.stringify(request_1));
|
|
1631
1624
|
}
|
|
1632
1625
|
if (common.Utility.exists("WUInfoResponse.Workunit.Results.ECLResult", response)) {
|
|
1633
1626
|
response.WUInfoResponse.Workunit.Results.ECLResult.map(function (item) {
|
|
@@ -1636,7 +1629,7 @@
|
|
|
1636
1629
|
});
|
|
1637
1630
|
}
|
|
1638
1631
|
if (callback) {
|
|
1639
|
-
console.
|
|
1632
|
+
console.error("Deprecated: callback, use promise (WsWorkunits.prototype.fetchResultNames)");
|
|
1640
1633
|
callback(context_4._resultNameCache);
|
|
1641
1634
|
}
|
|
1642
1635
|
return context_4._resultNameCache;
|
|
@@ -1653,7 +1646,7 @@
|
|
|
1653
1646
|
}
|
|
1654
1647
|
return Promise.all(fetchArray).then(function (responseArray) {
|
|
1655
1648
|
if (callback) {
|
|
1656
|
-
console.
|
|
1649
|
+
console.error("Deprecated: callback, use promise (WsWorkunits.prototype.fetchResults)");
|
|
1657
1650
|
callback(context._resultNameCache);
|
|
1658
1651
|
}
|
|
1659
1652
|
return context._resultNameCache;
|
|
@@ -1726,14 +1719,14 @@
|
|
|
1726
1719
|
return this.jsonp(url, request).then(function (response) {
|
|
1727
1720
|
if (common.Utility.exists("WUGetStatsResponse.Statistics.WUStatisticItem", response)) {
|
|
1728
1721
|
if (callback) {
|
|
1729
|
-
console.
|
|
1722
|
+
console.error("Deprecated: callback, use promise (WsWorkunits_GetStats.prototype.send)");
|
|
1730
1723
|
callback(response.WUGetStatsResponse.Statistics.WUStatisticItem);
|
|
1731
1724
|
}
|
|
1732
1725
|
return response.WUGetStatsResponse.Statistics.WUStatisticItem;
|
|
1733
1726
|
}
|
|
1734
1727
|
else {
|
|
1735
1728
|
if (callback) {
|
|
1736
|
-
console.
|
|
1729
|
+
console.error("Deprecated: callback, use promise (WsWorkunits_GetStats.prototype.send)");
|
|
1737
1730
|
callback([]);
|
|
1738
1731
|
}
|
|
1739
1732
|
return [];
|
|
@@ -1773,7 +1766,7 @@
|
|
|
1773
1766
|
}
|
|
1774
1767
|
}
|
|
1775
1768
|
if (callback) {
|
|
1776
|
-
console.
|
|
1769
|
+
console.error("Deprecated: callback, use promise (HIPIERoxie.prototype.fetchResults)");
|
|
1777
1770
|
callback(context._resultNameCache);
|
|
1778
1771
|
}
|
|
1779
1772
|
return context._resultNameCache;
|
|
@@ -1783,7 +1776,7 @@
|
|
|
1783
1776
|
var context = this;
|
|
1784
1777
|
return new Promise(function (resolve, reject) {
|
|
1785
1778
|
if (callback) {
|
|
1786
|
-
console.
|
|
1779
|
+
console.error("Deprecated: callback, use promise (HIPIERoxie.prototype.fetchResult)");
|
|
1787
1780
|
callback(context._resultNameCache[name]);
|
|
1788
1781
|
}
|
|
1789
1782
|
resolve(context._resultNameCache[name]);
|
|
@@ -1815,7 +1808,7 @@
|
|
|
1815
1808
|
}
|
|
1816
1809
|
return Promise.all(fetchArray).then(function (response2) {
|
|
1817
1810
|
if (callback) {
|
|
1818
|
-
console.
|
|
1811
|
+
console.error("Deprecated: callback, use promise (HIPIEWorkunit.prototype.fetchResults)");
|
|
1819
1812
|
callback(context._resultNameCache);
|
|
1820
1813
|
}
|
|
1821
1814
|
return context._resultNameCache;
|
|
@@ -1825,7 +1818,7 @@
|
|
|
1825
1818
|
HIPIEWorkunit.prototype.fetchResult = function (name, callback) {
|
|
1826
1819
|
return WsWorkunits$1.prototype.fetchResult.call(this, { wuid: this._wuid, resultname: name }).then(function (response) {
|
|
1827
1820
|
if (callback) {
|
|
1828
|
-
console.
|
|
1821
|
+
console.error("Deprecated: callback, use promise (HIPIEWorkunit.prototype.fetchResult)");
|
|
1829
1822
|
callback(response);
|
|
1830
1823
|
}
|
|
1831
1824
|
return response;
|
|
@@ -1905,7 +1898,7 @@
|
|
|
1905
1898
|
var context = this;
|
|
1906
1899
|
return new Promise(function (resolve, reject) {
|
|
1907
1900
|
if (callback) {
|
|
1908
|
-
console.
|
|
1901
|
+
console.error("Deprecated: callback, use promise (HIPIEDatabomb.prototype.fetchResults)");
|
|
1909
1902
|
callback(context._resultNameCache);
|
|
1910
1903
|
}
|
|
1911
1904
|
resolve(context._resultNameCache);
|
|
@@ -2997,12 +2990,6 @@
|
|
|
2997
2990
|
var css_248z$7 = ".other_Table{border-color:#999;border-width:1px;color:#333}.other_Table table{border-collapse:collapse;border-spacing:0}.other_Table .tableDiv{position:absolute}.labels-wrapper th,.other_Table th{border:1px solid #a9c6c9;box-sizing:border-box;color:#fff;cursor:pointer;padding:5px 10px;white-space:nowrap}.cols-wrapper tr,.other_Table thead>tr{background-color:#1f77b4}.labels-wrapper .thIcon,.other_Table .thIcon{font-family:FontAwesome;padding-left:8px}.other_Table .tableDiv tbody>tr:nth-child(odd){background-color:#f3faff;color:#000}.other_Table .tableDiv tbody>tr:nth-child(2n){background-color:#fff;color:#000}.other_Table .tableDiv tbody>tr.selected{background-color:#f48a00;color:#fff}.other_Table .rows-wrapper table>tbody>tr{background-color:#bce1fb;color:#000}.other_Table .rows-wrapper .labels-wrapper{width:100%}.other_Table table tbody>tr.selected{background-color:#f48a00;color:#fff}.other_Table .tableDiv tbody>tr.hover,.other_Table .tableDiv tbody>tr:hover,.rows-wrapper table tbody tr.hover{background-color:#bfd7e7;color:#fff}.other_Table .rows-wrapper tbody tr.hover.selected,.other_Table .tableDiv tbody>tr.selected.hover,.other_Table .tableDiv tbody>tr.selected:hover,.other_Table tr.selected.hover,.other_Table tr.selected:hover{background-color:#5ea8db;color:#fff}.other_Table td,.rows-wrapper td{border:1px solid #a9c6c9;box-sizing:border-box;padding:2px 5px;vertical-align:middle;white-space:nowrap}.other_Table tfoot td,.rows-wrapper tfoot td{background-color:#addff3;font-weight:700}";
|
|
2998
2991
|
styleInject(css_248z$7);
|
|
2999
2992
|
|
|
3000
|
-
function replacer(key, value) {
|
|
3001
|
-
if (value instanceof common.Widget) {
|
|
3002
|
-
return "Widget with class: " + value.classID();
|
|
3003
|
-
}
|
|
3004
|
-
return value;
|
|
3005
|
-
}
|
|
3006
2993
|
var Table = /** @class */ (function (_super) {
|
|
3007
2994
|
__extends(Table, _super);
|
|
3008
2995
|
function Table() {
|
|
@@ -3383,7 +3370,7 @@
|
|
|
3383
3370
|
if (this.pagination() && this._hasChildWidgets) {
|
|
3384
3371
|
this.tableDiv.style("overflow-y", "auto");
|
|
3385
3372
|
this.table.style("margin-bottom", "50px");
|
|
3386
|
-
console.
|
|
3373
|
+
console.warn("Warning: displaying another widget in the table may cause problems with pagination");
|
|
3387
3374
|
}
|
|
3388
3375
|
else {
|
|
3389
3376
|
this.tableDiv.style("overflow-y", null);
|
|
@@ -3797,10 +3784,8 @@
|
|
|
3797
3784
|
return this;
|
|
3798
3785
|
};
|
|
3799
3786
|
Table.prototype.click = function (row, column, selected) {
|
|
3800
|
-
console.log("click: " + JSON.stringify(row, replacer) + ", " + column + "," + selected);
|
|
3801
3787
|
};
|
|
3802
3788
|
Table.prototype.dblclick = function (row, column, selected) {
|
|
3803
|
-
console.log("dblclick: " + JSON.stringify(row, replacer) + ", " + column + "," + selected);
|
|
3804
3789
|
};
|
|
3805
3790
|
Table.prototype.headerClick = function (column, idx) {
|
|
3806
3791
|
this
|
|
@@ -4010,19 +3995,10 @@
|
|
|
4010
3995
|
_super.prototype.exit.call(this, domNode, element);
|
|
4011
3996
|
};
|
|
4012
3997
|
Legend.prototype.onClick = function (rowData, rowIdx) {
|
|
4013
|
-
console.log("Legend onClick method");
|
|
4014
|
-
console.log("rowData: " + rowData);
|
|
4015
|
-
console.log("rowIdx: " + rowIdx);
|
|
4016
3998
|
};
|
|
4017
3999
|
Legend.prototype.onDblClick = function (rowData, rowIdx) {
|
|
4018
|
-
console.log("Legend onDblClick method");
|
|
4019
|
-
console.log("rowData: " + rowData);
|
|
4020
|
-
console.log("rowIdx: " + rowIdx);
|
|
4021
4000
|
};
|
|
4022
4001
|
Legend.prototype.onMouseOver = function (rowData, rowIdx) {
|
|
4023
|
-
console.log("Legend onMouseOver method");
|
|
4024
|
-
console.log("rowData: " + rowData);
|
|
4025
|
-
console.log("rowIdx: " + rowIdx);
|
|
4026
4002
|
};
|
|
4027
4003
|
return Legend;
|
|
4028
4004
|
}(Table));
|
|
@@ -4890,7 +4866,7 @@
|
|
|
4890
4866
|
if (this._watch) {
|
|
4891
4867
|
if (window.__hpcc_debug) {
|
|
4892
4868
|
--this.watchDepth;
|
|
4893
|
-
console.
|
|
4869
|
+
console.info("watchDepth: " + this.watchDepth);
|
|
4894
4870
|
}
|
|
4895
4871
|
this._watch.remove();
|
|
4896
4872
|
delete this._watch;
|
|
@@ -4905,7 +4881,7 @@
|
|
|
4905
4881
|
});
|
|
4906
4882
|
if (window.__hpcc_debug) {
|
|
4907
4883
|
++this.watchDepth;
|
|
4908
|
-
console.
|
|
4884
|
+
console.info("watchDepth: " + this.watchDepth);
|
|
4909
4885
|
}
|
|
4910
4886
|
}
|
|
4911
4887
|
};
|
|
@@ -5519,7 +5495,6 @@
|
|
|
5519
5495
|
}
|
|
5520
5496
|
};
|
|
5521
5497
|
RadioCheckbox.prototype.click = function (row, column, selected) {
|
|
5522
|
-
console.log("Click: " + JSON.stringify(row) + ", " + column + ", " + selected);
|
|
5523
5498
|
};
|
|
5524
5499
|
return RadioCheckbox;
|
|
5525
5500
|
}(common.HTMLWidget));
|
|
@@ -5611,7 +5586,6 @@
|
|
|
5611
5586
|
_super.prototype.exit.call(this, domNode, element);
|
|
5612
5587
|
};
|
|
5613
5588
|
Select.prototype.click = function (row, column, selected) {
|
|
5614
|
-
console.log("Click: " + JSON.stringify(row) + ", " + column + ", " + selected);
|
|
5615
5589
|
};
|
|
5616
5590
|
return Select;
|
|
5617
5591
|
}(common.HTMLWidget));
|