@hpcc-js/other 2.14.2 → 2.14.3
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/__package__.d.ts.map +1 -1
- package/types-3.4/__package__.d.ts +2 -2
package/dist/index.es6.js
CHANGED
|
@@ -17,8 +17,8 @@ function _mergeNamespaces(n, m) {
|
|
|
17
17
|
}
|
|
18
18
|
|
|
19
19
|
var PKG_NAME = "@hpcc-js/other";
|
|
20
|
-
var PKG_VERSION = "2.14.
|
|
21
|
-
var BUILD_VERSION = "2.102.
|
|
20
|
+
var PKG_VERSION = "2.14.3";
|
|
21
|
+
var BUILD_VERSION = "2.102.11";
|
|
22
22
|
|
|
23
23
|
/*! *****************************************************************************
|
|
24
24
|
Copyright (c) Microsoft Corporation.
|
|
@@ -601,7 +601,6 @@ var AutoCompleteText = /** @class */ (function (_super) {
|
|
|
601
601
|
_super.prototype.exit.call(this, domNode, element);
|
|
602
602
|
};
|
|
603
603
|
AutoCompleteText.prototype.click = function (row, column, selected) {
|
|
604
|
-
console.log("Click: " + JSON.stringify(row) + ", " + column + ", " + selected);
|
|
605
604
|
};
|
|
606
605
|
return AutoCompleteText;
|
|
607
606
|
}(HTMLWidget));
|
|
@@ -915,10 +914,8 @@ var CalendarHeatMap = /** @class */ (function (_super) {
|
|
|
915
914
|
};
|
|
916
915
|
// Events ---
|
|
917
916
|
CalendarHeatMap.prototype.click = function (row, column, selected) {
|
|
918
|
-
console.log("Click: " + JSON.stringify(row) + ", " + column + ", " + selected);
|
|
919
917
|
};
|
|
920
918
|
CalendarHeatMap.prototype.dblclick = function (row, column, selected) {
|
|
921
|
-
console.log("Double click: " + JSON.stringify(row) + ", " + column + ", " + selected);
|
|
922
919
|
};
|
|
923
920
|
return CalendarHeatMap;
|
|
924
921
|
}(HTMLWidget));
|
|
@@ -1149,13 +1146,9 @@ var jsonp = function (url, request, timeout) {
|
|
|
1149
1146
|
respondedTimeout -= respondedTick;
|
|
1150
1147
|
if (respondedTimeout <= 0) {
|
|
1151
1148
|
clearInterval(progress);
|
|
1152
|
-
console.log("Request timeout: " + script.src);
|
|
1153
1149
|
doCallback();
|
|
1154
1150
|
reject(Error("Request timeout: " + script.src));
|
|
1155
1151
|
}
|
|
1156
|
-
else {
|
|
1157
|
-
console.log("Request pending (" + respondedTimeout / 1000 + " sec): " + script.src);
|
|
1158
|
-
}
|
|
1159
1152
|
}
|
|
1160
1153
|
}, respondedTick);
|
|
1161
1154
|
function doCallback() {
|
|
@@ -1280,7 +1273,7 @@ var Basic = /** @class */ (function (_super) {
|
|
|
1280
1273
|
throw Error("not cached");
|
|
1281
1274
|
}
|
|
1282
1275
|
if (callback) {
|
|
1283
|
-
console.
|
|
1276
|
+
console.error("Deprecated: callback, use promise (Basic.prototype.call)");
|
|
1284
1277
|
callback(response);
|
|
1285
1278
|
}
|
|
1286
1279
|
resolve(response);
|
|
@@ -1288,7 +1281,7 @@ var Basic = /** @class */ (function (_super) {
|
|
|
1288
1281
|
return context_1.get(url).then(function (response2) {
|
|
1289
1282
|
localStorage.setItem("hpcc.viz." + url, JSON.stringify(response2));
|
|
1290
1283
|
if (callback) {
|
|
1291
|
-
console.
|
|
1284
|
+
console.error("Deprecated: callback, use promise (Basic.prototype.call)");
|
|
1292
1285
|
callback(response2);
|
|
1293
1286
|
}
|
|
1294
1287
|
return response2;
|
|
@@ -1299,7 +1292,7 @@ var Basic = /** @class */ (function (_super) {
|
|
|
1299
1292
|
localStorage.removeItem("hpcc.viz." + url);
|
|
1300
1293
|
return this.get(url).then(function (response) {
|
|
1301
1294
|
if (callback) {
|
|
1302
|
-
console.
|
|
1295
|
+
console.error("Deprecated: callback, use promise (Basic.prototype.call)");
|
|
1303
1296
|
callback(response);
|
|
1304
1297
|
}
|
|
1305
1298
|
return response;
|
|
@@ -1424,7 +1417,7 @@ var WsECL = /** @class */ (function (_super) {
|
|
|
1424
1417
|
}
|
|
1425
1418
|
context._mappings.mapResponse(response);
|
|
1426
1419
|
if (callback) {
|
|
1427
|
-
console.
|
|
1420
|
+
console.error("Deprecated: callback, use promise (WsECL.prototype.call)");
|
|
1428
1421
|
callback(response);
|
|
1429
1422
|
}
|
|
1430
1423
|
return response;
|
|
@@ -1555,7 +1548,7 @@ var WsWorkunits$1 = /** @class */ (function (_super) {
|
|
|
1555
1548
|
context_2._mappings.mapResult(context_2._resultNameCache, target.resultname);
|
|
1556
1549
|
}
|
|
1557
1550
|
if (callback) {
|
|
1558
|
-
console.
|
|
1551
|
+
console.error("Deprecated: callback, use promise (WsWorkunits.prototype._fetchResult)");
|
|
1559
1552
|
callback(context_2._resultNameCache[target.resultname]);
|
|
1560
1553
|
}
|
|
1561
1554
|
return context_2._resultNameCache[target.resultname];
|
|
@@ -1591,7 +1584,7 @@ var WsWorkunits$1 = /** @class */ (function (_super) {
|
|
|
1591
1584
|
}
|
|
1592
1585
|
response = response.WUQueryResponse.Workunits.ECLWorkunit;
|
|
1593
1586
|
if (callback) {
|
|
1594
|
-
console.
|
|
1587
|
+
console.error("Deprecated: callback, use promise (WsWorkunits.prototype.WUQuery)");
|
|
1595
1588
|
callback(response);
|
|
1596
1589
|
}
|
|
1597
1590
|
return response;
|
|
@@ -1624,7 +1617,7 @@ var WsWorkunits$1 = /** @class */ (function (_super) {
|
|
|
1624
1617
|
var context_4 = this;
|
|
1625
1618
|
this._fetchResultNamesPromise = this.jsonp(url_1, request_1).then(function (response) {
|
|
1626
1619
|
if (Utility.exists("WUInfoResponse.Workunit.Archived", response) && response.WUInfoResponse.Workunit.Archived) {
|
|
1627
|
-
console.
|
|
1620
|
+
console.warn("WU is archived: " + url_1 + " " + JSON.stringify(request_1));
|
|
1628
1621
|
}
|
|
1629
1622
|
if (Utility.exists("WUInfoResponse.Workunit.Results.ECLResult", response)) {
|
|
1630
1623
|
response.WUInfoResponse.Workunit.Results.ECLResult.map(function (item) {
|
|
@@ -1633,7 +1626,7 @@ var WsWorkunits$1 = /** @class */ (function (_super) {
|
|
|
1633
1626
|
});
|
|
1634
1627
|
}
|
|
1635
1628
|
if (callback) {
|
|
1636
|
-
console.
|
|
1629
|
+
console.error("Deprecated: callback, use promise (WsWorkunits.prototype.fetchResultNames)");
|
|
1637
1630
|
callback(context_4._resultNameCache);
|
|
1638
1631
|
}
|
|
1639
1632
|
return context_4._resultNameCache;
|
|
@@ -1650,7 +1643,7 @@ var WsWorkunits$1 = /** @class */ (function (_super) {
|
|
|
1650
1643
|
}
|
|
1651
1644
|
return Promise.all(fetchArray).then(function (responseArray) {
|
|
1652
1645
|
if (callback) {
|
|
1653
|
-
console.
|
|
1646
|
+
console.error("Deprecated: callback, use promise (WsWorkunits.prototype.fetchResults)");
|
|
1654
1647
|
callback(context._resultNameCache);
|
|
1655
1648
|
}
|
|
1656
1649
|
return context._resultNameCache;
|
|
@@ -1723,14 +1716,14 @@ WsWorkunits_GetStats.prototype.send = function (request, callback) {
|
|
|
1723
1716
|
return this.jsonp(url, request).then(function (response) {
|
|
1724
1717
|
if (Utility.exists("WUGetStatsResponse.Statistics.WUStatisticItem", response)) {
|
|
1725
1718
|
if (callback) {
|
|
1726
|
-
console.
|
|
1719
|
+
console.error("Deprecated: callback, use promise (WsWorkunits_GetStats.prototype.send)");
|
|
1727
1720
|
callback(response.WUGetStatsResponse.Statistics.WUStatisticItem);
|
|
1728
1721
|
}
|
|
1729
1722
|
return response.WUGetStatsResponse.Statistics.WUStatisticItem;
|
|
1730
1723
|
}
|
|
1731
1724
|
else {
|
|
1732
1725
|
if (callback) {
|
|
1733
|
-
console.
|
|
1726
|
+
console.error("Deprecated: callback, use promise (WsWorkunits_GetStats.prototype.send)");
|
|
1734
1727
|
callback([]);
|
|
1735
1728
|
}
|
|
1736
1729
|
return [];
|
|
@@ -1770,7 +1763,7 @@ HIPIERoxie.prototype.fetchResults = function (request, callback) {
|
|
|
1770
1763
|
}
|
|
1771
1764
|
}
|
|
1772
1765
|
if (callback) {
|
|
1773
|
-
console.
|
|
1766
|
+
console.error("Deprecated: callback, use promise (HIPIERoxie.prototype.fetchResults)");
|
|
1774
1767
|
callback(context._resultNameCache);
|
|
1775
1768
|
}
|
|
1776
1769
|
return context._resultNameCache;
|
|
@@ -1780,7 +1773,7 @@ HIPIERoxie.prototype.fetchResult = function (name, callback) {
|
|
|
1780
1773
|
var context = this;
|
|
1781
1774
|
return new Promise(function (resolve, reject) {
|
|
1782
1775
|
if (callback) {
|
|
1783
|
-
console.
|
|
1776
|
+
console.error("Deprecated: callback, use promise (HIPIERoxie.prototype.fetchResult)");
|
|
1784
1777
|
callback(context._resultNameCache[name]);
|
|
1785
1778
|
}
|
|
1786
1779
|
resolve(context._resultNameCache[name]);
|
|
@@ -1812,7 +1805,7 @@ HIPIEWorkunit.prototype.fetchResults = function (callback) {
|
|
|
1812
1805
|
}
|
|
1813
1806
|
return Promise.all(fetchArray).then(function (response2) {
|
|
1814
1807
|
if (callback) {
|
|
1815
|
-
console.
|
|
1808
|
+
console.error("Deprecated: callback, use promise (HIPIEWorkunit.prototype.fetchResults)");
|
|
1816
1809
|
callback(context._resultNameCache);
|
|
1817
1810
|
}
|
|
1818
1811
|
return context._resultNameCache;
|
|
@@ -1822,7 +1815,7 @@ HIPIEWorkunit.prototype.fetchResults = function (callback) {
|
|
|
1822
1815
|
HIPIEWorkunit.prototype.fetchResult = function (name, callback) {
|
|
1823
1816
|
return WsWorkunits$1.prototype.fetchResult.call(this, { wuid: this._wuid, resultname: name }).then(function (response) {
|
|
1824
1817
|
if (callback) {
|
|
1825
|
-
console.
|
|
1818
|
+
console.error("Deprecated: callback, use promise (HIPIEWorkunit.prototype.fetchResult)");
|
|
1826
1819
|
callback(response);
|
|
1827
1820
|
}
|
|
1828
1821
|
return response;
|
|
@@ -1902,7 +1895,7 @@ HIPIEDatabomb.prototype.fetchResults = function (callback) {
|
|
|
1902
1895
|
var context = this;
|
|
1903
1896
|
return new Promise(function (resolve, reject) {
|
|
1904
1897
|
if (callback) {
|
|
1905
|
-
console.
|
|
1898
|
+
console.error("Deprecated: callback, use promise (HIPIEDatabomb.prototype.fetchResults)");
|
|
1906
1899
|
callback(context._resultNameCache);
|
|
1907
1900
|
}
|
|
1908
1901
|
resolve(context._resultNameCache);
|
|
@@ -2994,12 +2987,6 @@ Paginator.prototype.publish("right", 20, "number", "Pagination right offset", nu
|
|
|
2994
2987
|
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}";
|
|
2995
2988
|
styleInject(css_248z$7);
|
|
2996
2989
|
|
|
2997
|
-
function replacer(key, value) {
|
|
2998
|
-
if (value instanceof Widget) {
|
|
2999
|
-
return "Widget with class: " + value.classID();
|
|
3000
|
-
}
|
|
3001
|
-
return value;
|
|
3002
|
-
}
|
|
3003
2990
|
var Table = /** @class */ (function (_super) {
|
|
3004
2991
|
__extends(Table, _super);
|
|
3005
2992
|
function Table() {
|
|
@@ -3380,7 +3367,7 @@ var Table = /** @class */ (function (_super) {
|
|
|
3380
3367
|
if (this.pagination() && this._hasChildWidgets) {
|
|
3381
3368
|
this.tableDiv.style("overflow-y", "auto");
|
|
3382
3369
|
this.table.style("margin-bottom", "50px");
|
|
3383
|
-
console.
|
|
3370
|
+
console.warn("Warning: displaying another widget in the table may cause problems with pagination");
|
|
3384
3371
|
}
|
|
3385
3372
|
else {
|
|
3386
3373
|
this.tableDiv.style("overflow-y", null);
|
|
@@ -3794,10 +3781,8 @@ var Table = /** @class */ (function (_super) {
|
|
|
3794
3781
|
return this;
|
|
3795
3782
|
};
|
|
3796
3783
|
Table.prototype.click = function (row, column, selected) {
|
|
3797
|
-
console.log("click: " + JSON.stringify(row, replacer) + ", " + column + "," + selected);
|
|
3798
3784
|
};
|
|
3799
3785
|
Table.prototype.dblclick = function (row, column, selected) {
|
|
3800
|
-
console.log("dblclick: " + JSON.stringify(row, replacer) + ", " + column + "," + selected);
|
|
3801
3786
|
};
|
|
3802
3787
|
Table.prototype.headerClick = function (column, idx) {
|
|
3803
3788
|
this
|
|
@@ -4007,19 +3992,10 @@ var Legend = /** @class */ (function (_super) {
|
|
|
4007
3992
|
_super.prototype.exit.call(this, domNode, element);
|
|
4008
3993
|
};
|
|
4009
3994
|
Legend.prototype.onClick = function (rowData, rowIdx) {
|
|
4010
|
-
console.log("Legend onClick method");
|
|
4011
|
-
console.log("rowData: " + rowData);
|
|
4012
|
-
console.log("rowIdx: " + rowIdx);
|
|
4013
3995
|
};
|
|
4014
3996
|
Legend.prototype.onDblClick = function (rowData, rowIdx) {
|
|
4015
|
-
console.log("Legend onDblClick method");
|
|
4016
|
-
console.log("rowData: " + rowData);
|
|
4017
|
-
console.log("rowIdx: " + rowIdx);
|
|
4018
3997
|
};
|
|
4019
3998
|
Legend.prototype.onMouseOver = function (rowData, rowIdx) {
|
|
4020
|
-
console.log("Legend onMouseOver method");
|
|
4021
|
-
console.log("rowData: " + rowData);
|
|
4022
|
-
console.log("rowIdx: " + rowIdx);
|
|
4023
3999
|
};
|
|
4024
4000
|
return Legend;
|
|
4025
4001
|
}(Table));
|
|
@@ -4887,7 +4863,7 @@ var PropertyEditor = /** @class */ (function (_super) {
|
|
|
4887
4863
|
if (this._watch) {
|
|
4888
4864
|
if (window.__hpcc_debug) {
|
|
4889
4865
|
--this.watchDepth;
|
|
4890
|
-
console.
|
|
4866
|
+
console.info("watchDepth: " + this.watchDepth);
|
|
4891
4867
|
}
|
|
4892
4868
|
this._watch.remove();
|
|
4893
4869
|
delete this._watch;
|
|
@@ -4902,7 +4878,7 @@ var PropertyEditor = /** @class */ (function (_super) {
|
|
|
4902
4878
|
});
|
|
4903
4879
|
if (window.__hpcc_debug) {
|
|
4904
4880
|
++this.watchDepth;
|
|
4905
|
-
console.
|
|
4881
|
+
console.info("watchDepth: " + this.watchDepth);
|
|
4906
4882
|
}
|
|
4907
4883
|
}
|
|
4908
4884
|
};
|
|
@@ -5516,7 +5492,6 @@ var RadioCheckbox = /** @class */ (function (_super) {
|
|
|
5516
5492
|
}
|
|
5517
5493
|
};
|
|
5518
5494
|
RadioCheckbox.prototype.click = function (row, column, selected) {
|
|
5519
|
-
console.log("Click: " + JSON.stringify(row) + ", " + column + ", " + selected);
|
|
5520
5495
|
};
|
|
5521
5496
|
return RadioCheckbox;
|
|
5522
5497
|
}(HTMLWidget));
|
|
@@ -5608,7 +5583,6 @@ var Select = /** @class */ (function (_super) {
|
|
|
5608
5583
|
_super.prototype.exit.call(this, domNode, element);
|
|
5609
5584
|
};
|
|
5610
5585
|
Select.prototype.click = function (row, column, selected) {
|
|
5611
|
-
console.log("Click: " + JSON.stringify(row) + ", " + column + ", " + selected);
|
|
5612
5586
|
};
|
|
5613
5587
|
return Select;
|
|
5614
5588
|
}(HTMLWidget));
|