@hpcc-js/other 3.2.10 → 3.2.11
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.js +467 -455
- package/dist/index.js.map +1 -1
- package/dist/index.umd.cjs +1 -1
- package/dist/index.umd.cjs.map +1 -1
- package/package.json +6 -6
package/dist/index.js
CHANGED
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
var __defProp = Object.defineProperty;
|
|
2
|
-
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3
2
|
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
|
|
4
|
-
var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
5
3
|
var _a;
|
|
6
4
|
import { HTMLWidget, Utility, Palette, timeParse, format, select, map, extent, range, CanvasWidget, SVGWidget, Entity, d3Event, Widget, Platform, selectAll, PropertyExt, local } from "@hpcc-js/common";
|
|
7
5
|
import { HorizontalList, VerticalList, Grid } from "@hpcc-js/layout";
|
|
@@ -128,9 +126,9 @@ function sleep(time) {
|
|
|
128
126
|
}
|
|
129
127
|
__name(sleep, "sleep");
|
|
130
128
|
const _Audio = class _Audio extends HTMLWidget {
|
|
129
|
+
_sections;
|
|
131
130
|
constructor() {
|
|
132
131
|
super();
|
|
133
|
-
__publicField(this, "_sections");
|
|
134
132
|
this._tag = "audio";
|
|
135
133
|
this._sections = {};
|
|
136
134
|
}
|
|
@@ -204,257 +202,264 @@ function getDefaultExportFromCjs(x) {
|
|
|
204
202
|
}
|
|
205
203
|
__name(getDefaultExportFromCjs, "getDefaultExportFromCjs");
|
|
206
204
|
var autoComplete = { exports: {} };
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
var elems = typeof o.selector == "object" ? [o.selector] : document.querySelectorAll(o.selector);
|
|
254
|
-
for (var i = 0; i < elems.length; i++) {
|
|
255
|
-
var that = elems[i];
|
|
256
|
-
that.sc = document.createElement("div");
|
|
257
|
-
that.sc.className = "autocomplete-suggestions " + o.menuClass;
|
|
258
|
-
that.autocompleteAttr = that.getAttribute("autocomplete");
|
|
259
|
-
that.setAttribute("autocomplete", "off");
|
|
260
|
-
that.cache = {};
|
|
261
|
-
that.last_val = "";
|
|
262
|
-
that.updateSC = function(resize, next) {
|
|
263
|
-
var rect = that.getBoundingClientRect();
|
|
264
|
-
that.sc.style.left = Math.round(rect.left + (window.pageXOffset || document.documentElement.scrollLeft) + o.offsetLeft) + "px";
|
|
265
|
-
that.sc.style.top = Math.round(rect.bottom + (window.pageYOffset || document.documentElement.scrollTop) + o.offsetTop) + "px";
|
|
266
|
-
that.sc.style.width = Math.round(rect.right - rect.left) + "px";
|
|
267
|
-
if (!resize) {
|
|
268
|
-
that.sc.style.display = "block";
|
|
269
|
-
that.sc.classList.remove("hide");
|
|
270
|
-
if (!that.sc.maxHeight) {
|
|
271
|
-
that.sc.maxHeight = parseInt((window.getComputedStyle ? getComputedStyle(that.sc, null) : that.sc.currentStyle).maxHeight);
|
|
272
|
-
}
|
|
273
|
-
if (!that.sc.suggestionHeight) that.sc.suggestionHeight = that.sc.querySelector(".autocomplete-suggestion").offsetHeight;
|
|
274
|
-
if (that.sc.suggestionHeight)
|
|
275
|
-
if (!next) that.sc.scrollTop = 0;
|
|
276
|
-
else {
|
|
277
|
-
var scrTop = that.sc.scrollTop, selTop = next.getBoundingClientRect().top - that.sc.getBoundingClientRect().top;
|
|
278
|
-
if (selTop + that.sc.suggestionHeight - that.sc.maxHeight > 0)
|
|
279
|
-
that.sc.scrollTop = selTop + that.sc.suggestionHeight + scrTop - that.sc.maxHeight;
|
|
280
|
-
else if (selTop < 0)
|
|
281
|
-
that.sc.scrollTop = selTop + scrTop;
|
|
282
|
-
}
|
|
283
|
-
}
|
|
205
|
+
var hasRequiredAutoComplete;
|
|
206
|
+
function requireAutoComplete() {
|
|
207
|
+
if (hasRequiredAutoComplete) return autoComplete.exports;
|
|
208
|
+
hasRequiredAutoComplete = 1;
|
|
209
|
+
(function(module) {
|
|
210
|
+
var autoComplete2 = /* @__PURE__ */ (function() {
|
|
211
|
+
function autoComplete3(options) {
|
|
212
|
+
if (!document.querySelector) return;
|
|
213
|
+
function hasClass(el, className) {
|
|
214
|
+
return el.classList ? el.classList.contains(className) : new RegExp("\\b" + className + "\\b").test(el.className);
|
|
215
|
+
}
|
|
216
|
+
__name(hasClass, "hasClass");
|
|
217
|
+
function addEvent(el, type, handler) {
|
|
218
|
+
if (el.attachEvent) el.attachEvent("on" + type, handler);
|
|
219
|
+
else el.addEventListener(type, handler);
|
|
220
|
+
}
|
|
221
|
+
__name(addEvent, "addEvent");
|
|
222
|
+
function removeEvent(el, type, handler) {
|
|
223
|
+
if (el.detachEvent) el.detachEvent("on" + type, handler);
|
|
224
|
+
else el.removeEventListener(type, handler);
|
|
225
|
+
}
|
|
226
|
+
__name(removeEvent, "removeEvent");
|
|
227
|
+
function live(elClass, event, cb, context) {
|
|
228
|
+
addEvent(context || document, event, function(e) {
|
|
229
|
+
var found, el = e.target || e.srcElement;
|
|
230
|
+
while (el && !(found = hasClass(el, elClass))) el = el.parentElement;
|
|
231
|
+
if (found) cb.call(el, e);
|
|
232
|
+
});
|
|
233
|
+
}
|
|
234
|
+
__name(live, "live");
|
|
235
|
+
var o = {
|
|
236
|
+
selector: 0,
|
|
237
|
+
source: 0,
|
|
238
|
+
minChars: 3,
|
|
239
|
+
delay: 150,
|
|
240
|
+
offsetLeft: 0,
|
|
241
|
+
offsetTop: 1,
|
|
242
|
+
cache: 1,
|
|
243
|
+
menuClass: "",
|
|
244
|
+
renderItem: /* @__PURE__ */ __name(function(item, search) {
|
|
245
|
+
search = search.replace(/[-\/\\^$*+?.()|[\]{}]/g, "\\$&");
|
|
246
|
+
var re = new RegExp("(" + search.split(" ").join("|") + ")", "gi");
|
|
247
|
+
return '<div class="autocomplete-suggestion" data-val="' + item + '">' + item.replace(re, "<b>$1</b>") + "</div>";
|
|
248
|
+
}, "renderItem"),
|
|
249
|
+
onSelect: /* @__PURE__ */ __name(function(e, term, item) {
|
|
250
|
+
}, "onSelect")
|
|
284
251
|
};
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
that.
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
252
|
+
for (var k in options) {
|
|
253
|
+
if (options.hasOwnProperty(k)) o[k] = options[k];
|
|
254
|
+
}
|
|
255
|
+
var elems = typeof o.selector == "object" ? [o.selector] : document.querySelectorAll(o.selector);
|
|
256
|
+
for (var i = 0; i < elems.length; i++) {
|
|
257
|
+
var that = elems[i];
|
|
258
|
+
that.sc = document.createElement("div");
|
|
259
|
+
that.sc.className = "autocomplete-suggestions " + o.menuClass;
|
|
260
|
+
that.autocompleteAttr = that.getAttribute("autocomplete");
|
|
261
|
+
that.setAttribute("autocomplete", "off");
|
|
262
|
+
that.cache = {};
|
|
263
|
+
that.last_val = "";
|
|
264
|
+
that.updateSC = function(resize, next) {
|
|
265
|
+
var rect = that.getBoundingClientRect();
|
|
266
|
+
that.sc.style.left = Math.round(rect.left + (window.pageXOffset || document.documentElement.scrollLeft) + o.offsetLeft) + "px";
|
|
267
|
+
that.sc.style.top = Math.round(rect.bottom + (window.pageYOffset || document.documentElement.scrollTop) + o.offsetTop) + "px";
|
|
268
|
+
that.sc.style.width = Math.round(rect.right - rect.left) + "px";
|
|
269
|
+
if (!resize) {
|
|
270
|
+
that.sc.style.display = "block";
|
|
271
|
+
that.sc.classList.remove("hide");
|
|
272
|
+
if (!that.sc.maxHeight) {
|
|
273
|
+
that.sc.maxHeight = parseInt((window.getComputedStyle ? getComputedStyle(that.sc, null) : that.sc.currentStyle).maxHeight);
|
|
274
|
+
}
|
|
275
|
+
if (!that.sc.suggestionHeight) that.sc.suggestionHeight = that.sc.querySelector(".autocomplete-suggestion").offsetHeight;
|
|
276
|
+
if (that.sc.suggestionHeight)
|
|
277
|
+
if (!next) that.sc.scrollTop = 0;
|
|
278
|
+
else {
|
|
279
|
+
var scrTop = that.sc.scrollTop, selTop = next.getBoundingClientRect().top - that.sc.getBoundingClientRect().top;
|
|
280
|
+
if (selTop + that.sc.suggestionHeight - that.sc.maxHeight > 0)
|
|
281
|
+
that.sc.scrollTop = selTop + that.sc.suggestionHeight + scrTop - that.sc.maxHeight;
|
|
282
|
+
else if (selTop < 0)
|
|
283
|
+
that.sc.scrollTop = selTop + scrTop;
|
|
284
|
+
}
|
|
285
|
+
}
|
|
286
|
+
};
|
|
287
|
+
addEvent(window, "resize", that.updateSC);
|
|
288
|
+
document.body.appendChild(that.sc);
|
|
289
|
+
live("autocomplete-suggestion", "mouseleave", function(e) {
|
|
290
|
+
var sel = that.sc.querySelector(".autocomplete-suggestion.selected");
|
|
291
|
+
if (sel) setTimeout(function() {
|
|
292
|
+
sel.className = sel.className.replace("selected", "");
|
|
293
|
+
}, 20);
|
|
294
|
+
}, that.sc);
|
|
295
|
+
live("autocomplete-suggestion", "mouseover", function(e) {
|
|
296
|
+
var sel = that.sc.querySelector(".autocomplete-suggestion.selected");
|
|
297
|
+
if (sel) sel.className = sel.className.replace("selected", "");
|
|
298
|
+
this.className += " selected";
|
|
299
|
+
}, that.sc);
|
|
300
|
+
live("autocomplete-suggestion", "mousedown", function(e) {
|
|
301
|
+
if (hasClass(this, "autocomplete-suggestion")) {
|
|
302
|
+
var v = this.getAttribute("data-val");
|
|
303
|
+
that.value = v;
|
|
304
|
+
o.onSelect(e, v, this);
|
|
318
305
|
that.sc.style.display = "none";
|
|
319
306
|
that.sc.classList.add("hide");
|
|
320
|
-
}, 350);
|
|
321
|
-
} else if (that !== document.activeElement) setTimeout(function() {
|
|
322
|
-
that.focus();
|
|
323
|
-
}, 20);
|
|
324
|
-
};
|
|
325
|
-
addEvent(that, "blur", that.blurHandler);
|
|
326
|
-
var suggest = /* @__PURE__ */ __name(function(data, val) {
|
|
327
|
-
if (!val) {
|
|
328
|
-
var val = that.value;
|
|
329
|
-
}
|
|
330
|
-
that.cache[val] = data;
|
|
331
|
-
if (data.length && val.length >= o.minChars) {
|
|
332
|
-
var s = "";
|
|
333
|
-
for (var i2 = 0; i2 < data.length; i2++) s += o.renderItem(data[i2], val);
|
|
334
|
-
that.sc.innerHTML = s;
|
|
335
|
-
that.updateSC(0);
|
|
336
|
-
} else {
|
|
337
|
-
that.sc.style.display = "none";
|
|
338
|
-
that.sc.classList.add("hide");
|
|
339
|
-
}
|
|
340
|
-
}, "suggest");
|
|
341
|
-
that.keydownHandler = function(e) {
|
|
342
|
-
var key = window.event ? e.keyCode : e.which;
|
|
343
|
-
if ((key == 40 || key == 38) && that.sc.innerHTML) {
|
|
344
|
-
var next, sel = that.sc.querySelector(".autocomplete-suggestion.selected");
|
|
345
|
-
if (!sel) {
|
|
346
|
-
next = key == 40 ? that.sc.querySelector(".autocomplete-suggestion") : that.sc.childNodes[that.sc.childNodes.length - 1];
|
|
347
|
-
next.className += " selected";
|
|
348
|
-
that.value = next.getAttribute("data-val");
|
|
349
|
-
} else {
|
|
350
|
-
next = key == 40 ? sel.nextSibling : sel.previousSibling;
|
|
351
|
-
if (next) {
|
|
352
|
-
sel.className = sel.className.replace("selected", "");
|
|
353
|
-
next.className += " selected";
|
|
354
|
-
that.value = next.getAttribute("data-val");
|
|
355
|
-
} else {
|
|
356
|
-
sel.className = sel.className.replace("selected", "");
|
|
357
|
-
that.value = that.last_val;
|
|
358
|
-
next = 0;
|
|
359
|
-
}
|
|
360
307
|
}
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
} else if (key == 13 || key == 9) {
|
|
368
|
-
if (that.sc.style.display !== "none") {
|
|
369
|
-
e.preventDefault();
|
|
308
|
+
}, that.sc);
|
|
309
|
+
that.blurHandler = function() {
|
|
310
|
+
try {
|
|
311
|
+
var over_sb = document.querySelector(".autocomplete-suggestions:hover");
|
|
312
|
+
} catch (e) {
|
|
313
|
+
var over_sb = 0;
|
|
370
314
|
}
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
315
|
+
if (!over_sb) {
|
|
316
|
+
that.last_val = that.value;
|
|
317
|
+
that.sc.style.display = "none";
|
|
318
|
+
that.sc.classList.add("hide");
|
|
374
319
|
setTimeout(function() {
|
|
375
320
|
that.sc.style.display = "none";
|
|
376
321
|
that.sc.classList.add("hide");
|
|
377
|
-
},
|
|
322
|
+
}, 350);
|
|
323
|
+
} else if (that !== document.activeElement) setTimeout(function() {
|
|
324
|
+
that.focus();
|
|
325
|
+
}, 20);
|
|
326
|
+
};
|
|
327
|
+
addEvent(that, "blur", that.blurHandler);
|
|
328
|
+
var suggest = /* @__PURE__ */ __name(function(data, val) {
|
|
329
|
+
if (!val) {
|
|
330
|
+
var val = that.value;
|
|
378
331
|
}
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
332
|
+
that.cache[val] = data;
|
|
333
|
+
if (data.length && val.length >= o.minChars) {
|
|
334
|
+
var s = "";
|
|
335
|
+
for (var i2 = 0; i2 < data.length; i2++) s += o.renderItem(data[i2], val);
|
|
336
|
+
that.sc.innerHTML = s;
|
|
337
|
+
that.updateSC(0);
|
|
338
|
+
} else {
|
|
339
|
+
that.sc.style.display = "none";
|
|
340
|
+
that.sc.classList.add("hide");
|
|
341
|
+
}
|
|
342
|
+
}, "suggest");
|
|
343
|
+
that.keydownHandler = function(e) {
|
|
344
|
+
var key = window.event ? e.keyCode : e.which;
|
|
345
|
+
if ((key == 40 || key == 38) && that.sc.innerHTML) {
|
|
346
|
+
var next, sel = that.sc.querySelector(".autocomplete-suggestion.selected");
|
|
347
|
+
if (!sel) {
|
|
348
|
+
next = key == 40 ? that.sc.querySelector(".autocomplete-suggestion") : that.sc.childNodes[that.sc.childNodes.length - 1];
|
|
349
|
+
next.className += " selected";
|
|
350
|
+
that.value = next.getAttribute("data-val");
|
|
351
|
+
} else {
|
|
352
|
+
next = key == 40 ? sel.nextSibling : sel.previousSibling;
|
|
353
|
+
if (next) {
|
|
354
|
+
sel.className = sel.className.replace("selected", "");
|
|
355
|
+
next.className += " selected";
|
|
356
|
+
that.value = next.getAttribute("data-val");
|
|
357
|
+
} else {
|
|
358
|
+
sel.className = sel.className.replace("selected", "");
|
|
359
|
+
that.value = that.last_val;
|
|
360
|
+
next = 0;
|
|
361
|
+
}
|
|
362
|
+
}
|
|
363
|
+
that.updateSC(0, next);
|
|
364
|
+
return false;
|
|
365
|
+
} else if (key == 27) {
|
|
366
|
+
that.value = that.last_val;
|
|
367
|
+
that.sc.style.display = "none";
|
|
368
|
+
that.sc.classList.add("hide");
|
|
369
|
+
} else if (key == 13 || key == 9) {
|
|
370
|
+
if (that.sc.style.display !== "none") {
|
|
371
|
+
e.preventDefault();
|
|
372
|
+
}
|
|
373
|
+
var sel = that.sc.querySelector(".autocomplete-suggestion.selected");
|
|
374
|
+
if (sel && that.sc.style.display != "none") {
|
|
375
|
+
o.onSelect(e, sel.getAttribute("data-val"), sel);
|
|
376
|
+
setTimeout(function() {
|
|
377
|
+
that.sc.style.display = "none";
|
|
378
|
+
that.sc.classList.add("hide");
|
|
379
|
+
}, 20);
|
|
380
|
+
}
|
|
381
|
+
}
|
|
382
|
+
};
|
|
383
|
+
addEvent(that, "keydown", that.keydownHandler);
|
|
384
|
+
that.keyupHandler = function(e) {
|
|
385
|
+
var key = window.event ? e.keyCode : e.which;
|
|
386
|
+
if (!key || (key < 35 || key > 40) && key != 13 && key != 27) {
|
|
387
|
+
var val = that.value;
|
|
388
|
+
if (val.length >= o.minChars) {
|
|
389
|
+
if (val != that.last_val) {
|
|
390
|
+
that.last_val = val;
|
|
391
|
+
clearTimeout(that.timer);
|
|
392
|
+
if (o.cache) {
|
|
393
|
+
if (val in that.cache) {
|
|
394
|
+
suggest(that.cache[val]);
|
|
399
395
|
return;
|
|
400
396
|
}
|
|
397
|
+
for (var i2 = 1; i2 < val.length - o.minChars; i2++) {
|
|
398
|
+
var part = val.slice(0, val.length - i2);
|
|
399
|
+
if (part in that.cache && !that.cache[part].length) {
|
|
400
|
+
suggest([]);
|
|
401
|
+
return;
|
|
402
|
+
}
|
|
403
|
+
}
|
|
401
404
|
}
|
|
405
|
+
that.timer = setTimeout(function() {
|
|
406
|
+
o.source(val, suggest);
|
|
407
|
+
}, o.delay);
|
|
402
408
|
}
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
409
|
+
} else {
|
|
410
|
+
that.last_val = val;
|
|
411
|
+
that.sc.style.display = "none";
|
|
412
|
+
that.sc.classList.add("hide");
|
|
406
413
|
}
|
|
407
|
-
} else {
|
|
408
|
-
that.last_val = val;
|
|
409
|
-
that.sc.style.display = "none";
|
|
410
|
-
that.sc.classList.add("hide");
|
|
411
414
|
}
|
|
415
|
+
};
|
|
416
|
+
addEvent(that, "keyup", that.keyupHandler);
|
|
417
|
+
that.focusHandler = function(e) {
|
|
418
|
+
that.last_val = "\n";
|
|
419
|
+
that.keyupHandler(e);
|
|
420
|
+
};
|
|
421
|
+
if (!o.minChars) addEvent(that, "focus", that.focusHandler);
|
|
422
|
+
}
|
|
423
|
+
this.destroy = function() {
|
|
424
|
+
for (var i2 = 0; i2 < elems.length; i2++) {
|
|
425
|
+
var that2 = elems[i2];
|
|
426
|
+
removeEvent(window, "resize", that2.updateSC);
|
|
427
|
+
removeEvent(that2, "blur", that2.blurHandler);
|
|
428
|
+
removeEvent(that2, "focus", that2.focusHandler);
|
|
429
|
+
removeEvent(that2, "keydown", that2.keydownHandler);
|
|
430
|
+
removeEvent(that2, "keyup", that2.keyupHandler);
|
|
431
|
+
if (that2.autocompleteAttr)
|
|
432
|
+
that2.setAttribute("autocomplete", that2.autocompleteAttr);
|
|
433
|
+
else
|
|
434
|
+
that2.removeAttribute("autocomplete");
|
|
435
|
+
document.body.removeChild(that2.sc);
|
|
436
|
+
that2 = null;
|
|
412
437
|
}
|
|
413
438
|
};
|
|
414
|
-
addEvent(that, "keyup", that.keyupHandler);
|
|
415
|
-
that.focusHandler = function(e) {
|
|
416
|
-
that.last_val = "\n";
|
|
417
|
-
that.keyupHandler(e);
|
|
418
|
-
};
|
|
419
|
-
if (!o.minChars) addEvent(that, "focus", that.focusHandler);
|
|
420
439
|
}
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
}
|
|
436
|
-
};
|
|
437
|
-
}
|
|
438
|
-
__name(autoComplete3, "autoComplete");
|
|
439
|
-
return autoComplete3;
|
|
440
|
-
}();
|
|
441
|
-
(function() {
|
|
442
|
-
if (module.exports)
|
|
443
|
-
module.exports = autoComplete2;
|
|
444
|
-
else
|
|
445
|
-
window.autoComplete = autoComplete2;
|
|
446
|
-
})();
|
|
447
|
-
})(autoComplete);
|
|
448
|
-
var autoCompleteExports = autoComplete.exports;
|
|
440
|
+
__name(autoComplete3, "autoComplete");
|
|
441
|
+
return autoComplete3;
|
|
442
|
+
})();
|
|
443
|
+
(function() {
|
|
444
|
+
if (module.exports)
|
|
445
|
+
module.exports = autoComplete2;
|
|
446
|
+
else
|
|
447
|
+
window.autoComplete = autoComplete2;
|
|
448
|
+
})();
|
|
449
|
+
})(autoComplete);
|
|
450
|
+
return autoComplete.exports;
|
|
451
|
+
}
|
|
452
|
+
__name(requireAutoComplete, "requireAutoComplete");
|
|
453
|
+
var autoCompleteExports = requireAutoComplete();
|
|
449
454
|
const AutoComplete = /* @__PURE__ */ getDefaultExportFromCjs(autoCompleteExports);
|
|
450
455
|
const _AutoCompleteText = class _AutoCompleteText extends HTMLWidget {
|
|
456
|
+
_span;
|
|
457
|
+
_prompt;
|
|
458
|
+
_input;
|
|
459
|
+
_prevMinCharsText;
|
|
460
|
+
_autoComplete;
|
|
451
461
|
constructor() {
|
|
452
462
|
super();
|
|
453
|
-
__publicField(this, "_span");
|
|
454
|
-
__publicField(this, "_prompt");
|
|
455
|
-
__publicField(this, "_input");
|
|
456
|
-
__publicField(this, "_prevMinCharsText");
|
|
457
|
-
__publicField(this, "_autoComplete");
|
|
458
463
|
this._tag = "div";
|
|
459
464
|
}
|
|
460
465
|
autoCompleteTextData() {
|
|
@@ -675,14 +680,14 @@ year.every = function(k) {
|
|
|
675
680
|
};
|
|
676
681
|
year.range;
|
|
677
682
|
const _CalendarHeatMap = class _CalendarHeatMap extends HTMLWidget {
|
|
683
|
+
_prevDateColumn;
|
|
684
|
+
_prevAggrType;
|
|
685
|
+
_prevAggrColumn;
|
|
686
|
+
_prevAggrDeltaColumn;
|
|
687
|
+
_view;
|
|
688
|
+
_parentNode;
|
|
678
689
|
constructor() {
|
|
679
690
|
super();
|
|
680
|
-
__publicField(this, "_prevDateColumn");
|
|
681
|
-
__publicField(this, "_prevAggrType");
|
|
682
|
-
__publicField(this, "_prevAggrColumn");
|
|
683
|
-
__publicField(this, "_prevAggrDeltaColumn");
|
|
684
|
-
__publicField(this, "_view");
|
|
685
|
-
__publicField(this, "_parentNode");
|
|
686
691
|
Utility.SimpleSelectionMixin.call(this);
|
|
687
692
|
}
|
|
688
693
|
calendarData() {
|
|
@@ -857,16 +862,16 @@ function espRowFix(row) {
|
|
|
857
862
|
}
|
|
858
863
|
__name(espRowFix, "espRowFix");
|
|
859
864
|
const _ESPUrl = class _ESPUrl {
|
|
865
|
+
_protocol = "http:";
|
|
866
|
+
_hostname = "localhost";
|
|
867
|
+
_url;
|
|
868
|
+
_port;
|
|
869
|
+
_search;
|
|
870
|
+
_pathname;
|
|
871
|
+
_params;
|
|
872
|
+
_hash;
|
|
873
|
+
_host;
|
|
860
874
|
constructor() {
|
|
861
|
-
__publicField(this, "_protocol", "http:");
|
|
862
|
-
__publicField(this, "_hostname", "localhost");
|
|
863
|
-
__publicField(this, "_url");
|
|
864
|
-
__publicField(this, "_port");
|
|
865
|
-
__publicField(this, "_search");
|
|
866
|
-
__publicField(this, "_pathname");
|
|
867
|
-
__publicField(this, "_params");
|
|
868
|
-
__publicField(this, "_hash");
|
|
869
|
-
__publicField(this, "_host");
|
|
870
875
|
}
|
|
871
876
|
url(_) {
|
|
872
877
|
if (!arguments.length) return this._url;
|
|
@@ -1047,13 +1052,13 @@ let jsonp = /* @__PURE__ */ __name(function(url, request, timeout2) {
|
|
|
1047
1052
|
});
|
|
1048
1053
|
}, "jsonp");
|
|
1049
1054
|
const _Comms = class _Comms extends ESPUrl {
|
|
1055
|
+
_proxyMappings;
|
|
1056
|
+
_mappings;
|
|
1057
|
+
_timeout;
|
|
1058
|
+
_hipieResults;
|
|
1059
|
+
_hipieResultsLength;
|
|
1050
1060
|
constructor() {
|
|
1051
1061
|
super();
|
|
1052
|
-
__publicField(this, "_proxyMappings");
|
|
1053
|
-
__publicField(this, "_mappings");
|
|
1054
|
-
__publicField(this, "_timeout");
|
|
1055
|
-
__publicField(this, "_hipieResults");
|
|
1056
|
-
__publicField(this, "_hipieResultsLength");
|
|
1057
1062
|
this._proxyMappings = {};
|
|
1058
1063
|
this._mappings = new ESPMappings({});
|
|
1059
1064
|
this._timeout = TIMEOUT_DEFAULT;
|
|
@@ -1139,9 +1144,9 @@ const _Comms = class _Comms extends ESPUrl {
|
|
|
1139
1144
|
__name(_Comms, "Comms");
|
|
1140
1145
|
let Comms = _Comms;
|
|
1141
1146
|
const _Basic = class _Basic extends Comms {
|
|
1147
|
+
_cacheCalls;
|
|
1142
1148
|
constructor() {
|
|
1143
1149
|
super();
|
|
1144
|
-
__publicField(this, "_cacheCalls");
|
|
1145
1150
|
}
|
|
1146
1151
|
cacheCalls(_) {
|
|
1147
1152
|
if (!arguments.length) return this._cacheCalls;
|
|
@@ -1216,10 +1221,10 @@ function locateRoxieException(response) {
|
|
|
1216
1221
|
}
|
|
1217
1222
|
__name(locateRoxieException, "locateRoxieException");
|
|
1218
1223
|
const _WsECL = class _WsECL extends Comms {
|
|
1224
|
+
_target;
|
|
1225
|
+
_query;
|
|
1219
1226
|
constructor() {
|
|
1220
1227
|
super();
|
|
1221
|
-
__publicField(this, "_target");
|
|
1222
|
-
__publicField(this, "_query");
|
|
1223
1228
|
this._port = "8002";
|
|
1224
1229
|
this._target = "";
|
|
1225
1230
|
this._query = "";
|
|
@@ -1310,17 +1315,17 @@ const _WsECL = class _WsECL extends Comms {
|
|
|
1310
1315
|
__name(_WsECL, "WsECL");
|
|
1311
1316
|
let WsECL = _WsECL;
|
|
1312
1317
|
let WsWorkunits$1 = (_a = class extends Comms {
|
|
1318
|
+
_wuid = "";
|
|
1319
|
+
_jobname = "";
|
|
1320
|
+
_sequence = null;
|
|
1321
|
+
_resultName = null;
|
|
1322
|
+
_fetchResultNamesPromise = null;
|
|
1323
|
+
_fetchResultPromise = {};
|
|
1324
|
+
_resultNameCache = {};
|
|
1325
|
+
_resultNameCacheCount = 0;
|
|
1326
|
+
_total;
|
|
1313
1327
|
constructor() {
|
|
1314
1328
|
super();
|
|
1315
|
-
__publicField(this, "_wuid", "");
|
|
1316
|
-
__publicField(this, "_jobname", "");
|
|
1317
|
-
__publicField(this, "_sequence", null);
|
|
1318
|
-
__publicField(this, "_resultName", null);
|
|
1319
|
-
__publicField(this, "_fetchResultNamesPromise", null);
|
|
1320
|
-
__publicField(this, "_fetchResultPromise", {});
|
|
1321
|
-
__publicField(this, "_resultNameCache", {});
|
|
1322
|
-
__publicField(this, "_resultNameCacheCount", 0);
|
|
1323
|
-
__publicField(this, "_total");
|
|
1324
1329
|
this._port = "8010";
|
|
1325
1330
|
}
|
|
1326
1331
|
url(_) {
|
|
@@ -2216,107 +2221,114 @@ function flattenResult(result, mappings) {
|
|
|
2216
2221
|
}
|
|
2217
2222
|
__name(flattenResult, "flattenResult");
|
|
2218
2223
|
var simpleheat$2 = { exports: {} };
|
|
2219
|
-
|
|
2220
|
-
|
|
2221
|
-
|
|
2222
|
-
|
|
2223
|
-
|
|
2224
|
-
|
|
2225
|
-
|
|
2226
|
-
|
|
2227
|
-
|
|
2228
|
-
|
|
2229
|
-
|
|
2230
|
-
|
|
2231
|
-
|
|
2232
|
-
defaultRadius: 25,
|
|
2233
|
-
defaultGradient: {
|
|
2234
|
-
0.4: "blue",
|
|
2235
|
-
0.6: "cyan",
|
|
2236
|
-
0.7: "lime",
|
|
2237
|
-
0.8: "yellow",
|
|
2238
|
-
1: "red"
|
|
2239
|
-
},
|
|
2240
|
-
data: /* @__PURE__ */ __name(function(data) {
|
|
2241
|
-
this._data = data;
|
|
2242
|
-
return this;
|
|
2243
|
-
}, "data"),
|
|
2244
|
-
max: /* @__PURE__ */ __name(function(max) {
|
|
2245
|
-
this._max = max;
|
|
2246
|
-
return this;
|
|
2247
|
-
}, "max"),
|
|
2248
|
-
add: /* @__PURE__ */ __name(function(point) {
|
|
2249
|
-
this._data.push(point);
|
|
2250
|
-
return this;
|
|
2251
|
-
}, "add"),
|
|
2252
|
-
clear: /* @__PURE__ */ __name(function() {
|
|
2224
|
+
var hasRequiredSimpleheat;
|
|
2225
|
+
function requireSimpleheat() {
|
|
2226
|
+
if (hasRequiredSimpleheat) return simpleheat$2.exports;
|
|
2227
|
+
hasRequiredSimpleheat = 1;
|
|
2228
|
+
(function(module) {
|
|
2229
|
+
module.exports = simpleheat2;
|
|
2230
|
+
function simpleheat2(canvas) {
|
|
2231
|
+
if (!(this instanceof simpleheat2)) return new simpleheat2(canvas);
|
|
2232
|
+
this._canvas = canvas = typeof canvas === "string" ? document.getElementById(canvas) : canvas;
|
|
2233
|
+
this._ctx = canvas.getContext("2d");
|
|
2234
|
+
this._width = canvas.width;
|
|
2235
|
+
this._height = canvas.height;
|
|
2236
|
+
this._max = 1;
|
|
2253
2237
|
this._data = [];
|
|
2254
|
-
|
|
2255
|
-
|
|
2256
|
-
|
|
2257
|
-
|
|
2258
|
-
|
|
2259
|
-
|
|
2260
|
-
|
|
2261
|
-
|
|
2262
|
-
|
|
2263
|
-
|
|
2264
|
-
|
|
2265
|
-
|
|
2266
|
-
|
|
2267
|
-
|
|
2268
|
-
|
|
2269
|
-
|
|
2270
|
-
|
|
2271
|
-
|
|
2272
|
-
|
|
2273
|
-
|
|
2274
|
-
|
|
2275
|
-
|
|
2276
|
-
|
|
2277
|
-
|
|
2278
|
-
|
|
2279
|
-
|
|
2280
|
-
|
|
2281
|
-
|
|
2282
|
-
|
|
2283
|
-
|
|
2284
|
-
|
|
2285
|
-
|
|
2286
|
-
|
|
2287
|
-
|
|
2288
|
-
|
|
2289
|
-
|
|
2290
|
-
|
|
2291
|
-
|
|
2292
|
-
|
|
2293
|
-
|
|
2294
|
-
|
|
2295
|
-
|
|
2296
|
-
|
|
2297
|
-
|
|
2298
|
-
|
|
2299
|
-
|
|
2300
|
-
|
|
2301
|
-
|
|
2302
|
-
|
|
2303
|
-
|
|
2304
|
-
pixels[i] = gradient[j];
|
|
2305
|
-
pixels[i + 1] = gradient[j + 1];
|
|
2306
|
-
pixels[i + 2] = gradient[j + 2];
|
|
2238
|
+
}
|
|
2239
|
+
__name(simpleheat2, "simpleheat");
|
|
2240
|
+
simpleheat2.prototype = {
|
|
2241
|
+
defaultRadius: 25,
|
|
2242
|
+
defaultGradient: {
|
|
2243
|
+
0.4: "blue",
|
|
2244
|
+
0.6: "cyan",
|
|
2245
|
+
0.7: "lime",
|
|
2246
|
+
0.8: "yellow",
|
|
2247
|
+
1: "red"
|
|
2248
|
+
},
|
|
2249
|
+
data: /* @__PURE__ */ __name(function(data) {
|
|
2250
|
+
this._data = data;
|
|
2251
|
+
return this;
|
|
2252
|
+
}, "data"),
|
|
2253
|
+
max: /* @__PURE__ */ __name(function(max) {
|
|
2254
|
+
this._max = max;
|
|
2255
|
+
return this;
|
|
2256
|
+
}, "max"),
|
|
2257
|
+
add: /* @__PURE__ */ __name(function(point) {
|
|
2258
|
+
this._data.push(point);
|
|
2259
|
+
return this;
|
|
2260
|
+
}, "add"),
|
|
2261
|
+
clear: /* @__PURE__ */ __name(function() {
|
|
2262
|
+
this._data = [];
|
|
2263
|
+
return this;
|
|
2264
|
+
}, "clear"),
|
|
2265
|
+
radius: /* @__PURE__ */ __name(function(r, blur) {
|
|
2266
|
+
blur = blur === void 0 ? 15 : blur;
|
|
2267
|
+
var circle = this._circle = this._createCanvas(), ctx = circle.getContext("2d"), r2 = this._r = r + blur;
|
|
2268
|
+
circle.width = circle.height = r2 * 2;
|
|
2269
|
+
ctx.shadowOffsetX = ctx.shadowOffsetY = r2 * 2;
|
|
2270
|
+
ctx.shadowBlur = blur;
|
|
2271
|
+
ctx.shadowColor = "black";
|
|
2272
|
+
ctx.beginPath();
|
|
2273
|
+
ctx.arc(-r2, -r2, r, 0, Math.PI * 2, true);
|
|
2274
|
+
ctx.closePath();
|
|
2275
|
+
ctx.fill();
|
|
2276
|
+
return this;
|
|
2277
|
+
}, "radius"),
|
|
2278
|
+
resize: /* @__PURE__ */ __name(function() {
|
|
2279
|
+
this._width = this._canvas.width;
|
|
2280
|
+
this._height = this._canvas.height;
|
|
2281
|
+
}, "resize"),
|
|
2282
|
+
gradient: /* @__PURE__ */ __name(function(grad) {
|
|
2283
|
+
var canvas = this._createCanvas(), ctx = canvas.getContext("2d"), gradient = ctx.createLinearGradient(0, 0, 0, 256);
|
|
2284
|
+
canvas.width = 1;
|
|
2285
|
+
canvas.height = 256;
|
|
2286
|
+
for (var i in grad) {
|
|
2287
|
+
gradient.addColorStop(+i, grad[i]);
|
|
2307
2288
|
}
|
|
2308
|
-
|
|
2309
|
-
|
|
2310
|
-
|
|
2311
|
-
|
|
2312
|
-
|
|
2313
|
-
|
|
2314
|
-
|
|
2315
|
-
|
|
2316
|
-
|
|
2317
|
-
|
|
2318
|
-
|
|
2319
|
-
|
|
2289
|
+
ctx.fillStyle = gradient;
|
|
2290
|
+
ctx.fillRect(0, 0, 1, 256);
|
|
2291
|
+
this._grad = ctx.getImageData(0, 0, 1, 256).data;
|
|
2292
|
+
return this;
|
|
2293
|
+
}, "gradient"),
|
|
2294
|
+
draw: /* @__PURE__ */ __name(function(minOpacity) {
|
|
2295
|
+
if (!this._circle) this.radius(this.defaultRadius);
|
|
2296
|
+
if (!this._grad) this.gradient(this.defaultGradient);
|
|
2297
|
+
var ctx = this._ctx;
|
|
2298
|
+
ctx.clearRect(0, 0, this._width, this._height);
|
|
2299
|
+
for (var i = 0, len = this._data.length, p; i < len; i++) {
|
|
2300
|
+
p = this._data[i];
|
|
2301
|
+
ctx.globalAlpha = Math.max(p[2] / this._max, minOpacity === void 0 ? 0.05 : minOpacity);
|
|
2302
|
+
ctx.drawImage(this._circle, p[0] - this._r, p[1] - this._r);
|
|
2303
|
+
}
|
|
2304
|
+
var colored = ctx.getImageData(0, 0, this._width, this._height);
|
|
2305
|
+
this._colorize(colored.data, this._grad);
|
|
2306
|
+
ctx.putImageData(colored, 0, 0);
|
|
2307
|
+
return this;
|
|
2308
|
+
}, "draw"),
|
|
2309
|
+
_colorize: /* @__PURE__ */ __name(function(pixels, gradient) {
|
|
2310
|
+
for (var i = 0, len = pixels.length, j; i < len; i += 4) {
|
|
2311
|
+
j = pixels[i + 3] * 4;
|
|
2312
|
+
if (j) {
|
|
2313
|
+
pixels[i] = gradient[j];
|
|
2314
|
+
pixels[i + 1] = gradient[j + 1];
|
|
2315
|
+
pixels[i + 2] = gradient[j + 2];
|
|
2316
|
+
}
|
|
2317
|
+
}
|
|
2318
|
+
}, "_colorize"),
|
|
2319
|
+
_createCanvas: /* @__PURE__ */ __name(function() {
|
|
2320
|
+
if (typeof document !== "undefined") {
|
|
2321
|
+
return document.createElement("canvas");
|
|
2322
|
+
} else {
|
|
2323
|
+
return new this._canvas.constructor();
|
|
2324
|
+
}
|
|
2325
|
+
}, "_createCanvas")
|
|
2326
|
+
};
|
|
2327
|
+
})(simpleheat$2);
|
|
2328
|
+
return simpleheat$2.exports;
|
|
2329
|
+
}
|
|
2330
|
+
__name(requireSimpleheat, "requireSimpleheat");
|
|
2331
|
+
var simpleheatExports = requireSimpleheat();
|
|
2320
2332
|
const simpleheat$1 = /* @__PURE__ */ getDefaultExportFromCjs(simpleheatExports);
|
|
2321
2333
|
const _simpleheat = /* @__PURE__ */ _mergeNamespaces({
|
|
2322
2334
|
__proto__: null,
|
|
@@ -2324,9 +2336,9 @@ const _simpleheat = /* @__PURE__ */ _mergeNamespaces({
|
|
|
2324
2336
|
}, [simpleheatExports]);
|
|
2325
2337
|
const simpleheat = window.simpleheat || _simpleheat && simpleheat$1 || _simpleheat;
|
|
2326
2338
|
const _HeatMap = class _HeatMap extends CanvasWidget {
|
|
2339
|
+
_heat;
|
|
2327
2340
|
constructor() {
|
|
2328
2341
|
super();
|
|
2329
|
-
__publicField(this, "_heat");
|
|
2330
2342
|
}
|
|
2331
2343
|
enter(domNode, element) {
|
|
2332
2344
|
super.enter(domNode, element);
|
|
@@ -2408,26 +2420,26 @@ HeatMap.prototype.publish("topLeftY", null, "number", "Top left y-value", null,
|
|
|
2408
2420
|
HeatMap.prototype.publish("bottomRightX", null, "number", "Bottom right x-value", null, { tags: ["Basic"], optional: true });
|
|
2409
2421
|
HeatMap.prototype.publish("bottomRightY", null, "number", "Bottom right y-value", null, { tags: ["Basic"], optional: true });
|
|
2410
2422
|
const _HPCCBadge = class _HPCCBadge extends SVGWidget {
|
|
2423
|
+
root;
|
|
2424
|
+
logo;
|
|
2425
|
+
logo_accent;
|
|
2426
|
+
logo_circles;
|
|
2427
|
+
line;
|
|
2428
|
+
circle_1;
|
|
2429
|
+
circle_2;
|
|
2430
|
+
circle_3;
|
|
2431
|
+
circle_4;
|
|
2432
|
+
circle_5;
|
|
2433
|
+
circle_6;
|
|
2434
|
+
circle_7;
|
|
2435
|
+
circle_8;
|
|
2436
|
+
circle_accent;
|
|
2437
|
+
text;
|
|
2438
|
+
text_hpccsystems;
|
|
2439
|
+
text_r;
|
|
2440
|
+
text_tm;
|
|
2411
2441
|
constructor() {
|
|
2412
2442
|
super();
|
|
2413
|
-
__publicField(this, "root");
|
|
2414
|
-
__publicField(this, "logo");
|
|
2415
|
-
__publicField(this, "logo_accent");
|
|
2416
|
-
__publicField(this, "logo_circles");
|
|
2417
|
-
__publicField(this, "line");
|
|
2418
|
-
__publicField(this, "circle_1");
|
|
2419
|
-
__publicField(this, "circle_2");
|
|
2420
|
-
__publicField(this, "circle_3");
|
|
2421
|
-
__publicField(this, "circle_4");
|
|
2422
|
-
__publicField(this, "circle_5");
|
|
2423
|
-
__publicField(this, "circle_6");
|
|
2424
|
-
__publicField(this, "circle_7");
|
|
2425
|
-
__publicField(this, "circle_8");
|
|
2426
|
-
__publicField(this, "circle_accent");
|
|
2427
|
-
__publicField(this, "text");
|
|
2428
|
-
__publicField(this, "text_hpccsystems");
|
|
2429
|
-
__publicField(this, "text_r");
|
|
2430
|
-
__publicField(this, "text_tm");
|
|
2431
2443
|
}
|
|
2432
2444
|
testData(domNode, element) {
|
|
2433
2445
|
return this;
|
|
@@ -2523,11 +2535,11 @@ Html.prototype.publish("html", "", "string", "Html to render", null, { tags: ["B
|
|
|
2523
2535
|
Html.prototype.publish("overflowX", null, "set", "CSS overflow-x", ["", "visible", "hidden", "scroll", "auto", "initial", "inherit"], { tags: ["Basic"], optional: true });
|
|
2524
2536
|
Html.prototype.publish("overflowY", null, "set", "CSS overflow-y", ["", "visible", "hidden", "scroll", "auto", "initial", "inherit"], { tags: ["Basic"], optional: true });
|
|
2525
2537
|
const _IconList = class _IconList extends HTMLWidget {
|
|
2538
|
+
_list;
|
|
2539
|
+
_entity_list = [];
|
|
2540
|
+
_content_list = [];
|
|
2526
2541
|
constructor() {
|
|
2527
2542
|
super();
|
|
2528
|
-
__publicField(this, "_list");
|
|
2529
|
-
__publicField(this, "_entity_list", []);
|
|
2530
|
-
__publicField(this, "_content_list", []);
|
|
2531
2543
|
this._list = new HorizontalList().orientation_default("horizontal").flexWrap_default("nowrap");
|
|
2532
2544
|
}
|
|
2533
2545
|
enter(domNode, element) {
|
|
@@ -2569,13 +2581,13 @@ IconList.prototype.publish("iconColumnIndex", 0, "number", "Index of column cont
|
|
|
2569
2581
|
IconList.prototype.publish("iconColorColumnIndex", 1, "number", "Index of column containing icon color");
|
|
2570
2582
|
IconList.prototype.publish("htmlColumnIndex", 2, "number", "Index of column containing html string");
|
|
2571
2583
|
const _Paginator = class _Paginator extends HTMLWidget {
|
|
2584
|
+
_tNumPages;
|
|
2585
|
+
_numList;
|
|
2586
|
+
paginator;
|
|
2587
|
+
side;
|
|
2588
|
+
_onSelect;
|
|
2572
2589
|
constructor() {
|
|
2573
2590
|
super();
|
|
2574
|
-
__publicField(this, "_tNumPages");
|
|
2575
|
-
__publicField(this, "_numList");
|
|
2576
|
-
__publicField(this, "paginator");
|
|
2577
|
-
__publicField(this, "side");
|
|
2578
|
-
__publicField(this, "_onSelect");
|
|
2579
2591
|
this._tag = "div";
|
|
2580
2592
|
this._tNumPages = 1;
|
|
2581
2593
|
this._numList = [];
|
|
@@ -2678,33 +2690,33 @@ Paginator.prototype.publish("adjacentPages", 2, "number", "Number of page indexe
|
|
|
2678
2690
|
Paginator.prototype.publish("bottom", 20, "number", "Pagination bottom offset", null, { tags: ["Private"] });
|
|
2679
2691
|
Paginator.prototype.publish("right", 20, "number", "Pagination right offset", null, { tags: ["Private"] });
|
|
2680
2692
|
const _Table = class _Table extends HTMLWidget {
|
|
2693
|
+
_paginator;
|
|
2694
|
+
_selectionBag;
|
|
2695
|
+
_selectionPrevClick;
|
|
2696
|
+
_paginatorTableSpacing;
|
|
2697
|
+
tableDiv;
|
|
2698
|
+
thead;
|
|
2699
|
+
table;
|
|
2700
|
+
fixedHead;
|
|
2701
|
+
fixedHeadTable;
|
|
2702
|
+
fixedThead;
|
|
2703
|
+
unfixedThead;
|
|
2704
|
+
tbody;
|
|
2705
|
+
tfoot;
|
|
2706
|
+
fixedCol;
|
|
2707
|
+
fixedColTable;
|
|
2708
|
+
fixedColHead;
|
|
2709
|
+
fixedColHeadRow;
|
|
2710
|
+
fixedColBody;
|
|
2711
|
+
fixedColFoot;
|
|
2712
|
+
fixedColFootRow;
|
|
2713
|
+
_prevDescending;
|
|
2714
|
+
_prevSortByFieldIndex;
|
|
2715
|
+
_hasChildWidgets;
|
|
2716
|
+
_tNumPages;
|
|
2717
|
+
_empty_col_idx_arr;
|
|
2681
2718
|
constructor() {
|
|
2682
2719
|
super();
|
|
2683
|
-
__publicField(this, "_paginator");
|
|
2684
|
-
__publicField(this, "_selectionBag");
|
|
2685
|
-
__publicField(this, "_selectionPrevClick");
|
|
2686
|
-
__publicField(this, "_paginatorTableSpacing");
|
|
2687
|
-
__publicField(this, "tableDiv");
|
|
2688
|
-
__publicField(this, "thead");
|
|
2689
|
-
__publicField(this, "table");
|
|
2690
|
-
__publicField(this, "fixedHead");
|
|
2691
|
-
__publicField(this, "fixedHeadTable");
|
|
2692
|
-
__publicField(this, "fixedThead");
|
|
2693
|
-
__publicField(this, "unfixedThead");
|
|
2694
|
-
__publicField(this, "tbody");
|
|
2695
|
-
__publicField(this, "tfoot");
|
|
2696
|
-
__publicField(this, "fixedCol");
|
|
2697
|
-
__publicField(this, "fixedColTable");
|
|
2698
|
-
__publicField(this, "fixedColHead");
|
|
2699
|
-
__publicField(this, "fixedColHeadRow");
|
|
2700
|
-
__publicField(this, "fixedColBody");
|
|
2701
|
-
__publicField(this, "fixedColFoot");
|
|
2702
|
-
__publicField(this, "fixedColFootRow");
|
|
2703
|
-
__publicField(this, "_prevDescending");
|
|
2704
|
-
__publicField(this, "_prevSortByFieldIndex");
|
|
2705
|
-
__publicField(this, "_hasChildWidgets");
|
|
2706
|
-
__publicField(this, "_tNumPages");
|
|
2707
|
-
__publicField(this, "_empty_col_idx_arr");
|
|
2708
2720
|
this._tag = "div";
|
|
2709
2721
|
this.columns([]);
|
|
2710
2722
|
this._paginator = new Paginator();
|
|
@@ -3414,10 +3426,10 @@ function _htmlColorBlock(hexColor) {
|
|
|
3414
3426
|
}
|
|
3415
3427
|
__name(_htmlColorBlock, "_htmlColorBlock");
|
|
3416
3428
|
const _Legend = class _Legend extends Table {
|
|
3429
|
+
_targetWidget;
|
|
3430
|
+
_targetWidgetMonitor;
|
|
3417
3431
|
constructor() {
|
|
3418
3432
|
super();
|
|
3419
|
-
__publicField(this, "_targetWidget");
|
|
3420
|
-
__publicField(this, "_targetWidgetMonitor");
|
|
3421
3433
|
this.showHeader(false);
|
|
3422
3434
|
this.pagination(false);
|
|
3423
3435
|
}
|
|
@@ -3585,10 +3597,10 @@ Legend.prototype.getBBox = function(refresh, round) {
|
|
|
3585
3597
|
return retVal;
|
|
3586
3598
|
};
|
|
3587
3599
|
const _MorphText = class _MorphText extends SVGWidget {
|
|
3600
|
+
_fontWidth;
|
|
3601
|
+
_textElement;
|
|
3588
3602
|
constructor() {
|
|
3589
3603
|
super();
|
|
3590
|
-
__publicField(this, "_fontWidth");
|
|
3591
|
-
__publicField(this, "_textElement");
|
|
3592
3604
|
}
|
|
3593
3605
|
enter(domNode, element) {
|
|
3594
3606
|
if (!this.fontSize()) {
|
|
@@ -3698,9 +3710,9 @@ NestedTable.prototype.data = function(_) {
|
|
|
3698
3710
|
return origData.apply(this, arguments);
|
|
3699
3711
|
};
|
|
3700
3712
|
const _Column = class _Column extends PropertyExt {
|
|
3713
|
+
_owner;
|
|
3701
3714
|
constructor() {
|
|
3702
3715
|
super();
|
|
3703
|
-
__publicField(this, "_owner");
|
|
3704
3716
|
}
|
|
3705
3717
|
owner(_) {
|
|
3706
3718
|
if (!arguments.length) return this._owner;
|
|
@@ -3718,9 +3730,9 @@ Column.prototype.publish("headerLabel", null, "string", "Header value of a table
|
|
|
3718
3730
|
return this._owner ? this._owner.columns() : [];
|
|
3719
3731
|
}, { tags: ["Basic"], optional: true });
|
|
3720
3732
|
const _MouseHoverColumn = class _MouseHoverColumn extends PropertyExt {
|
|
3733
|
+
_owner;
|
|
3721
3734
|
constructor() {
|
|
3722
3735
|
super();
|
|
3723
|
-
__publicField(this, "_owner");
|
|
3724
3736
|
}
|
|
3725
3737
|
owner(_) {
|
|
3726
3738
|
if (!arguments.length) return this._owner;
|
|
@@ -3741,9 +3753,9 @@ MouseHoverColumn.prototype.publish("hoverList", null, "set", "Hover value of a t
|
|
|
3741
3753
|
return this._owner ? this._owner.getIds() : [];
|
|
3742
3754
|
}, { tags: ["Basic"], optional: true });
|
|
3743
3755
|
const _ColumnDropdown = class _ColumnDropdown extends PropertyExt {
|
|
3756
|
+
_owner;
|
|
3744
3757
|
constructor() {
|
|
3745
3758
|
super();
|
|
3746
|
-
__publicField(this, "_owner");
|
|
3747
3759
|
}
|
|
3748
3760
|
owner(_) {
|
|
3749
3761
|
if (!arguments.length) return this._owner;
|
|
@@ -3762,14 +3774,14 @@ ColumnDropdown.prototype.publish("ColumnDropdownList", null, "set", "column valu
|
|
|
3762
3774
|
return this._owner ? this._owner.getIds() : [];
|
|
3763
3775
|
}, { tags: ["Basic"], optional: true });
|
|
3764
3776
|
const _Opportunity = class _Opportunity extends SVGWidget {
|
|
3777
|
+
groupCount;
|
|
3778
|
+
svg;
|
|
3779
|
+
tooltipdiv;
|
|
3780
|
+
Column;
|
|
3781
|
+
MouseHoverColumn;
|
|
3782
|
+
ColumnDropdown;
|
|
3765
3783
|
constructor() {
|
|
3766
3784
|
super();
|
|
3767
|
-
__publicField(this, "groupCount");
|
|
3768
|
-
__publicField(this, "svg");
|
|
3769
|
-
__publicField(this, "tooltipdiv");
|
|
3770
|
-
__publicField(this, "Column");
|
|
3771
|
-
__publicField(this, "MouseHoverColumn");
|
|
3772
|
-
__publicField(this, "ColumnDropdown");
|
|
3773
3785
|
this._drawStartPos = "origin";
|
|
3774
3786
|
this.groupCount = 7;
|
|
3775
3787
|
}
|
|
@@ -4188,17 +4200,15 @@ function hasProperties(type) {
|
|
|
4188
4200
|
}
|
|
4189
4201
|
__name(hasProperties, "hasProperties");
|
|
4190
4202
|
const _PropertyEditor = class _PropertyEditor extends HTMLWidget {
|
|
4203
|
+
_widgetOrig;
|
|
4204
|
+
_parentPropertyEditor;
|
|
4205
|
+
_show_settings;
|
|
4206
|
+
_selectedItems;
|
|
4207
|
+
__meta_sorting;
|
|
4208
|
+
_watch;
|
|
4209
|
+
_childPE = local();
|
|
4191
4210
|
constructor() {
|
|
4192
4211
|
super();
|
|
4193
|
-
__publicField(this, "_widgetOrig");
|
|
4194
|
-
__publicField(this, "_parentPropertyEditor");
|
|
4195
|
-
__publicField(this, "_show_settings");
|
|
4196
|
-
__publicField(this, "_selectedItems");
|
|
4197
|
-
__publicField(this, "__meta_sorting");
|
|
4198
|
-
__publicField(this, "_watch");
|
|
4199
|
-
__publicField(this, "_childPE", local());
|
|
4200
|
-
__publicField(this, "_show_header", true);
|
|
4201
|
-
__publicField(this, "watchDepth", 0);
|
|
4202
4212
|
this._parentPropertyEditor = null;
|
|
4203
4213
|
this._tag = "div";
|
|
4204
4214
|
this._show_settings = false;
|
|
@@ -4217,6 +4227,7 @@ const _PropertyEditor = class _PropertyEditor extends HTMLWidget {
|
|
|
4217
4227
|
}
|
|
4218
4228
|
return retVal;
|
|
4219
4229
|
}
|
|
4230
|
+
_show_header = true;
|
|
4220
4231
|
show_header(_) {
|
|
4221
4232
|
if (!arguments.length) {
|
|
4222
4233
|
return this._show_header;
|
|
@@ -4277,6 +4288,7 @@ const _PropertyEditor = class _PropertyEditor extends HTMLWidget {
|
|
|
4277
4288
|
super.exit(domNode, element);
|
|
4278
4289
|
this.watchWidget(null);
|
|
4279
4290
|
}
|
|
4291
|
+
watchDepth = 0;
|
|
4280
4292
|
watchWidget(widget) {
|
|
4281
4293
|
if (this._watch) {
|
|
4282
4294
|
if (window.__hpcc_debug) {
|
|
@@ -4712,11 +4724,11 @@ PropertyEditor.prototype.widget = function(_) {
|
|
|
4712
4724
|
return retVal;
|
|
4713
4725
|
};
|
|
4714
4726
|
const _RadioCheckbox = class _RadioCheckbox extends HTMLWidget {
|
|
4727
|
+
_span;
|
|
4728
|
+
_label;
|
|
4729
|
+
_Checkbox;
|
|
4715
4730
|
constructor() {
|
|
4716
4731
|
super();
|
|
4717
|
-
__publicField(this, "_span");
|
|
4718
|
-
__publicField(this, "_label");
|
|
4719
|
-
__publicField(this, "_Checkbox");
|
|
4720
4732
|
}
|
|
4721
4733
|
rcData() {
|
|
4722
4734
|
if (this.data().length === 0) return [];
|
|
@@ -4800,11 +4812,11 @@ RadioCheckbox.prototype.publish("textColumn", null, "set", "RadioCheckbox value(
|
|
|
4800
4812
|
RadioCheckbox.prototype.publish("sort", null, "set", "Sort contents", ["", "ascending", "descending"], { optional: true });
|
|
4801
4813
|
RadioCheckbox.prototype.publish("multiple", false, "boolean", "Multiple selection");
|
|
4802
4814
|
const _Select = class _Select extends HTMLWidget {
|
|
4815
|
+
_span;
|
|
4816
|
+
_prompt;
|
|
4817
|
+
_select;
|
|
4803
4818
|
constructor() {
|
|
4804
4819
|
super();
|
|
4805
|
-
__publicField(this, "_span");
|
|
4806
|
-
__publicField(this, "_prompt");
|
|
4807
|
-
__publicField(this, "_select");
|
|
4808
4820
|
}
|
|
4809
4821
|
selectData() {
|
|
4810
4822
|
if (this.data().length === 0) return [];
|
|
@@ -5032,20 +5044,20 @@ const tableInputHtml = /* @__PURE__ */ __name(function(rowObj, value, widgetArr,
|
|
|
5032
5044
|
__name(_options, "_options");
|
|
5033
5045
|
}, "tableInputHtml");
|
|
5034
5046
|
const _ThemeEditor = class _ThemeEditor extends HTMLWidget {
|
|
5047
|
+
_current_grouping;
|
|
5048
|
+
_showing_columns;
|
|
5049
|
+
_showing_data;
|
|
5050
|
+
_contentEditors;
|
|
5051
|
+
_showSettings;
|
|
5052
|
+
_defaultThemes;
|
|
5053
|
+
_widgetObjsById;
|
|
5054
|
+
_sharedProperties;
|
|
5055
|
+
getThemes;
|
|
5056
|
+
getSerials;
|
|
5057
|
+
getDefaultThemes;
|
|
5058
|
+
getDefaultSerials;
|
|
5035
5059
|
constructor() {
|
|
5036
5060
|
super();
|
|
5037
|
-
__publicField(this, "_current_grouping");
|
|
5038
|
-
__publicField(this, "_showing_columns");
|
|
5039
|
-
__publicField(this, "_showing_data");
|
|
5040
|
-
__publicField(this, "_contentEditors");
|
|
5041
|
-
__publicField(this, "_showSettings");
|
|
5042
|
-
__publicField(this, "_defaultThemes");
|
|
5043
|
-
__publicField(this, "_widgetObjsById");
|
|
5044
|
-
__publicField(this, "_sharedProperties");
|
|
5045
|
-
__publicField(this, "getThemes");
|
|
5046
|
-
__publicField(this, "getSerials");
|
|
5047
|
-
__publicField(this, "getDefaultThemes");
|
|
5048
|
-
__publicField(this, "getDefaultSerials");
|
|
5049
5061
|
this._tag = "div";
|
|
5050
5062
|
this._current_grouping = void 0;
|
|
5051
5063
|
this._showing_columns = void 0;
|