@hpcc-js/other 2.13.80 → 2.14.4
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 +138 -155
- package/dist/index.es6.js.map +1 -1
- package/dist/index.js +141 -158
- 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 +10 -26
- 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.js
CHANGED
|
@@ -1,12 +1,27 @@
|
|
|
1
1
|
(function (global, factory) {
|
|
2
2
|
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@hpcc-js/common'), require('@hpcc-js/layout')) :
|
|
3
3
|
typeof define === 'function' && define.amd ? define(['exports', '@hpcc-js/common', '@hpcc-js/layout'], factory) :
|
|
4
|
-
(global = global || self, factory(global[
|
|
5
|
-
}(this, (function (exports, common, layout) { 'use strict';
|
|
4
|
+
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global["@hpcc-js/other"] = {}, global["@hpcc-js/common"], global["@hpcc-js/layout"]));
|
|
5
|
+
})(this, (function (exports, common, layout) { 'use strict';
|
|
6
|
+
|
|
7
|
+
function _mergeNamespaces(n, m) {
|
|
8
|
+
m.forEach(function (e) {
|
|
9
|
+
e && typeof e !== 'string' && !Array.isArray(e) && Object.keys(e).forEach(function (k) {
|
|
10
|
+
if (k !== 'default' && !(k in n)) {
|
|
11
|
+
var d = Object.getOwnPropertyDescriptor(e, k);
|
|
12
|
+
Object.defineProperty(n, k, d.get ? d : {
|
|
13
|
+
enumerable: true,
|
|
14
|
+
get: function () { return e[k]; }
|
|
15
|
+
});
|
|
16
|
+
}
|
|
17
|
+
});
|
|
18
|
+
});
|
|
19
|
+
return Object.freeze(n);
|
|
20
|
+
}
|
|
6
21
|
|
|
7
22
|
var PKG_NAME = "@hpcc-js/other";
|
|
8
|
-
var PKG_VERSION = "2.
|
|
9
|
-
var BUILD_VERSION = "2.
|
|
23
|
+
var PKG_VERSION = "2.14.4";
|
|
24
|
+
var BUILD_VERSION = "2.103.0";
|
|
10
25
|
|
|
11
26
|
/*! *****************************************************************************
|
|
12
27
|
Copyright (c) Microsoft Corporation.
|
|
@@ -220,28 +235,16 @@
|
|
|
220
235
|
Audio.prototype._class += " other_Audio";
|
|
221
236
|
Audio.prototype.publish("source", "", "string", "Audio Source");
|
|
222
237
|
|
|
223
|
-
|
|
224
|
-
return module = {
|
|
225
|
-
path: basedir,
|
|
226
|
-
exports: {},
|
|
227
|
-
require: function (path, base) {
|
|
228
|
-
return commonjsRequire(path, (base === undefined || base === null) ? module.path : base);
|
|
229
|
-
}
|
|
230
|
-
}, fn(module, module.exports), module.exports;
|
|
231
|
-
}
|
|
238
|
+
var autoComplete = {exports: {}};
|
|
232
239
|
|
|
233
|
-
function commonjsRequire () {
|
|
234
|
-
throw new Error('Dynamic requires are not currently supported by @rollup/plugin-commonjs');
|
|
235
|
-
}
|
|
236
|
-
|
|
237
|
-
var autoComplete_1 = createCommonjsModule(function (module) {
|
|
238
240
|
/*
|
|
239
|
-
JavaScript autoComplete v1.0.
|
|
241
|
+
JavaScript autoComplete v1.0.5
|
|
240
242
|
Copyright (c) 2014 Simon Steinberger / Pixabay
|
|
241
243
|
GitHub: https://github.com/Pixabay/JavaScript-autoComplete
|
|
242
244
|
License: http://www.opensource.org/licenses/mit-license.php
|
|
243
245
|
*/
|
|
244
246
|
|
|
247
|
+
(function (module) {
|
|
245
248
|
var autoComplete = (function(){
|
|
246
249
|
// "use strict";
|
|
247
250
|
function autoComplete(options){
|
|
@@ -369,9 +372,10 @@
|
|
|
369
372
|
that.sc.innerHTML = s;
|
|
370
373
|
that.updateSC(0);
|
|
371
374
|
}
|
|
372
|
-
else
|
|
375
|
+
else {
|
|
373
376
|
that.sc.style.display = 'none';
|
|
374
377
|
that.sc.classList.add("hide");
|
|
378
|
+
}
|
|
375
379
|
};
|
|
376
380
|
|
|
377
381
|
that.keydownHandler = function(e){
|
|
@@ -473,17 +477,19 @@
|
|
|
473
477
|
})();
|
|
474
478
|
|
|
475
479
|
(function(){
|
|
476
|
-
if (
|
|
480
|
+
if (module.exports)
|
|
477
481
|
module.exports = autoComplete;
|
|
478
482
|
else
|
|
479
483
|
window.autoComplete = autoComplete;
|
|
480
484
|
})();
|
|
481
|
-
});
|
|
485
|
+
}(autoComplete));
|
|
482
486
|
|
|
483
|
-
var
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
+
var autoComplete_1 = autoComplete.exports;
|
|
488
|
+
|
|
489
|
+
var AutoComplete = /*#__PURE__*/_mergeNamespaces({
|
|
490
|
+
__proto__: null,
|
|
491
|
+
'default': autoComplete_1
|
|
492
|
+
}, [autoComplete.exports]);
|
|
487
493
|
|
|
488
494
|
function styleInject(css, ref) {
|
|
489
495
|
if ( ref === void 0 ) ref = {};
|
|
@@ -512,8 +518,8 @@
|
|
|
512
518
|
}
|
|
513
519
|
}
|
|
514
520
|
|
|
515
|
-
var css_248z = ".other_autoCompleteText label{display:inline-block;vertical-align:top}.other_autoCompleteText input{
|
|
516
|
-
styleInject(css_248z);
|
|
521
|
+
var css_248z$c = ".other_autoCompleteText label{display:inline-block;vertical-align:top}.other_autoCompleteText input{border-radius:100;max-width:600px;outline:0;width:100%}.autocomplete-suggestions{background:#fff;border:1px solid #ccc;border-top:0;box-shadow:-1px 1px 3px rgba(0,0,0,.1);box-sizing:border-box;cursor:default;display:none;max-height:254px;overflow:hidden;overflow-y:auto;position:absolute;text-align:left;z-index:9999}.autocomplete-suggestion{color:#333;font-size:1.02em;line-height:23px;overflow:hidden;padding:0 .6em;position:relative;text-overflow:ellipsis;white-space:nowrap}.autocomplete-suggestion b{color:#1f8dd6;font-weight:400}.autocomplete-suggestion.selected{background:#f0f0f0}";
|
|
522
|
+
styleInject(css_248z$c);
|
|
517
523
|
|
|
518
524
|
var AutoCompleteText = /** @class */ (function (_super) {
|
|
519
525
|
__extends(AutoCompleteText, _super);
|
|
@@ -598,7 +604,6 @@
|
|
|
598
604
|
_super.prototype.exit.call(this, domNode, element);
|
|
599
605
|
};
|
|
600
606
|
AutoCompleteText.prototype.click = function (row, column, selected) {
|
|
601
|
-
console.log("Click: " + JSON.stringify(row) + ", " + column + ", " + selected);
|
|
602
607
|
};
|
|
603
608
|
return AutoCompleteText;
|
|
604
609
|
}(common.HTMLWidget));
|
|
@@ -708,12 +713,12 @@
|
|
|
708
713
|
}
|
|
709
714
|
|
|
710
715
|
var sunday = weekday(0);
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
716
|
+
weekday(1);
|
|
717
|
+
weekday(2);
|
|
718
|
+
weekday(3);
|
|
719
|
+
weekday(4);
|
|
720
|
+
weekday(5);
|
|
721
|
+
weekday(6);
|
|
717
722
|
|
|
718
723
|
var month = newInterval(function(date) {
|
|
719
724
|
date.setDate(1);
|
|
@@ -749,8 +754,10 @@
|
|
|
749
754
|
});
|
|
750
755
|
};
|
|
751
756
|
|
|
752
|
-
var
|
|
753
|
-
|
|
757
|
+
var d3TimeYear = year;
|
|
758
|
+
|
|
759
|
+
var css_248z$b = ".other_CalendarHeatMap{shape-rendering:crispEdges}.other_CalendarHeatMap .day{fill:#fff;stroke:#ccc}.other_CalendarHeatMap .day.selected{stroke:red}.other_CalendarHeatMap .day.over{stroke:orange}.other_CalendarHeatMap .day.selected.over{stroke:red}.other_CalendarHeatMap .month{fill:none;stroke:#000;stroke-width:2px}";
|
|
760
|
+
styleInject(css_248z$b);
|
|
754
761
|
|
|
755
762
|
var CalendarHeatMap = /** @class */ (function (_super) {
|
|
756
763
|
__extends(CalendarHeatMap, _super);
|
|
@@ -861,7 +868,7 @@
|
|
|
861
868
|
dayRectElement.append("title");
|
|
862
869
|
})
|
|
863
870
|
.merge(dayRect)
|
|
864
|
-
.attr("x", function (d) { return sunday.count(
|
|
871
|
+
.attr("x", function (d) { return sunday.count(d3TimeYear(d), d) * cellSize; })
|
|
865
872
|
.attr("y", function (d) { return d.getDay() * cellSize; })
|
|
866
873
|
.attr("width", cellSize)
|
|
867
874
|
.attr("height", cellSize)
|
|
@@ -895,9 +902,9 @@
|
|
|
895
902
|
function calcMonthPath(t0) {
|
|
896
903
|
var t1 = new Date(t0.getFullYear(), t0.getMonth() + 1, 0);
|
|
897
904
|
var d0 = t0.getDay();
|
|
898
|
-
var w0 = sunday.count(
|
|
905
|
+
var w0 = sunday.count(d3TimeYear(t0), t0);
|
|
899
906
|
var d1 = t1.getDay();
|
|
900
|
-
var w1 = sunday.count(
|
|
907
|
+
var w1 = sunday.count(d3TimeYear(t1), t1);
|
|
901
908
|
return "M" + (w0 + 1) * cellSize + "," + d0 * cellSize +
|
|
902
909
|
"H" + w0 * cellSize + "V" + 7 * cellSize +
|
|
903
910
|
"H" + w1 * cellSize + "V" + (d1 + 1) * cellSize +
|
|
@@ -910,10 +917,8 @@
|
|
|
910
917
|
};
|
|
911
918
|
// Events ---
|
|
912
919
|
CalendarHeatMap.prototype.click = function (row, column, selected) {
|
|
913
|
-
console.log("Click: " + JSON.stringify(row) + ", " + column + ", " + selected);
|
|
914
920
|
};
|
|
915
921
|
CalendarHeatMap.prototype.dblclick = function (row, column, selected) {
|
|
916
|
-
console.log("Double click: " + JSON.stringify(row) + ", " + column + ", " + selected);
|
|
917
922
|
};
|
|
918
923
|
return CalendarHeatMap;
|
|
919
924
|
}(common.HTMLWidget));
|
|
@@ -1111,7 +1116,7 @@
|
|
|
1111
1116
|
this.mapResult(response, key);
|
|
1112
1117
|
}
|
|
1113
1118
|
};
|
|
1114
|
-
var serialize = function (obj) {
|
|
1119
|
+
var serialize$1 = function (obj) {
|
|
1115
1120
|
var str = [];
|
|
1116
1121
|
for (var key in obj) {
|
|
1117
1122
|
if (obj.hasOwnProperty(key)) {
|
|
@@ -1134,7 +1139,7 @@
|
|
|
1134
1139
|
resolve(response);
|
|
1135
1140
|
};
|
|
1136
1141
|
var script = document.createElement("script");
|
|
1137
|
-
script.src = url + (url.indexOf("?") >= 0 ? "&" : "?") + "jsonp=" + callbackName + "&" + serialize(request);
|
|
1142
|
+
script.src = url + (url.indexOf("?") >= 0 ? "&" : "?") + "jsonp=" + callbackName + "&" + serialize$1(request);
|
|
1138
1143
|
document.body.appendChild(script);
|
|
1139
1144
|
var progress = setInterval(function () {
|
|
1140
1145
|
if (respondedTimeout <= 0) {
|
|
@@ -1144,13 +1149,9 @@
|
|
|
1144
1149
|
respondedTimeout -= respondedTick;
|
|
1145
1150
|
if (respondedTimeout <= 0) {
|
|
1146
1151
|
clearInterval(progress);
|
|
1147
|
-
console.log("Request timeout: " + script.src);
|
|
1148
1152
|
doCallback();
|
|
1149
1153
|
reject(Error("Request timeout: " + script.src));
|
|
1150
1154
|
}
|
|
1151
|
-
else {
|
|
1152
|
-
console.log("Request pending (" + respondedTimeout / 1000 + " sec): " + script.src);
|
|
1153
|
-
}
|
|
1154
1155
|
}
|
|
1155
1156
|
}, respondedTick);
|
|
1156
1157
|
function doCallback() {
|
|
@@ -1203,7 +1204,7 @@
|
|
|
1203
1204
|
return new Promise(function (resolve, reject) {
|
|
1204
1205
|
var uri = url;
|
|
1205
1206
|
if (method === "GET" && request) {
|
|
1206
|
-
uri += "?" + serialize(request);
|
|
1207
|
+
uri += "?" + serialize$1(request);
|
|
1207
1208
|
}
|
|
1208
1209
|
var xhr = new XMLHttpRequest();
|
|
1209
1210
|
xhr.onload = function (e) {
|
|
@@ -1224,7 +1225,7 @@
|
|
|
1224
1225
|
}
|
|
1225
1226
|
else {
|
|
1226
1227
|
xhr.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
|
|
1227
|
-
xhr.send(serialize(request));
|
|
1228
|
+
xhr.send(serialize$1(request));
|
|
1228
1229
|
}
|
|
1229
1230
|
});
|
|
1230
1231
|
};
|
|
@@ -1266,7 +1267,7 @@
|
|
|
1266
1267
|
return this;
|
|
1267
1268
|
};
|
|
1268
1269
|
Basic.prototype.call = function (request, callback) {
|
|
1269
|
-
var url = this._url + (this._url.indexOf("?") >= 0 ? "&" : "?") + serialize(request);
|
|
1270
|
+
var url = this._url + (this._url.indexOf("?") >= 0 ? "&" : "?") + serialize$1(request);
|
|
1270
1271
|
if (this._cacheCalls) {
|
|
1271
1272
|
var context_1 = this;
|
|
1272
1273
|
return new Promise(function (resolve, reject) {
|
|
@@ -1275,7 +1276,7 @@
|
|
|
1275
1276
|
throw Error("not cached");
|
|
1276
1277
|
}
|
|
1277
1278
|
if (callback) {
|
|
1278
|
-
console.
|
|
1279
|
+
console.error("Deprecated: callback, use promise (Basic.prototype.call)");
|
|
1279
1280
|
callback(response);
|
|
1280
1281
|
}
|
|
1281
1282
|
resolve(response);
|
|
@@ -1283,7 +1284,7 @@
|
|
|
1283
1284
|
return context_1.get(url).then(function (response2) {
|
|
1284
1285
|
localStorage.setItem("hpcc.viz." + url, JSON.stringify(response2));
|
|
1285
1286
|
if (callback) {
|
|
1286
|
-
console.
|
|
1287
|
+
console.error("Deprecated: callback, use promise (Basic.prototype.call)");
|
|
1287
1288
|
callback(response2);
|
|
1288
1289
|
}
|
|
1289
1290
|
return response2;
|
|
@@ -1294,7 +1295,7 @@
|
|
|
1294
1295
|
localStorage.removeItem("hpcc.viz." + url);
|
|
1295
1296
|
return this.get(url).then(function (response) {
|
|
1296
1297
|
if (callback) {
|
|
1297
|
-
console.
|
|
1298
|
+
console.error("Deprecated: callback, use promise (Basic.prototype.call)");
|
|
1298
1299
|
callback(response);
|
|
1299
1300
|
}
|
|
1300
1301
|
return response;
|
|
@@ -1303,7 +1304,7 @@
|
|
|
1303
1304
|
};
|
|
1304
1305
|
return Basic;
|
|
1305
1306
|
}(Comms));
|
|
1306
|
-
function locateRoxieResponse(response) {
|
|
1307
|
+
function locateRoxieResponse$1(response) {
|
|
1307
1308
|
// v5 and v6 compatible ---
|
|
1308
1309
|
for (var key in response) {
|
|
1309
1310
|
if (response[key].Row && response[key].Row instanceof Array) {
|
|
@@ -1311,7 +1312,7 @@
|
|
|
1311
1312
|
}
|
|
1312
1313
|
var retVal = void 0;
|
|
1313
1314
|
if (typeof (response[key]) !== "string") {
|
|
1314
|
-
retVal = locateRoxieResponse(response[key]);
|
|
1315
|
+
retVal = locateRoxieResponse$1(response[key]);
|
|
1315
1316
|
}
|
|
1316
1317
|
if (retVal) {
|
|
1317
1318
|
return retVal;
|
|
@@ -1397,7 +1398,7 @@
|
|
|
1397
1398
|
pathname: "WsEcl/submit/query/" + target.target + "/" + target.query + "/json"
|
|
1398
1399
|
});
|
|
1399
1400
|
return this.jsonp(url, request).then(function (response) {
|
|
1400
|
-
var _response = locateRoxieResponse(response);
|
|
1401
|
+
var _response = locateRoxieResponse$1(response);
|
|
1401
1402
|
if (!_response) {
|
|
1402
1403
|
_response = locateRoxieException(response);
|
|
1403
1404
|
}
|
|
@@ -1419,7 +1420,7 @@
|
|
|
1419
1420
|
}
|
|
1420
1421
|
context._mappings.mapResponse(response);
|
|
1421
1422
|
if (callback) {
|
|
1422
|
-
console.
|
|
1423
|
+
console.error("Deprecated: callback, use promise (WsECL.prototype.call)");
|
|
1423
1424
|
callback(response);
|
|
1424
1425
|
}
|
|
1425
1426
|
return response;
|
|
@@ -1430,7 +1431,7 @@
|
|
|
1430
1431
|
};
|
|
1431
1432
|
return WsECL;
|
|
1432
1433
|
}(Comms));
|
|
1433
|
-
var WsWorkunits = /** @class */ (function (_super) {
|
|
1434
|
+
var WsWorkunits$1 = /** @class */ (function (_super) {
|
|
1434
1435
|
__extends(WsWorkunits, _super);
|
|
1435
1436
|
function WsWorkunits() {
|
|
1436
1437
|
var _this = _super.call(this) || this;
|
|
@@ -1550,7 +1551,7 @@
|
|
|
1550
1551
|
context_2._mappings.mapResult(context_2._resultNameCache, target.resultname);
|
|
1551
1552
|
}
|
|
1552
1553
|
if (callback) {
|
|
1553
|
-
console.
|
|
1554
|
+
console.error("Deprecated: callback, use promise (WsWorkunits.prototype._fetchResult)");
|
|
1554
1555
|
callback(context_2._resultNameCache[target.resultname]);
|
|
1555
1556
|
}
|
|
1556
1557
|
return context_2._resultNameCache[target.resultname];
|
|
@@ -1586,7 +1587,7 @@
|
|
|
1586
1587
|
}
|
|
1587
1588
|
response = response.WUQueryResponse.Workunits.ECLWorkunit;
|
|
1588
1589
|
if (callback) {
|
|
1589
|
-
console.
|
|
1590
|
+
console.error("Deprecated: callback, use promise (WsWorkunits.prototype.WUQuery)");
|
|
1590
1591
|
callback(response);
|
|
1591
1592
|
}
|
|
1592
1593
|
return response;
|
|
@@ -1619,7 +1620,7 @@
|
|
|
1619
1620
|
var context_4 = this;
|
|
1620
1621
|
this._fetchResultNamesPromise = this.jsonp(url_1, request_1).then(function (response) {
|
|
1621
1622
|
if (common.Utility.exists("WUInfoResponse.Workunit.Archived", response) && response.WUInfoResponse.Workunit.Archived) {
|
|
1622
|
-
console.
|
|
1623
|
+
console.warn("WU is archived: " + url_1 + " " + JSON.stringify(request_1));
|
|
1623
1624
|
}
|
|
1624
1625
|
if (common.Utility.exists("WUInfoResponse.Workunit.Results.ECLResult", response)) {
|
|
1625
1626
|
response.WUInfoResponse.Workunit.Results.ECLResult.map(function (item) {
|
|
@@ -1628,7 +1629,7 @@
|
|
|
1628
1629
|
});
|
|
1629
1630
|
}
|
|
1630
1631
|
if (callback) {
|
|
1631
|
-
console.
|
|
1632
|
+
console.error("Deprecated: callback, use promise (WsWorkunits.prototype.fetchResultNames)");
|
|
1632
1633
|
callback(context_4._resultNameCache);
|
|
1633
1634
|
}
|
|
1634
1635
|
return context_4._resultNameCache;
|
|
@@ -1645,7 +1646,7 @@
|
|
|
1645
1646
|
}
|
|
1646
1647
|
return Promise.all(fetchArray).then(function (responseArray) {
|
|
1647
1648
|
if (callback) {
|
|
1648
|
-
console.
|
|
1649
|
+
console.error("Deprecated: callback, use promise (WsWorkunits.prototype.fetchResults)");
|
|
1649
1650
|
callback(context._resultNameCache);
|
|
1650
1651
|
}
|
|
1651
1652
|
return context._resultNameCache;
|
|
@@ -1718,14 +1719,14 @@
|
|
|
1718
1719
|
return this.jsonp(url, request).then(function (response) {
|
|
1719
1720
|
if (common.Utility.exists("WUGetStatsResponse.Statistics.WUStatisticItem", response)) {
|
|
1720
1721
|
if (callback) {
|
|
1721
|
-
console.
|
|
1722
|
+
console.error("Deprecated: callback, use promise (WsWorkunits_GetStats.prototype.send)");
|
|
1722
1723
|
callback(response.WUGetStatsResponse.Statistics.WUStatisticItem);
|
|
1723
1724
|
}
|
|
1724
1725
|
return response.WUGetStatsResponse.Statistics.WUStatisticItem;
|
|
1725
1726
|
}
|
|
1726
1727
|
else {
|
|
1727
1728
|
if (callback) {
|
|
1728
|
-
console.
|
|
1729
|
+
console.error("Deprecated: callback, use promise (WsWorkunits_GetStats.prototype.send)");
|
|
1729
1730
|
callback([]);
|
|
1730
1731
|
}
|
|
1731
1732
|
return [];
|
|
@@ -1743,7 +1744,7 @@
|
|
|
1743
1744
|
this._resultNameCacheCount = 0;
|
|
1744
1745
|
var context = this;
|
|
1745
1746
|
return this.jsonp(url, request).then(function (response) {
|
|
1746
|
-
var _response = locateRoxieResponse(response);
|
|
1747
|
+
var _response = locateRoxieResponse$1(response);
|
|
1747
1748
|
if (!_response) {
|
|
1748
1749
|
_response = locateRoxieException(response);
|
|
1749
1750
|
}
|
|
@@ -1765,7 +1766,7 @@
|
|
|
1765
1766
|
}
|
|
1766
1767
|
}
|
|
1767
1768
|
if (callback) {
|
|
1768
|
-
console.
|
|
1769
|
+
console.error("Deprecated: callback, use promise (HIPIERoxie.prototype.fetchResults)");
|
|
1769
1770
|
callback(context._resultNameCache);
|
|
1770
1771
|
}
|
|
1771
1772
|
return context._resultNameCache;
|
|
@@ -1775,7 +1776,7 @@
|
|
|
1775
1776
|
var context = this;
|
|
1776
1777
|
return new Promise(function (resolve, reject) {
|
|
1777
1778
|
if (callback) {
|
|
1778
|
-
console.
|
|
1779
|
+
console.error("Deprecated: callback, use promise (HIPIERoxie.prototype.fetchResult)");
|
|
1779
1780
|
callback(context._resultNameCache[name]);
|
|
1780
1781
|
}
|
|
1781
1782
|
resolve(context._resultNameCache[name]);
|
|
@@ -1794,12 +1795,12 @@
|
|
|
1794
1795
|
};
|
|
1795
1796
|
// HIPIEWorkunit ---
|
|
1796
1797
|
function HIPIEWorkunit() {
|
|
1797
|
-
WsWorkunits.call(this);
|
|
1798
|
+
WsWorkunits$1.call(this);
|
|
1798
1799
|
}
|
|
1799
|
-
HIPIEWorkunit.prototype = Object.create(WsWorkunits.prototype);
|
|
1800
|
+
HIPIEWorkunit.prototype = Object.create(WsWorkunits$1.prototype);
|
|
1800
1801
|
HIPIEWorkunit.prototype.fetchResults = function (callback) {
|
|
1801
1802
|
var context = this;
|
|
1802
|
-
return WsWorkunits.prototype.fetchResultNames.call(this).then(function (response) {
|
|
1803
|
+
return WsWorkunits$1.prototype.fetchResultNames.call(this).then(function (response) {
|
|
1803
1804
|
var fetchArray = [];
|
|
1804
1805
|
for (var key in context._hipieResults) {
|
|
1805
1806
|
var item = context._hipieResults[key];
|
|
@@ -1807,7 +1808,7 @@
|
|
|
1807
1808
|
}
|
|
1808
1809
|
return Promise.all(fetchArray).then(function (response2) {
|
|
1809
1810
|
if (callback) {
|
|
1810
|
-
console.
|
|
1811
|
+
console.error("Deprecated: callback, use promise (HIPIEWorkunit.prototype.fetchResults)");
|
|
1811
1812
|
callback(context._resultNameCache);
|
|
1812
1813
|
}
|
|
1813
1814
|
return context._resultNameCache;
|
|
@@ -1815,9 +1816,9 @@
|
|
|
1815
1816
|
});
|
|
1816
1817
|
};
|
|
1817
1818
|
HIPIEWorkunit.prototype.fetchResult = function (name, callback) {
|
|
1818
|
-
return WsWorkunits.prototype.fetchResult.call(this, { wuid: this._wuid, resultname: name }).then(function (response) {
|
|
1819
|
+
return WsWorkunits$1.prototype.fetchResult.call(this, { wuid: this._wuid, resultname: name }).then(function (response) {
|
|
1819
1820
|
if (callback) {
|
|
1820
|
-
console.
|
|
1821
|
+
console.error("Deprecated: callback, use promise (HIPIEWorkunit.prototype.fetchResult)");
|
|
1821
1822
|
callback(response);
|
|
1822
1823
|
}
|
|
1823
1824
|
return response;
|
|
@@ -1897,7 +1898,7 @@
|
|
|
1897
1898
|
var context = this;
|
|
1898
1899
|
return new Promise(function (resolve, reject) {
|
|
1899
1900
|
if (callback) {
|
|
1900
|
-
console.
|
|
1901
|
+
console.error("Deprecated: callback, use promise (HIPIEDatabomb.prototype.fetchResults)");
|
|
1901
1902
|
callback(context._resultNameCache);
|
|
1902
1903
|
}
|
|
1903
1904
|
resolve(context._resultNameCache);
|
|
@@ -1912,7 +1913,7 @@
|
|
|
1912
1913
|
.url(url);
|
|
1913
1914
|
}
|
|
1914
1915
|
if (testURL.isWsWorkunits()) {
|
|
1915
|
-
return new WsWorkunits()
|
|
1916
|
+
return new WsWorkunits$1()
|
|
1916
1917
|
.url(url);
|
|
1917
1918
|
}
|
|
1918
1919
|
if (testURL.isWsEcl()) {
|
|
@@ -1932,7 +1933,7 @@
|
|
|
1932
1933
|
Comms: Comms,
|
|
1933
1934
|
Basic: Basic,
|
|
1934
1935
|
WsECL: WsECL,
|
|
1935
|
-
WsWorkunits: WsWorkunits,
|
|
1936
|
+
WsWorkunits: WsWorkunits$1,
|
|
1936
1937
|
createESPConnection: createESPConnection,
|
|
1937
1938
|
hookJsonp: hookJsonp,
|
|
1938
1939
|
HIPIEWorkunit: HIPIEWorkunit,
|
|
@@ -1974,12 +1975,12 @@
|
|
|
1974
1975
|
});
|
|
1975
1976
|
};
|
|
1976
1977
|
// WsWorkunits ---
|
|
1977
|
-
function WsWorkunits
|
|
1978
|
+
function WsWorkunits(baseUrl) {
|
|
1978
1979
|
BasicComms.call(this);
|
|
1979
1980
|
this.url(baseUrl + "WsWorkunits/");
|
|
1980
1981
|
}
|
|
1981
|
-
WsWorkunits
|
|
1982
|
-
WsWorkunits
|
|
1982
|
+
WsWorkunits.prototype = Object.create(BasicComms.prototype);
|
|
1983
|
+
WsWorkunits.prototype.wuQuery = function (options) {
|
|
1983
1984
|
var url = this.getUrl({
|
|
1984
1985
|
pathname: "WsWorkunits/WUQuery.json"
|
|
1985
1986
|
});
|
|
@@ -2255,13 +2256,13 @@
|
|
|
2255
2256
|
return true;
|
|
2256
2257
|
});
|
|
2257
2258
|
}
|
|
2258
|
-
function locateRoxieResponse
|
|
2259
|
+
function locateRoxieResponse(response) {
|
|
2259
2260
|
// v5 and v6 compatible ---
|
|
2260
2261
|
for (var key in response) {
|
|
2261
2262
|
if (response[key].Row && response[key].Row instanceof Array) {
|
|
2262
2263
|
return response;
|
|
2263
2264
|
}
|
|
2264
|
-
var retVal = locateRoxieResponse
|
|
2265
|
+
var retVal = locateRoxieResponse(response[key]);
|
|
2265
2266
|
if (retVal) {
|
|
2266
2267
|
return retVal;
|
|
2267
2268
|
}
|
|
@@ -2280,7 +2281,7 @@
|
|
|
2280
2281
|
}
|
|
2281
2282
|
var context = this;
|
|
2282
2283
|
return this.jsonp(this.url(), request).then(function (response) {
|
|
2283
|
-
response = locateRoxieResponse
|
|
2284
|
+
response = locateRoxieResponse(response);
|
|
2284
2285
|
if (response) {
|
|
2285
2286
|
if (context._resultName) {
|
|
2286
2287
|
if (response && response[context._resultName] && response[context._resultName].Row) {
|
|
@@ -2331,7 +2332,7 @@
|
|
|
2331
2332
|
.url(url);
|
|
2332
2333
|
if (testURL.isWsWorkunits()) {
|
|
2333
2334
|
var espConnection = createESPConnection(url);
|
|
2334
|
-
if (espConnection instanceof WsWorkunits && espConnection.wuid()) {
|
|
2335
|
+
if (espConnection instanceof WsWorkunits$1 && espConnection.wuid()) {
|
|
2335
2336
|
return new Workunit(espConnection.getUrl({ pathname: "" }), espConnection.wuid())
|
|
2336
2337
|
.url(url);
|
|
2337
2338
|
}
|
|
@@ -2370,7 +2371,9 @@
|
|
|
2370
2371
|
return retVal;
|
|
2371
2372
|
}
|
|
2372
2373
|
|
|
2373
|
-
var
|
|
2374
|
+
var simpleheat$1 = {exports: {}};
|
|
2375
|
+
|
|
2376
|
+
(function (module) {
|
|
2374
2377
|
|
|
2375
2378
|
module.exports = simpleheat;
|
|
2376
2379
|
|
|
@@ -2512,12 +2515,14 @@
|
|
|
2512
2515
|
}
|
|
2513
2516
|
}
|
|
2514
2517
|
};
|
|
2515
|
-
});
|
|
2518
|
+
}(simpleheat$1));
|
|
2516
2519
|
|
|
2517
|
-
var
|
|
2518
|
-
|
|
2519
|
-
|
|
2520
|
-
|
|
2520
|
+
var simpleheat_1 = simpleheat$1.exports;
|
|
2521
|
+
|
|
2522
|
+
var _simpleheat = /*#__PURE__*/_mergeNamespaces({
|
|
2523
|
+
__proto__: null,
|
|
2524
|
+
'default': simpleheat_1
|
|
2525
|
+
}, [simpleheat$1.exports]);
|
|
2521
2526
|
|
|
2522
2527
|
var simpleheat = window.simpleheat || (_simpleheat && simpleheat_1) || _simpleheat;
|
|
2523
2528
|
var HeatMap = /** @class */ (function (_super) {
|
|
@@ -2764,8 +2769,8 @@
|
|
|
2764
2769
|
HPCCBadge.prototype._class += " other_HPCCBadge";
|
|
2765
2770
|
HPCCBadge.prototype.publish("animation", "none", "set", "Animation Style", ["none", "accentInOut", "accentIn", "fade_in"]);
|
|
2766
2771
|
|
|
2767
|
-
var css_248z$
|
|
2768
|
-
styleInject(css_248z$
|
|
2772
|
+
var css_248z$a = ".other_Html{height:100%;overflow-x:auto;overflow-y:scroll;width:100%}";
|
|
2773
|
+
styleInject(css_248z$a);
|
|
2769
2774
|
|
|
2770
2775
|
var Html = /** @class */ (function (_super) {
|
|
2771
2776
|
__extends(Html, _super);
|
|
@@ -2796,8 +2801,8 @@
|
|
|
2796
2801
|
Html.prototype.publish("overflowX", null, "set", "CSS overflow-x", ["", "visible", "hidden", "scroll", "auto", "initial", "inherit"], { tags: ["Basic"], optional: true });
|
|
2797
2802
|
Html.prototype.publish("overflowY", null, "set", "CSS overflow-y", ["", "visible", "hidden", "scroll", "auto", "initial", "inherit"], { tags: ["Basic"], optional: true });
|
|
2798
2803
|
|
|
2799
|
-
var css_248z$
|
|
2800
|
-
styleInject(css_248z$
|
|
2804
|
+
var css_248z$9 = ".other_IconList .other_Html{overflow-x:hidden;overflow-y:hidden}";
|
|
2805
|
+
styleInject(css_248z$9);
|
|
2801
2806
|
|
|
2802
2807
|
var IconList = /** @class */ (function (_super) {
|
|
2803
2808
|
__extends(IconList, _super);
|
|
@@ -2846,7 +2851,7 @@
|
|
|
2846
2851
|
IconList.prototype.updateListProperties = function (list, idx) {
|
|
2847
2852
|
return list
|
|
2848
2853
|
.disableScroll(true)
|
|
2849
|
-
.widgetsFlexBasis([this.iconSize() + "px", "calc(100% - "
|
|
2854
|
+
.widgetsFlexBasis([this.iconSize() + "px", "calc(100% - ".concat(this.iconSize(), "px)")]);
|
|
2850
2855
|
};
|
|
2851
2856
|
IconList.prototype.updateEntityProperties = function (entity, idx) {
|
|
2852
2857
|
return entity
|
|
@@ -2863,8 +2868,8 @@
|
|
|
2863
2868
|
IconList.prototype.publish("iconColorColumnIndex", 1, "number", "Index of column containing icon color");
|
|
2864
2869
|
IconList.prototype.publish("htmlColumnIndex", 2, "number", "Index of column containing html string");
|
|
2865
2870
|
|
|
2866
|
-
var css_248z$
|
|
2867
|
-
styleInject(css_248z$
|
|
2871
|
+
var css_248z$8 = ".other_Paginator{display:block;position:absolute;white-space:nowrap}.other_Paginator .pagination{display:inline-block;margin:0;padding:0;white-space:nowrap}.other_Paginator .pagination>li{display:inline}.other_Paginator input[type=number].currentPageNumber{border:1px solid #ddd;outline:0 none;position:relative;text-align:center;width:37px}.other_Paginator div.side{padding-left:8px;padding-top:5px;vertical-align:top}.other_Paginator span.side{color:#337ab7;position:relative}.other_Paginator .pagination>div,.other_Paginator .pagination>li>a,.other_Paginator .pagination>li>span{background-color:#fff;border:1px solid #ddd;color:#337ab7;float:left;line-height:1.42857143;margin-left:-1px;padding:6px 12px;position:relative;text-decoration:none}.other_Paginator .pagination>li:first-child>a,.other_Paginator .pagination>li:first-child>span{border-bottom-left-radius:4px;border-top-left-radius:4px;margin-left:0}.other_Paginator .pagination>li:last-child>a,.other_Paginator .pagination>li:last-child>span{border-bottom-right-radius:4px;border-top-right-radius:4px}.other_Paginator .pagination>li>a:focus,.other_Paginator .pagination>li>a:hover,.other_Paginator .pagination>li>span:focus,.other_Paginator .pagination>li>span:hover{background-color:#eee;border-color:#ddd;color:#23527c}.other_Paginator .pagination>.active>a,.other_Paginator .pagination>.active>a:focus,.other_Paginator .pagination>.active>a:hover,.other_Paginator .pagination>.active>span,.other_Paginator .pagination>.active>span:focus,.other_Paginator .pagination>.active>span:hover{background-color:#337ab7;border-color:#337ab7;color:#fff;cursor:default;z-index:2}.other_Paginator .pagination>.disabled>a,.other_Paginator .pagination>.disabled>a:focus,.other_Paginator .pagination>.disabled>a:hover,.other_Paginator .pagination>.disabled>span,.other_Paginator .pagination>.disabled>span:focus,.other_Paginator .pagination>.disabled>span:hover{background-color:#fff;border-color:#ddd;color:#777;cursor:not-allowed}.other_Paginator .pagination-lg>li>a,.other_Paginator .pagination-lg>li>span{font-size:18px;padding:10px 16px}.other_Paginator .pagination-lg>li:first-child>a,.other_Paginator .pagination-lg>li:first-child>span{border-bottom-left-radius:6px;border-top-left-radius:6px}.other_Paginator .pagination-lg>li:last-child>a,.other_Paginator .pagination-lg>li:last-child>span{border-bottom-right-radius:6px;border-top-right-radius:6px}.other_Paginator .pagination-sm>li>a,.other_Paginator .pagination-sm>li>span{font-size:12px;padding:5px 10px}.other_Paginator .pagination-sm>li:first-child>a,.other_Paginator .pagination-sm>li:first-child>span{border-bottom-left-radius:3px;border-top-left-radius:3px}.other_Paginator .pagination-sm>li:last-child>a,.other_Paginator .pagination-sm>li:last-child>span{border-bottom-right-radius:3px;border-top-right-radius:3px}";
|
|
2872
|
+
styleInject(css_248z$8);
|
|
2868
2873
|
|
|
2869
2874
|
var Paginator = /** @class */ (function (_super) {
|
|
2870
2875
|
__extends(Paginator, _super);
|
|
@@ -2982,15 +2987,9 @@
|
|
|
2982
2987
|
Paginator.prototype.publish("bottom", 20, "number", "Pagination bottom offset", null, { tags: ["Private"] });
|
|
2983
2988
|
Paginator.prototype.publish("right", 20, "number", "Pagination right offset", null, { tags: ["Private"] });
|
|
2984
2989
|
|
|
2985
|
-
var css_248z$
|
|
2986
|
-
styleInject(css_248z$
|
|
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}";
|
|
2991
|
+
styleInject(css_248z$7);
|
|
2987
2992
|
|
|
2988
|
-
function replacer(key, value) {
|
|
2989
|
-
if (value instanceof common.Widget) {
|
|
2990
|
-
return "Widget with class: " + value.classID();
|
|
2991
|
-
}
|
|
2992
|
-
return value;
|
|
2993
|
-
}
|
|
2994
2993
|
var Table = /** @class */ (function (_super) {
|
|
2995
2994
|
__extends(Table, _super);
|
|
2996
2995
|
function Table() {
|
|
@@ -3371,7 +3370,7 @@
|
|
|
3371
3370
|
if (this.pagination() && this._hasChildWidgets) {
|
|
3372
3371
|
this.tableDiv.style("overflow-y", "auto");
|
|
3373
3372
|
this.table.style("margin-bottom", "50px");
|
|
3374
|
-
console.
|
|
3373
|
+
console.warn("Warning: displaying another widget in the table may cause problems with pagination");
|
|
3375
3374
|
}
|
|
3376
3375
|
else {
|
|
3377
3376
|
this.tableDiv.style("overflow-y", null);
|
|
@@ -3492,8 +3491,6 @@
|
|
|
3492
3491
|
if (!rowsUpdate.empty())
|
|
3493
3492
|
this.setColumnWidths(rowsUpdate);
|
|
3494
3493
|
var box;
|
|
3495
|
-
var newTableHeight;
|
|
3496
|
-
var maxWidth;
|
|
3497
3494
|
if (this.fixedSize()) {
|
|
3498
3495
|
var node = common.select(".tableDiv > table").node();
|
|
3499
3496
|
if (node) {
|
|
@@ -3542,12 +3539,11 @@
|
|
|
3542
3539
|
}
|
|
3543
3540
|
this.setOnScrollEvents(this.tableDiv.node(), tableMarginHeight);
|
|
3544
3541
|
function calcWidth() {
|
|
3545
|
-
|
|
3546
|
-
|
|
3542
|
+
box.width;
|
|
3543
|
+
context.tbody.property("offsetWidth") + 1;
|
|
3547
3544
|
}
|
|
3548
3545
|
function calcHeight() {
|
|
3549
|
-
|
|
3550
|
-
newTableHeight = newTableHeight;
|
|
3546
|
+
context.tbody.property("offsetHeight") + tableMarginHeight;
|
|
3551
3547
|
}
|
|
3552
3548
|
this._paginator.render();
|
|
3553
3549
|
setTimeout(function () {
|
|
@@ -3788,10 +3784,8 @@
|
|
|
3788
3784
|
return this;
|
|
3789
3785
|
};
|
|
3790
3786
|
Table.prototype.click = function (row, column, selected) {
|
|
3791
|
-
console.log("click: " + JSON.stringify(row, replacer) + ", " + column + "," + selected);
|
|
3792
3787
|
};
|
|
3793
3788
|
Table.prototype.dblclick = function (row, column, selected) {
|
|
3794
|
-
console.log("dblclick: " + JSON.stringify(row, replacer) + ", " + column + "," + selected);
|
|
3795
3789
|
};
|
|
3796
3790
|
Table.prototype.headerClick = function (column, idx) {
|
|
3797
3791
|
this
|
|
@@ -3848,7 +3842,7 @@
|
|
|
3848
3842
|
Table.prototype.publish("sortByFieldIndex", null, "number", "Index for the field/column to sort the data", null, { tags: ["Basic"], optional: true });
|
|
3849
3843
|
Table.prototype.publish("descending", false, "boolean", "Direction for sorting the data: ascending (true) or descending (false)", null, { tags: ["Basic"], optional: true });
|
|
3850
3844
|
|
|
3851
|
-
var css_248z$6 = ".other_Legend .colorBlock{
|
|
3845
|
+
var css_248z$6 = ".other_Legend .colorBlock{height:10px;width:10px}.other_Legend>table,.other_Legend>table td,.other_Legend>table th{border-collapse:collapse;border-spacing:0}.other_Table.other_Legend table{border-spacing:0}.labels-wrapper th,.other_Table.other_Legend th{background-color:transparent;border:1px solid transparent;color:#333;cursor:default;font-weight:400;padding:2px 5px;text-align:left;white-space:nowrap}.other_Table.other_Legend tr{background-color:transparent;color:#333}.other_Table.other_Legend .tableDiv tbody>tr:nth-child(odd){background-color:unset;color:#000}.other_Table.other_Legend .tableDiv tbody>tr.hover,.other_Table.other_Legend .tableDiv tbody>tr:hover,.rows-wrapper table tbody tr.hover{background-color:#bfd7e7;color:#fff}.other_Table.other_Legend thead>tr:hover{background-color:transparent}.other_Table.other_Legend tbody>tr.hover,.other_Table.other_Legend tbody>tr:hover,.rows-wrapper tbody tr.hover{background-color:#eee}.other_Table.other_Legend td,.rows-wrapper td{border-width:0;box-sizing:border-box;padding:2px 5px;white-space:nowrap}.other_Legend>.tableDiv>table>tbody>tr:hover{background-color:#ddd;color:#000;cursor:pointer}.other_Legend.horiz-legend .tableDiv{text-align:left;width:100%!important}.other_Legend.horiz-legend .tableDiv>table{display:inline-block;left:0!important;top:0!important;width:100%!important}.other_Legend.horiz-legend tbody,.other_Legend.horiz-legend thead,.other_Legend.horiz-legend tr{display:inline-block}.other_Legend.horiz-legend td,.other_Legend.horiz-legend td>div{display:inline-block;white-space:nowrap}.other_Legend.horiz-legend tr{white-space:nowrap}.other_Legend.horiz-legend tbody{display:inline-block;text-align:center;width:100%!important}";
|
|
3852
3846
|
styleInject(css_248z$6);
|
|
3853
3847
|
|
|
3854
3848
|
function _htmlColorBlock(hexColor) {
|
|
@@ -4001,19 +3995,10 @@
|
|
|
4001
3995
|
_super.prototype.exit.call(this, domNode, element);
|
|
4002
3996
|
};
|
|
4003
3997
|
Legend.prototype.onClick = function (rowData, rowIdx) {
|
|
4004
|
-
console.log("Legend onClick method");
|
|
4005
|
-
console.log("rowData: " + rowData);
|
|
4006
|
-
console.log("rowIdx: " + rowIdx);
|
|
4007
3998
|
};
|
|
4008
3999
|
Legend.prototype.onDblClick = function (rowData, rowIdx) {
|
|
4009
|
-
console.log("Legend onDblClick method");
|
|
4010
|
-
console.log("rowData: " + rowData);
|
|
4011
|
-
console.log("rowIdx: " + rowIdx);
|
|
4012
4000
|
};
|
|
4013
4001
|
Legend.prototype.onMouseOver = function (rowData, rowIdx) {
|
|
4014
|
-
console.log("Legend onMouseOver method");
|
|
4015
|
-
console.log("rowData: " + rowData);
|
|
4016
|
-
console.log("rowIdx: " + rowIdx);
|
|
4017
4002
|
};
|
|
4018
4003
|
return Legend;
|
|
4019
4004
|
}(Table));
|
|
@@ -4040,8 +4025,8 @@
|
|
|
4040
4025
|
return retVal;
|
|
4041
4026
|
};
|
|
4042
4027
|
|
|
4043
|
-
var css_248z$
|
|
4044
|
-
styleInject(css_248z$
|
|
4028
|
+
var css_248z$5 = ".other_MorphText .enter{fill:green}.other_MorphText .update{fill:#333}.other_MorphText .exit{fill:brown}";
|
|
4029
|
+
styleInject(css_248z$5);
|
|
4045
4030
|
|
|
4046
4031
|
var MorphText = /** @class */ (function (_super) {
|
|
4047
4032
|
__extends(MorphText, _super);
|
|
@@ -4169,8 +4154,8 @@
|
|
|
4169
4154
|
return origData.apply(this, arguments);
|
|
4170
4155
|
};
|
|
4171
4156
|
|
|
4172
|
-
var css_248z$
|
|
4173
|
-
styleInject(css_248z$
|
|
4157
|
+
var css_248z$4 = ".graph_Opportunity{transform:translate(20px,20px)scale(1)!important}.graph_Opportunity .group{stroke-width:1;stroke:#555;fill:#fefefe}.graph_Opportunity .group_headings{font-family:Helvetica,Arial,sans-serif;font-size:14px;font-weight:700;line-height:20px}.graph_Opportunity .node_prev_rect{fill:#fff;stroke-width:2;stroke:#000;stroke-dasharray:3,3;opacity:.6}.graph_Opportunity .node_rev_change{fill:#fff}.graph_Opportunity .node_rev_change_text{color:#000;font-family:Arial;font-size:18px;font-weight:700}.graph_Opportunity .node_date_change{fill:#fff}.graph_Opportunity .node_date_change_text{color:#000;font-family:Arial;font-size:18px;font-weight:700}.graph_Opportunity .node_prev_text{font-family:Arial;font-size:9px;opacity:.6}.graph_Opportunity .node_cur_rect{stroke-width:2;stroke:#000}.graph_Opportunity .node_cur_text{font-family:Arial;font-size:9px;text-decoration:underline}.graph_Opportunity .arrowhead{refX:6}.graph_Opportunity-tooltip.tooltip{background:#bdbdbd;border:0;border-radius:8px;font:14px arial;height:135px;padding:15px 10px 10px;pointer-events:none;position:absolute;text-align:left;width:350px;z-index:1}";
|
|
4158
|
+
styleInject(css_248z$4);
|
|
4174
4159
|
|
|
4175
4160
|
var Column = /** @class */ (function (_super) {
|
|
4176
4161
|
__extends(Column, _super);
|
|
@@ -4748,7 +4733,7 @@
|
|
|
4748
4733
|
}
|
|
4749
4734
|
return retVal;
|
|
4750
4735
|
}
|
|
4751
|
-
function serialize
|
|
4736
|
+
function serialize(widget, filter, includeData, includeState) {
|
|
4752
4737
|
return JSON.stringify(serializeToObject(widget, filter, includeData, includeState));
|
|
4753
4738
|
}
|
|
4754
4739
|
|
|
@@ -4762,11 +4747,11 @@
|
|
|
4762
4747
|
removeTheme: removeTheme,
|
|
4763
4748
|
applyTheme: applyTheme,
|
|
4764
4749
|
serializeToObject: serializeToObject,
|
|
4765
|
-
serialize: serialize
|
|
4750
|
+
serialize: serialize
|
|
4766
4751
|
});
|
|
4767
4752
|
|
|
4768
|
-
var css_248z$
|
|
4769
|
-
styleInject(css_248z$
|
|
4753
|
+
var css_248z$3 = ".other_PropertyEditor{height:100%;overflow-y:scroll;width:100%}.other_PropertyEditor .other_PropertyEditor{overflow:hidden}.other_PropertyEditor .property-table{border:solid #ddd;border-width:0 0 0 1px;width:100%}.other_PropertyEditor thead>tr>th{background-color:#333}.other_PropertyEditor .other_PropertyEditor th{background-color:#444}.other_PropertyEditor .other_PropertyEditor .other_PropertyEditor th{background-color:#555}.other_PropertyEditor .other_PropertyEditor .other_PropertyEditor .other_PropertyEditor th{background-color:#666}.other_PropertyEditor .other_PropertyEditor .other_PropertyEditor .other_PropertyEditor .other_PropertyEditor th{background-color:#777}.other_PropertyEditor .headerRow{background-color:#eee}.other_PropertyEditor .other_PropertyEditor .headerRow{background-color:#ddd}.other_PropertyEditor .other_PropertyEditor .other_PropertyEditor .headerRow{background-color:#ccc}.other_PropertyEditor .other_PropertyEditor .other_PropertyEditor .other_PropertyEditor .headerRow{background-color:#bbb}.other_PropertyEditor .other_PropertyEditor .other_PropertyEditor .other_PropertyEditor .other_PropertyEditor .headerRow{background-color:#aaa}.other_PropertyEditor .fa{font-size:14px;width:14px}.other_PropertyEditor div.property-table-collapsed{display:none}.other_PropertyEditor .headerRow>.peInput{padding-top:2px}.other_PropertyEditor .headerRow>.peInput>span{font-weight:700;padding-left:2px}.other_PropertyEditor .headerRow>.peInput>i{float:right;padding-bottom:2px;padding-top:2px}.other_PropertyEditor .headerRow>span>i:hover{background-color:#555;cursor:pointer}.other_PropertyEditor .property-table thead>tr>th{background-color:#333;color:#fff;padding-left:4px;padding-top:2px;text-align:left}.other_PropertyEditor .property-table thead>tr>th>i{float:right;padding-bottom:2px;padding-right:4px;padding-top:2px}.other_PropertyEditor .property-table thead>tr>th>i:hover{background-color:#555;cursor:pointer}.other_PropertyEditor .property-table tbody>tr:nth-child(2n){background-color:#f9f9f9}.other_PropertyEditor .property-table tbody>tr:nth-child(odd){background-color:#fff}.other_PropertyEditor .property-table tbody>tr>td{color:#333;padding:0 0 0 2px;text-align:left}.other_PropertyEditor .property-table tbody>tr.disabled>td{color:gray}.other_PropertyEditor .property-table tbody>tr.invalid>td{color:red}.other_PropertyEditor .property-input-cell>div{padding-left:8px}.other_PropertyEditor .property-label{box-sizing:border-box;height:20px;padding-right:4px}.other_PropertyEditor td.property-input-cell{height:20px;padding:1px 0;text-align:left;width:80%}.other_PropertyEditor .property-input-cell>input,.other_PropertyEditor .property-input-cell>textarea{box-sizing:border-box;width:100%}.other_PropertyEditor .property-input-cell>input{height:20px}.other_PropertyEditor .property-input-cell>textarea{height:120px}.other_PropertyEditor .property-input-cell.boolean-cell{margin:0;position:relative;width:auto}.other_PropertyEditor .property-input-cell>input[type=checkbox]{margin:0;position:absolute;top:0;width:auto}.other_PropertyEditor .html-color-cell>input{width:80%}.other_PropertyEditor .html-color-cell>input[type=color]{position:relative;top:-1px;width:20%}";
|
|
4754
|
+
styleInject(css_248z$3);
|
|
4770
4755
|
|
|
4771
4756
|
function hasProperties(type) {
|
|
4772
4757
|
switch (type) {
|
|
@@ -4835,15 +4820,15 @@
|
|
|
4835
4820
|
}
|
|
4836
4821
|
return true;
|
|
4837
4822
|
});
|
|
4838
|
-
var table = element.selectAll("table.property-table.table-"
|
|
4823
|
+
var table = element.selectAll("table.property-table.table-".concat(this.depth())).data(rootWidgets, function (d) {
|
|
4839
4824
|
// We reuse the existing DOM Nodes and this node _might_ have been a regular Input previously ---
|
|
4840
4825
|
if (typeof d.id !== "function") {
|
|
4841
|
-
return "meta-"
|
|
4826
|
+
return "meta-".concat(d.id);
|
|
4842
4827
|
}
|
|
4843
4828
|
return d.id();
|
|
4844
4829
|
});
|
|
4845
4830
|
table.enter().append("table")
|
|
4846
|
-
.attr("class", "property-table table-"
|
|
4831
|
+
.attr("class", "property-table table-".concat(this.depth()))
|
|
4847
4832
|
.each(function () {
|
|
4848
4833
|
var tableElement = common.select(this);
|
|
4849
4834
|
// Header ---
|
|
@@ -4881,7 +4866,7 @@
|
|
|
4881
4866
|
if (this._watch) {
|
|
4882
4867
|
if (window.__hpcc_debug) {
|
|
4883
4868
|
--this.watchDepth;
|
|
4884
|
-
console.
|
|
4869
|
+
console.info("watchDepth: " + this.watchDepth);
|
|
4885
4870
|
}
|
|
4886
4871
|
this._watch.remove();
|
|
4887
4872
|
delete this._watch;
|
|
@@ -4896,7 +4881,7 @@
|
|
|
4896
4881
|
});
|
|
4897
4882
|
if (window.__hpcc_debug) {
|
|
4898
4883
|
++this.watchDepth;
|
|
4899
|
-
console.
|
|
4884
|
+
console.info("watchDepth: " + this.watchDepth);
|
|
4900
4885
|
}
|
|
4901
4886
|
}
|
|
4902
4887
|
};
|
|
@@ -4909,16 +4894,16 @@
|
|
|
4909
4894
|
switch (context.peInputIcon()) {
|
|
4910
4895
|
case "fa-caret-up":
|
|
4911
4896
|
case "fa-caret-right":
|
|
4912
|
-
context.element().selectAll(".table-"
|
|
4897
|
+
context.element().selectAll(".table-".concat(context.depth(), " > tbody > tr > .headerRow > .peInput > .property-table-collapsed"))
|
|
4913
4898
|
.classed("property-table-collapsed", false);
|
|
4914
|
-
context.element().selectAll(".table-"
|
|
4899
|
+
context.element().selectAll(".table-".concat(context.depth(), " > tbody > tr > .headerRow > .peInput > i"))
|
|
4915
4900
|
.classed("fa-minus-square-o", true)
|
|
4916
4901
|
.classed("fa-plus-square-o", false);
|
|
4917
4902
|
break;
|
|
4918
4903
|
case "fa-caret-down":
|
|
4919
|
-
context.element().selectAll(".table-"
|
|
4904
|
+
context.element().selectAll(".table-".concat(context.depth(), " > tbody > tr > .headerRow > .peInput > div"))
|
|
4920
4905
|
.classed("property-table-collapsed", true);
|
|
4921
|
-
context.element().selectAll(".table-"
|
|
4906
|
+
context.element().selectAll(".table-".concat(context.depth(), " > tbody > tr > .headerRow > .peInput > i"))
|
|
4922
4907
|
.classed("fa-minus-square-o", false)
|
|
4923
4908
|
.classed("fa-plus-square-o", true);
|
|
4924
4909
|
break;
|
|
@@ -4957,10 +4942,10 @@
|
|
|
4957
4942
|
this.refreshHideParamsIcon(th.select(".hideParamsIcon"));
|
|
4958
4943
|
};
|
|
4959
4944
|
PropertyEditor.prototype.peInputCount = function () {
|
|
4960
|
-
return this.element().selectAll(".table-"
|
|
4945
|
+
return this.element().selectAll(".table-".concat(this.depth(), " > tbody > tr > .headerRow > .peInput > div")).size();
|
|
4961
4946
|
};
|
|
4962
4947
|
PropertyEditor.prototype.peInputCollapsedCount = function () {
|
|
4963
|
-
return this.element().selectAll(".table-"
|
|
4948
|
+
return this.element().selectAll(".table-".concat(this.depth(), " > tbody > tr > .headerRow > .peInput > div.property-table-collapsed")).size();
|
|
4964
4949
|
};
|
|
4965
4950
|
PropertyEditor.prototype.peInputIcon = function () {
|
|
4966
4951
|
var collapsed = this.peInputCollapsedCount();
|
|
@@ -4974,7 +4959,7 @@
|
|
|
4974
4959
|
};
|
|
4975
4960
|
PropertyEditor.prototype.refreshExpandIcon = function () {
|
|
4976
4961
|
var newIcon = this.peInputIcon();
|
|
4977
|
-
this.element().select(".table-"
|
|
4962
|
+
this.element().select(".table-".concat(this.depth(), " > thead > tr > th > .expandIcon"))
|
|
4978
4963
|
.classed("fa-caret-up", false)
|
|
4979
4964
|
.classed("fa-caret-right", false)
|
|
4980
4965
|
.classed("fa-caret-down", false)
|
|
@@ -5179,9 +5164,9 @@
|
|
|
5179
5164
|
}
|
|
5180
5165
|
var context = this;
|
|
5181
5166
|
element.classed("headerRow", true);
|
|
5182
|
-
var peInput = element.selectAll("div.peInput-"
|
|
5167
|
+
var peInput = element.selectAll("div.peInput-".concat(this.depth())).data(widgetArr, function (d) { return d.id(); });
|
|
5183
5168
|
peInput.enter().append("div")
|
|
5184
|
-
.attr("class", "peInput peInput-"
|
|
5169
|
+
.attr("class", "peInput peInput-".concat(this.depth()))
|
|
5185
5170
|
.each(function (w) {
|
|
5186
5171
|
var peInputElement = common.select(this);
|
|
5187
5172
|
// Header ---
|
|
@@ -5207,7 +5192,7 @@
|
|
|
5207
5192
|
var clickTarget = peInputElement.select("div");
|
|
5208
5193
|
// Header ---
|
|
5209
5194
|
common.select(this).select("span")
|
|
5210
|
-
.text(""
|
|
5195
|
+
.text("".concat(param.id));
|
|
5211
5196
|
common.select(this).select("i")
|
|
5212
5197
|
.classed("fa-minus-square-o", !clickTarget.classed("property-table-collapsed"))
|
|
5213
5198
|
.classed("fa-plus-square-o", clickTarget.classed("property-table-collapsed"));
|
|
@@ -5373,7 +5358,7 @@
|
|
|
5373
5358
|
case "object":
|
|
5374
5359
|
element.property("value", JSON.stringify(val, function replacer(_key, value) {
|
|
5375
5360
|
if (value instanceof common.Widget) {
|
|
5376
|
-
return serialize
|
|
5361
|
+
return serialize(value);
|
|
5377
5362
|
}
|
|
5378
5363
|
return value;
|
|
5379
5364
|
}, " "));
|
|
@@ -5416,8 +5401,8 @@
|
|
|
5416
5401
|
return retVal;
|
|
5417
5402
|
};
|
|
5418
5403
|
|
|
5419
|
-
var css_248z$
|
|
5420
|
-
styleInject(css_248z$
|
|
5404
|
+
var css_248z$2 = ".other_RadioCheckbox label,.other_RadioCheckbox span{vertical-align:top}";
|
|
5405
|
+
styleInject(css_248z$2);
|
|
5421
5406
|
|
|
5422
5407
|
var RadioCheckbox = /** @class */ (function (_super) {
|
|
5423
5408
|
__extends(RadioCheckbox, _super);
|
|
@@ -5510,7 +5495,6 @@
|
|
|
5510
5495
|
}
|
|
5511
5496
|
};
|
|
5512
5497
|
RadioCheckbox.prototype.click = function (row, column, selected) {
|
|
5513
|
-
console.log("Click: " + JSON.stringify(row) + ", " + column + ", " + selected);
|
|
5514
5498
|
};
|
|
5515
5499
|
return RadioCheckbox;
|
|
5516
5500
|
}(common.HTMLWidget));
|
|
@@ -5521,8 +5505,8 @@
|
|
|
5521
5505
|
RadioCheckbox.prototype.publish("sort", null, "set", "Sort contents", ["", "ascending", "descending"], { optional: true });
|
|
5522
5506
|
RadioCheckbox.prototype.publish("multiple", false, "boolean", "Multiple selection");
|
|
5523
5507
|
|
|
5524
|
-
var css_248z$
|
|
5525
|
-
styleInject(css_248z$
|
|
5508
|
+
var css_248z$1 = ".other_Select label,.other_Select span{vertical-align:top}";
|
|
5509
|
+
styleInject(css_248z$1);
|
|
5526
5510
|
|
|
5527
5511
|
var Select = /** @class */ (function (_super) {
|
|
5528
5512
|
__extends(Select, _super);
|
|
@@ -5602,7 +5586,6 @@
|
|
|
5602
5586
|
_super.prototype.exit.call(this, domNode, element);
|
|
5603
5587
|
};
|
|
5604
5588
|
Select.prototype.click = function (row, column, selected) {
|
|
5605
|
-
console.log("Click: " + JSON.stringify(row) + ", " + column + ", " + selected);
|
|
5606
5589
|
};
|
|
5607
5590
|
return Select;
|
|
5608
5591
|
}(common.HTMLWidget));
|
|
@@ -5615,8 +5598,8 @@
|
|
|
5615
5598
|
Select.prototype.publish("multiple", false, "boolean", "Multiple selection");
|
|
5616
5599
|
Select.prototype.publish("selectSize", 5, "number", "Size of multiselect box", null, { disable: function (w) { return !w.multiple(); } });
|
|
5617
5600
|
|
|
5618
|
-
var css_248z
|
|
5619
|
-
styleInject(css_248z
|
|
5601
|
+
var css_248z = ".other_ThemeEditor *{box-sizing:border-box}.other_ThemeEditor table{margin-bottom:4px;width:100%}.other_ThemeEditor table:last-child{margin-bottom:0}.other_ThemeEditor thead>tr>th{text-align:left}.other_ThemeEditor thead>tr>th>b{font-weight:700}.other_ThemeEditor thead>tr>th{background-color:#fafafa}.other_ThemeEditor tbody>tr>td,.other_ThemeEditor tbody>tr>th{background-color:#fafafa;font-weight:400}.other_ThemeEditor thead>tr:first-child>th{background-color:#e5e5e5}.other_ThemeEditor thead>tr.mm-content>th{font-size:12px;padding:0 4px}.other_ThemeEditor td,.other_ThemeEditor th{padding:4px;white-space:nowrap}.other_ThemeEditor thead.mm-label>tr:first-child>th{padding-left:29px;position:relative}.other_ThemeEditor thead.mm-label>tr:first-child>th:before{color:#404040;content:\"[+]\";font-family:monospace;height:15px;left:3px;position:absolute;top:3px;width:15px}.other_ThemeEditor thead.mm-label.max>tr:first-child>th:before{content:\"[-]\"}.other_ThemeEditor tr.sharedPropertyRow>td.label:after{color:#404040;content:\"[+]\";font-family:monospace;height:15px;position:absolute;right:10px;top:3px;width:15px}.other_ThemeEditor tr.sharedPropertyRow>td.label.expanded:after{content:\"[-]\"}.other_ThemeEditor tr.sharedPropertyRow>td.label{padding-right:30px;position:relative;text-decoration:underline}.other_ThemeEditor tr.sharedPropertyRow>td.label:hover{cursor:pointer;text-decoration:none}.other_ThemeEditor tr.propertyRow>td,.other_ThemeEditor tr.propertyRow>th{background-color:#f4f4f4}.other_ThemeEditor tr.propertyRow>td.label{padding-left:24px}.other_ThemeEditor table,.other_ThemeEditor td,.other_ThemeEditor th{border:1px solid #e5e5e5}.other_ThemeEditor .mm-label.min .mm-content,.other_ThemeEditor .mm-label.min+.mm-content{display:none}.mm-label:hover,.other_ThemeEditor .sharedPropertyRow>.te-label{cursor:pointer}.other_ThemeEditor .sharedPropertyRow>.te-label:hover{text-decoration:none}.other_ThemeEditor .propertyRow.shown>.te-label{padding-left:15px}.other_ThemeEditor .propertyRow>td{background-color:#f4f4f4}.other_ThemeEditor input,.other_ThemeEditor select,.other_ThemeEditor textarea{float:left;height:30px}.other_ThemeEditor input,.other_ThemeEditor select{width:150px}.other_ThemeEditor .te-checkbox{height:20px;margin:0;width:20px}.other_ThemeEditor .te-html-color-input{height:30px;width:120px}.other_ThemeEditor .te-html-color-button{width:30px}.other_ThemeEditor .te-html-color-button,.other_ThemeEditor button{background-color:#ccc;border:1px solid #a9a9a9;border-left:0;float:left;height:30px;padding:4px}.other_ThemeEditor .te-html-color-button,.other_ThemeEditor .te-section-table thead,.other_ThemeEditor button{cursor:pointer}.other_ThemeEditor .te-html-color-button:hover,.other_ThemeEditor button:hover{background-color:#bbb}.other_ThemeEditor .te-html-color-button:active,.other_ThemeEditor button:active{background-color:#aaa}.other_ThemeEditor .te-label{vertical-align:top;white-space:nowrap;width:1%}.other_ThemeEditor .te-section-table>tbody>tr:hover{background-color:#f8ff98}.te-section-table thead th{font-weight:700}.te-section-table.expanded>thead>tr>th:after{content:\"\";float:right;font:normal normal normal 14px/1 FontAwesome;margin-right:6px;margin-top:4px}.te-section-table.collapsed>thead>tr>th:after{content:\"\";float:right;font:normal normal normal 14px/1 FontAwesome;margin-right:6px;margin-top:4px}#te-tableModeOptions thead>tr>th,#te-themeEditorOptions thead>tr>th{background-color:#6e6e73;border:1px solid #6e6e73;color:#fafafa}";
|
|
5602
|
+
styleInject(css_248z);
|
|
5620
5603
|
|
|
5621
5604
|
function hasLocalStorage() {
|
|
5622
5605
|
var mod = "@hpcc-js/other";
|
|
@@ -6344,5 +6327,5 @@
|
|
|
6344
6327
|
|
|
6345
6328
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
6346
6329
|
|
|
6347
|
-
}))
|
|
6330
|
+
}));
|
|
6348
6331
|
//# sourceMappingURL=index.js.map
|