@hpcc-js/other 2.15.21 → 2.15.23
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 +389 -385
- package/dist/index.es6.js.map +1 -1
- package/dist/index.js +387 -385
- 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 +7 -7
- package/src/__package__.ts +2 -2
- 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
|
@@ -20,8 +20,8 @@
|
|
|
20
20
|
}
|
|
21
21
|
|
|
22
22
|
var PKG_NAME = "@hpcc-js/other";
|
|
23
|
-
var PKG_VERSION = "2.15.
|
|
24
|
-
var BUILD_VERSION = "2.105.
|
|
23
|
+
var PKG_VERSION = "2.15.23";
|
|
24
|
+
var BUILD_VERSION = "2.105.12";
|
|
25
25
|
|
|
26
26
|
/******************************************************************************
|
|
27
27
|
Copyright (c) Microsoft Corporation.
|
|
@@ -240,7 +240,11 @@
|
|
|
240
240
|
Audio.prototype._class += " other_Audio";
|
|
241
241
|
Audio.prototype.publish("source", "", "string", "Audio Source");
|
|
242
242
|
|
|
243
|
-
|
|
243
|
+
function getDefaultExportFromCjs (x) {
|
|
244
|
+
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
var autoComplete$1 = {exports: {}};
|
|
244
248
|
|
|
245
249
|
/*
|
|
246
250
|
JavaScript autoComplete v1.0.5
|
|
@@ -250,251 +254,252 @@
|
|
|
250
254
|
*/
|
|
251
255
|
|
|
252
256
|
(function (module) {
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
}(autoComplete));
|
|
491
|
-
|
|
492
|
-
var
|
|
257
|
+
var autoComplete = (function(){
|
|
258
|
+
// "use strict";
|
|
259
|
+
function autoComplete(options){
|
|
260
|
+
if (!document.querySelector) return;
|
|
261
|
+
|
|
262
|
+
// helpers
|
|
263
|
+
function hasClass(el, className){ return el.classList ? el.classList.contains(className) : new RegExp('\\b'+ className+'\\b').test(el.className); }
|
|
264
|
+
|
|
265
|
+
function addEvent(el, type, handler){
|
|
266
|
+
if (el.attachEvent) el.attachEvent('on'+type, handler); else el.addEventListener(type, handler);
|
|
267
|
+
}
|
|
268
|
+
function removeEvent(el, type, handler){
|
|
269
|
+
// if (el.removeEventListener) not working in IE11
|
|
270
|
+
if (el.detachEvent) el.detachEvent('on'+type, handler); else el.removeEventListener(type, handler);
|
|
271
|
+
}
|
|
272
|
+
function live(elClass, event, cb, context){
|
|
273
|
+
addEvent(context || document, event, function(e){
|
|
274
|
+
var found, el = e.target || e.srcElement;
|
|
275
|
+
while (el && !(found = hasClass(el, elClass))) el = el.parentElement;
|
|
276
|
+
if (found) cb.call(el, e);
|
|
277
|
+
});
|
|
278
|
+
}
|
|
279
|
+
|
|
280
|
+
var o = {
|
|
281
|
+
selector: 0,
|
|
282
|
+
source: 0,
|
|
283
|
+
minChars: 3,
|
|
284
|
+
delay: 150,
|
|
285
|
+
offsetLeft: 0,
|
|
286
|
+
offsetTop: 1,
|
|
287
|
+
cache: 1,
|
|
288
|
+
menuClass: '',
|
|
289
|
+
renderItem: function (item, search){
|
|
290
|
+
// escape special characters
|
|
291
|
+
search = search.replace(/[-\/\\^$*+?.()|[\]{}]/g, '\\$&');
|
|
292
|
+
var re = new RegExp("(" + search.split(' ').join('|') + ")", "gi");
|
|
293
|
+
return '<div class="autocomplete-suggestion" data-val="' + item + '">' + item.replace(re, "<b>$1</b>") + '</div>';
|
|
294
|
+
},
|
|
295
|
+
onSelect: function(e, term, item){}
|
|
296
|
+
};
|
|
297
|
+
for (var k in options) { if (options.hasOwnProperty(k)) o[k] = options[k]; }
|
|
298
|
+
|
|
299
|
+
// init
|
|
300
|
+
var elems = typeof o.selector == 'object' ? [o.selector] : document.querySelectorAll(o.selector);
|
|
301
|
+
for (var i=0; i<elems.length; i++) {
|
|
302
|
+
var that = elems[i];
|
|
303
|
+
|
|
304
|
+
// create suggestions container "sc"
|
|
305
|
+
that.sc = document.createElement('div');
|
|
306
|
+
that.sc.className = 'autocomplete-suggestions '+o.menuClass;
|
|
307
|
+
|
|
308
|
+
that.autocompleteAttr = that.getAttribute('autocomplete');
|
|
309
|
+
that.setAttribute('autocomplete', 'off');
|
|
310
|
+
that.cache = {};
|
|
311
|
+
that.last_val = '';
|
|
312
|
+
|
|
313
|
+
that.updateSC = function(resize, next){
|
|
314
|
+
var rect = that.getBoundingClientRect();
|
|
315
|
+
that.sc.style.left = Math.round(rect.left + (window.pageXOffset || document.documentElement.scrollLeft) + o.offsetLeft) + 'px';
|
|
316
|
+
that.sc.style.top = Math.round(rect.bottom + (window.pageYOffset || document.documentElement.scrollTop) + o.offsetTop) + 'px';
|
|
317
|
+
that.sc.style.width = Math.round(rect.right - rect.left) + 'px'; // outerWidth
|
|
318
|
+
if (!resize) {
|
|
319
|
+
that.sc.style.display = 'block';
|
|
320
|
+
that.sc.classList.remove('hide');
|
|
321
|
+
if (!that.sc.maxHeight) { that.sc.maxHeight = parseInt((window.getComputedStyle ? getComputedStyle(that.sc, null) : that.sc.currentStyle).maxHeight); }
|
|
322
|
+
if (!that.sc.suggestionHeight) that.sc.suggestionHeight = that.sc.querySelector('.autocomplete-suggestion').offsetHeight;
|
|
323
|
+
if (that.sc.suggestionHeight)
|
|
324
|
+
if (!next) that.sc.scrollTop = 0;
|
|
325
|
+
else {
|
|
326
|
+
var scrTop = that.sc.scrollTop, selTop = next.getBoundingClientRect().top - that.sc.getBoundingClientRect().top;
|
|
327
|
+
if (selTop + that.sc.suggestionHeight - that.sc.maxHeight > 0)
|
|
328
|
+
that.sc.scrollTop = selTop + that.sc.suggestionHeight + scrTop - that.sc.maxHeight;
|
|
329
|
+
else if (selTop < 0)
|
|
330
|
+
that.sc.scrollTop = selTop + scrTop;
|
|
331
|
+
}
|
|
332
|
+
}
|
|
333
|
+
};
|
|
334
|
+
addEvent(window, 'resize', that.updateSC);
|
|
335
|
+
document.body.appendChild(that.sc);
|
|
336
|
+
|
|
337
|
+
live('autocomplete-suggestion', 'mouseleave', function(e){
|
|
338
|
+
var sel = that.sc.querySelector('.autocomplete-suggestion.selected');
|
|
339
|
+
if (sel) setTimeout(function(){ sel.className = sel.className.replace('selected', ''); }, 20);
|
|
340
|
+
}, that.sc);
|
|
341
|
+
|
|
342
|
+
live('autocomplete-suggestion', 'mouseover', function(e){
|
|
343
|
+
var sel = that.sc.querySelector('.autocomplete-suggestion.selected');
|
|
344
|
+
if (sel) sel.className = sel.className.replace('selected', '');
|
|
345
|
+
this.className += ' selected';
|
|
346
|
+
}, that.sc);
|
|
347
|
+
|
|
348
|
+
live('autocomplete-suggestion', 'mousedown', function(e){
|
|
349
|
+
if (hasClass(this, 'autocomplete-suggestion')) { // else outside click
|
|
350
|
+
var v = this.getAttribute('data-val');
|
|
351
|
+
that.value = v;
|
|
352
|
+
o.onSelect(e, v, this);
|
|
353
|
+
that.sc.style.display = 'none';
|
|
354
|
+
that.sc.classList.add("hide");
|
|
355
|
+
|
|
356
|
+
}
|
|
357
|
+
}, that.sc);
|
|
358
|
+
|
|
359
|
+
that.blurHandler = function(){
|
|
360
|
+
try { var over_sb = document.querySelector('.autocomplete-suggestions:hover'); } catch(e){ var over_sb = 0; }
|
|
361
|
+
if (!over_sb) {
|
|
362
|
+
that.last_val = that.value;
|
|
363
|
+
that.sc.style.display = 'none';
|
|
364
|
+
that.sc.classList.add("hide");
|
|
365
|
+
setTimeout(function(){
|
|
366
|
+
that.sc.style.display = 'none';
|
|
367
|
+
that.sc.classList.add("hide");
|
|
368
|
+
}, 350); // hide suggestions on fast input
|
|
369
|
+
} else if (that !== document.activeElement) setTimeout(function(){ that.focus(); }, 20);
|
|
370
|
+
};
|
|
371
|
+
addEvent(that, 'blur', that.blurHandler);
|
|
372
|
+
|
|
373
|
+
var suggest = function(data, val){
|
|
374
|
+
if (!val) {
|
|
375
|
+
var val = that.value;
|
|
376
|
+
}
|
|
377
|
+
that.cache[val] = data;
|
|
378
|
+
if (data.length && val.length >= o.minChars) {
|
|
379
|
+
var s = '';
|
|
380
|
+
for (var i=0;i<data.length;i++) s += o.renderItem(data[i], val);
|
|
381
|
+
that.sc.innerHTML = s;
|
|
382
|
+
that.updateSC(0);
|
|
383
|
+
}
|
|
384
|
+
else {
|
|
385
|
+
that.sc.style.display = 'none';
|
|
386
|
+
that.sc.classList.add("hide");
|
|
387
|
+
}
|
|
388
|
+
};
|
|
389
|
+
|
|
390
|
+
that.keydownHandler = function(e){
|
|
391
|
+
var key = window.event ? e.keyCode : e.which;
|
|
392
|
+
// down (40), up (38)
|
|
393
|
+
if ((key == 40 || key == 38) && that.sc.innerHTML) {
|
|
394
|
+
var next, sel = that.sc.querySelector('.autocomplete-suggestion.selected');
|
|
395
|
+
if (!sel) {
|
|
396
|
+
next = (key == 40) ? that.sc.querySelector('.autocomplete-suggestion') : that.sc.childNodes[that.sc.childNodes.length - 1]; // first : last
|
|
397
|
+
next.className += ' selected';
|
|
398
|
+
that.value = next.getAttribute('data-val');
|
|
399
|
+
} else {
|
|
400
|
+
next = (key == 40) ? sel.nextSibling : sel.previousSibling;
|
|
401
|
+
if (next) {
|
|
402
|
+
sel.className = sel.className.replace('selected', '');
|
|
403
|
+
next.className += ' selected';
|
|
404
|
+
that.value = next.getAttribute('data-val');
|
|
405
|
+
}
|
|
406
|
+
else { sel.className = sel.className.replace('selected', ''); that.value = that.last_val; next = 0; }
|
|
407
|
+
}
|
|
408
|
+
that.updateSC(0, next);
|
|
409
|
+
return false;
|
|
410
|
+
}
|
|
411
|
+
// esc
|
|
412
|
+
else if (key == 27) {
|
|
413
|
+
that.value = that.last_val;
|
|
414
|
+
that.sc.style.display = 'none';
|
|
415
|
+
that.sc.classList.add("hide");
|
|
416
|
+
}
|
|
417
|
+
// enter
|
|
418
|
+
else if (key == 13 || key == 9) {
|
|
419
|
+
if (that.sc.style.display !== 'none') {
|
|
420
|
+
e.preventDefault();
|
|
421
|
+
}
|
|
422
|
+
var sel = that.sc.querySelector('.autocomplete-suggestion.selected');
|
|
423
|
+
if (sel && that.sc.style.display != 'none') {
|
|
424
|
+
o.onSelect(e, sel.getAttribute('data-val'), sel);
|
|
425
|
+
setTimeout(function(){
|
|
426
|
+
that.sc.style.display = 'none';
|
|
427
|
+
that.sc.classList.add("hide");
|
|
428
|
+
}, 20); }
|
|
429
|
+
}
|
|
430
|
+
};
|
|
431
|
+
addEvent(that, 'keydown', that.keydownHandler);
|
|
432
|
+
|
|
433
|
+
that.keyupHandler = function(e){
|
|
434
|
+
var key = window.event ? e.keyCode : e.which;
|
|
435
|
+
if (!key || (key < 35 || key > 40) && key != 13 && key != 27) {
|
|
436
|
+
var val = that.value;
|
|
437
|
+
if (val.length >= o.minChars) {
|
|
438
|
+
if (val != that.last_val) {
|
|
439
|
+
that.last_val = val;
|
|
440
|
+
clearTimeout(that.timer);
|
|
441
|
+
if (o.cache) {
|
|
442
|
+
if (val in that.cache) { suggest(that.cache[val]); return; }
|
|
443
|
+
// no requests if previous suggestions were empty
|
|
444
|
+
for (var i=1; i<val.length-o.minChars; i++) {
|
|
445
|
+
var part = val.slice(0, val.length-i);
|
|
446
|
+
if (part in that.cache && !that.cache[part].length) { suggest([]); return; }
|
|
447
|
+
}
|
|
448
|
+
}
|
|
449
|
+
that.timer = setTimeout(function(){ o.source(val, suggest); }, o.delay);
|
|
450
|
+
}
|
|
451
|
+
} else {
|
|
452
|
+
that.last_val = val;
|
|
453
|
+
that.sc.style.display = 'none';
|
|
454
|
+
that.sc.classList.add("hide");
|
|
455
|
+
}
|
|
456
|
+
}
|
|
457
|
+
};
|
|
458
|
+
addEvent(that, 'keyup', that.keyupHandler);
|
|
459
|
+
|
|
460
|
+
that.focusHandler = function(e){
|
|
461
|
+
that.last_val = '\n';
|
|
462
|
+
that.keyupHandler(e);
|
|
463
|
+
};
|
|
464
|
+
if (!o.minChars) addEvent(that, 'focus', that.focusHandler);
|
|
465
|
+
}
|
|
466
|
+
|
|
467
|
+
// public destroy method
|
|
468
|
+
this.destroy = function(){
|
|
469
|
+
for (var i=0; i<elems.length; i++) {
|
|
470
|
+
var that = elems[i];
|
|
471
|
+
removeEvent(window, 'resize', that.updateSC);
|
|
472
|
+
removeEvent(that, 'blur', that.blurHandler);
|
|
473
|
+
removeEvent(that, 'focus', that.focusHandler);
|
|
474
|
+
removeEvent(that, 'keydown', that.keydownHandler);
|
|
475
|
+
removeEvent(that, 'keyup', that.keyupHandler);
|
|
476
|
+
if (that.autocompleteAttr)
|
|
477
|
+
that.setAttribute('autocomplete', that.autocompleteAttr);
|
|
478
|
+
else
|
|
479
|
+
that.removeAttribute('autocomplete');
|
|
480
|
+
document.body.removeChild(that.sc);
|
|
481
|
+
that = null;
|
|
482
|
+
}
|
|
483
|
+
};
|
|
484
|
+
}
|
|
485
|
+
return autoComplete;
|
|
486
|
+
})();
|
|
487
|
+
|
|
488
|
+
(function(){
|
|
489
|
+
if (module.exports)
|
|
490
|
+
module.exports = autoComplete;
|
|
491
|
+
else
|
|
492
|
+
window.autoComplete = autoComplete;
|
|
493
|
+
})();
|
|
494
|
+
} (autoComplete$1));
|
|
495
|
+
|
|
496
|
+
var autoCompleteExports = autoComplete$1.exports;
|
|
497
|
+
var autoComplete = /*@__PURE__*/getDefaultExportFromCjs(autoCompleteExports);
|
|
493
498
|
|
|
494
499
|
var AutoComplete = /*#__PURE__*/_mergeNamespaces({
|
|
495
500
|
__proto__: null,
|
|
496
|
-
|
|
497
|
-
}, [
|
|
501
|
+
default: autoComplete
|
|
502
|
+
}, [autoCompleteExports]);
|
|
498
503
|
|
|
499
504
|
function styleInject(css, ref) {
|
|
500
505
|
if ( ref === void 0 ) ref = {};
|
|
@@ -766,8 +771,6 @@
|
|
|
766
771
|
date.setFullYear(date.getFullYear() + step * k);
|
|
767
772
|
});
|
|
768
773
|
};
|
|
769
|
-
|
|
770
|
-
var d3TimeYear = year;
|
|
771
774
|
year.range;
|
|
772
775
|
|
|
773
776
|
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}";
|
|
@@ -882,7 +885,7 @@
|
|
|
882
885
|
dayRectElement.append("title");
|
|
883
886
|
})
|
|
884
887
|
.merge(dayRect)
|
|
885
|
-
.attr("x", function (d) { return sunday.count(
|
|
888
|
+
.attr("x", function (d) { return sunday.count(year(d), d) * cellSize; })
|
|
886
889
|
.attr("y", function (d) { return d.getDay() * cellSize; })
|
|
887
890
|
.attr("width", cellSize)
|
|
888
891
|
.attr("height", cellSize)
|
|
@@ -916,9 +919,9 @@
|
|
|
916
919
|
function calcMonthPath(t0) {
|
|
917
920
|
var t1 = new Date(t0.getFullYear(), t0.getMonth() + 1, 0);
|
|
918
921
|
var d0 = t0.getDay();
|
|
919
|
-
var w0 = sunday.count(
|
|
922
|
+
var w0 = sunday.count(year(t0), t0);
|
|
920
923
|
var d1 = t1.getDay();
|
|
921
|
-
var w1 = sunday.count(
|
|
924
|
+
var w1 = sunday.count(year(t1), t1);
|
|
922
925
|
return "M" + (w0 + 1) * cellSize + "," + d0 * cellSize +
|
|
923
926
|
"H" + w0 * cellSize + "V" + 7 * cellSize +
|
|
924
927
|
"H" + w1 * cellSize + "V" + (d1 + 1) * cellSize +
|
|
@@ -1942,17 +1945,17 @@
|
|
|
1942
1945
|
|
|
1943
1946
|
var Comms$1 = /*#__PURE__*/Object.freeze({
|
|
1944
1947
|
__proto__: null,
|
|
1945
|
-
ESPUrl: ESPUrl,
|
|
1946
|
-
ESPMappings: ESPMappings,
|
|
1947
|
-
Comms: Comms,
|
|
1948
1948
|
Basic: Basic,
|
|
1949
|
+
Comms: Comms,
|
|
1950
|
+
ESPMappings: ESPMappings,
|
|
1951
|
+
ESPUrl: ESPUrl,
|
|
1952
|
+
HIPIEDatabomb: HIPIEDatabomb,
|
|
1953
|
+
HIPIERoxie: HIPIERoxie,
|
|
1954
|
+
HIPIEWorkunit: HIPIEWorkunit,
|
|
1949
1955
|
WsECL: WsECL,
|
|
1950
1956
|
WsWorkunits: WsWorkunits$1,
|
|
1951
1957
|
createESPConnection: createESPConnection,
|
|
1952
|
-
hookJsonp: hookJsonp
|
|
1953
|
-
HIPIEWorkunit: HIPIEWorkunit,
|
|
1954
|
-
HIPIERoxie: HIPIERoxie,
|
|
1955
|
-
HIPIEDatabomb: HIPIEDatabomb
|
|
1958
|
+
hookJsonp: hookJsonp
|
|
1956
1959
|
});
|
|
1957
1960
|
|
|
1958
1961
|
function nestedRowFix(row) {
|
|
@@ -2385,160 +2388,161 @@
|
|
|
2385
2388
|
return retVal;
|
|
2386
2389
|
}
|
|
2387
2390
|
|
|
2388
|
-
var simpleheat$
|
|
2391
|
+
var simpleheat$2 = {exports: {}};
|
|
2389
2392
|
|
|
2390
2393
|
(function (module) {
|
|
2391
2394
|
|
|
2392
|
-
|
|
2395
|
+
module.exports = simpleheat;
|
|
2393
2396
|
|
|
2394
|
-
|
|
2395
|
-
|
|
2397
|
+
function simpleheat(canvas) {
|
|
2398
|
+
if (!(this instanceof simpleheat)) return new simpleheat(canvas);
|
|
2396
2399
|
|
|
2397
|
-
|
|
2400
|
+
this._canvas = canvas = typeof canvas === 'string' ? document.getElementById(canvas) : canvas;
|
|
2398
2401
|
|
|
2399
|
-
|
|
2400
|
-
|
|
2401
|
-
|
|
2402
|
+
this._ctx = canvas.getContext('2d');
|
|
2403
|
+
this._width = canvas.width;
|
|
2404
|
+
this._height = canvas.height;
|
|
2402
2405
|
|
|
2403
|
-
|
|
2404
|
-
|
|
2405
|
-
|
|
2406
|
+
this._max = 1;
|
|
2407
|
+
this._data = [];
|
|
2408
|
+
}
|
|
2406
2409
|
|
|
2407
|
-
|
|
2410
|
+
simpleheat.prototype = {
|
|
2408
2411
|
|
|
2409
|
-
|
|
2412
|
+
defaultRadius: 25,
|
|
2410
2413
|
|
|
2411
|
-
|
|
2412
|
-
|
|
2413
|
-
|
|
2414
|
-
|
|
2415
|
-
|
|
2416
|
-
|
|
2417
|
-
|
|
2414
|
+
defaultGradient: {
|
|
2415
|
+
0.4: 'blue',
|
|
2416
|
+
0.6: 'cyan',
|
|
2417
|
+
0.7: 'lime',
|
|
2418
|
+
0.8: 'yellow',
|
|
2419
|
+
1.0: 'red'
|
|
2420
|
+
},
|
|
2418
2421
|
|
|
2419
|
-
|
|
2420
|
-
|
|
2421
|
-
|
|
2422
|
-
|
|
2422
|
+
data: function (data) {
|
|
2423
|
+
this._data = data;
|
|
2424
|
+
return this;
|
|
2425
|
+
},
|
|
2423
2426
|
|
|
2424
|
-
|
|
2425
|
-
|
|
2426
|
-
|
|
2427
|
-
|
|
2428
|
-
|
|
2429
|
-
add: function (point) {
|
|
2430
|
-
this._data.push(point);
|
|
2431
|
-
return this;
|
|
2432
|
-
},
|
|
2427
|
+
max: function (max) {
|
|
2428
|
+
this._max = max;
|
|
2429
|
+
return this;
|
|
2430
|
+
},
|
|
2433
2431
|
|
|
2434
|
-
|
|
2435
|
-
|
|
2436
|
-
|
|
2437
|
-
|
|
2432
|
+
add: function (point) {
|
|
2433
|
+
this._data.push(point);
|
|
2434
|
+
return this;
|
|
2435
|
+
},
|
|
2438
2436
|
|
|
2439
|
-
|
|
2440
|
-
|
|
2437
|
+
clear: function () {
|
|
2438
|
+
this._data = [];
|
|
2439
|
+
return this;
|
|
2440
|
+
},
|
|
2441
2441
|
|
|
2442
|
-
|
|
2443
|
-
|
|
2444
|
-
ctx = circle.getContext('2d'),
|
|
2445
|
-
r2 = this._r = r + blur;
|
|
2442
|
+
radius: function (r, blur) {
|
|
2443
|
+
blur = blur === undefined ? 15 : blur;
|
|
2446
2444
|
|
|
2447
|
-
|
|
2445
|
+
// create a grayscale blurred circle image that we'll use for drawing points
|
|
2446
|
+
var circle = this._circle = this._createCanvas(),
|
|
2447
|
+
ctx = circle.getContext('2d'),
|
|
2448
|
+
r2 = this._r = r + blur;
|
|
2448
2449
|
|
|
2449
|
-
|
|
2450
|
-
ctx.shadowBlur = blur;
|
|
2451
|
-
ctx.shadowColor = 'black';
|
|
2450
|
+
circle.width = circle.height = r2 * 2;
|
|
2452
2451
|
|
|
2453
|
-
|
|
2454
|
-
|
|
2455
|
-
|
|
2456
|
-
ctx.fill();
|
|
2452
|
+
ctx.shadowOffsetX = ctx.shadowOffsetY = r2 * 2;
|
|
2453
|
+
ctx.shadowBlur = blur;
|
|
2454
|
+
ctx.shadowColor = 'black';
|
|
2457
2455
|
|
|
2458
|
-
|
|
2459
|
-
|
|
2456
|
+
ctx.beginPath();
|
|
2457
|
+
ctx.arc(-r2, -r2, r, 0, Math.PI * 2, true);
|
|
2458
|
+
ctx.closePath();
|
|
2459
|
+
ctx.fill();
|
|
2460
2460
|
|
|
2461
|
-
|
|
2462
|
-
|
|
2463
|
-
this._height = this._canvas.height;
|
|
2464
|
-
},
|
|
2461
|
+
return this;
|
|
2462
|
+
},
|
|
2465
2463
|
|
|
2466
|
-
|
|
2467
|
-
|
|
2468
|
-
|
|
2469
|
-
|
|
2470
|
-
gradient = ctx.createLinearGradient(0, 0, 0, 256);
|
|
2464
|
+
resize: function () {
|
|
2465
|
+
this._width = this._canvas.width;
|
|
2466
|
+
this._height = this._canvas.height;
|
|
2467
|
+
},
|
|
2471
2468
|
|
|
2472
|
-
|
|
2473
|
-
|
|
2469
|
+
gradient: function (grad) {
|
|
2470
|
+
// create a 256x1 gradient that we'll use to turn a grayscale heatmap into a colored one
|
|
2471
|
+
var canvas = this._createCanvas(),
|
|
2472
|
+
ctx = canvas.getContext('2d'),
|
|
2473
|
+
gradient = ctx.createLinearGradient(0, 0, 0, 256);
|
|
2474
2474
|
|
|
2475
|
-
|
|
2476
|
-
|
|
2477
|
-
}
|
|
2475
|
+
canvas.width = 1;
|
|
2476
|
+
canvas.height = 256;
|
|
2478
2477
|
|
|
2479
|
-
|
|
2480
|
-
|
|
2478
|
+
for (var i in grad) {
|
|
2479
|
+
gradient.addColorStop(+i, grad[i]);
|
|
2480
|
+
}
|
|
2481
2481
|
|
|
2482
|
-
|
|
2482
|
+
ctx.fillStyle = gradient;
|
|
2483
|
+
ctx.fillRect(0, 0, 1, 256);
|
|
2483
2484
|
|
|
2484
|
-
|
|
2485
|
-
},
|
|
2485
|
+
this._grad = ctx.getImageData(0, 0, 1, 256).data;
|
|
2486
2486
|
|
|
2487
|
-
|
|
2488
|
-
|
|
2489
|
-
if (!this._grad) this.gradient(this.defaultGradient);
|
|
2487
|
+
return this;
|
|
2488
|
+
},
|
|
2490
2489
|
|
|
2491
|
-
|
|
2490
|
+
draw: function (minOpacity) {
|
|
2491
|
+
if (!this._circle) this.radius(this.defaultRadius);
|
|
2492
|
+
if (!this._grad) this.gradient(this.defaultGradient);
|
|
2492
2493
|
|
|
2493
|
-
|
|
2494
|
-
|
|
2495
|
-
|
|
2496
|
-
|
|
2497
|
-
|
|
2498
|
-
|
|
2499
|
-
|
|
2500
|
-
|
|
2501
|
-
|
|
2502
|
-
|
|
2503
|
-
|
|
2504
|
-
|
|
2505
|
-
|
|
2506
|
-
|
|
2507
|
-
|
|
2508
|
-
|
|
2509
|
-
|
|
2510
|
-
|
|
2511
|
-
|
|
2512
|
-
|
|
2513
|
-
|
|
2514
|
-
|
|
2515
|
-
|
|
2516
|
-
|
|
2517
|
-
|
|
2518
|
-
|
|
2519
|
-
|
|
2520
|
-
|
|
2521
|
-
|
|
2522
|
-
|
|
2523
|
-
|
|
2524
|
-
|
|
2525
|
-
|
|
2526
|
-
|
|
2527
|
-
|
|
2528
|
-
|
|
2529
|
-
|
|
2530
|
-
|
|
2531
|
-
|
|
2532
|
-
|
|
2533
|
-
|
|
2534
|
-
|
|
2494
|
+
var ctx = this._ctx;
|
|
2495
|
+
|
|
2496
|
+
ctx.clearRect(0, 0, this._width, this._height);
|
|
2497
|
+
|
|
2498
|
+
// draw a grayscale heatmap by putting a blurred circle at each data point
|
|
2499
|
+
for (var i = 0, len = this._data.length, p; i < len; i++) {
|
|
2500
|
+
p = this._data[i];
|
|
2501
|
+
ctx.globalAlpha = Math.max(p[2] / this._max, minOpacity === undefined ? 0.05 : minOpacity);
|
|
2502
|
+
ctx.drawImage(this._circle, p[0] - this._r, p[1] - this._r);
|
|
2503
|
+
}
|
|
2504
|
+
|
|
2505
|
+
// colorize the heatmap, using opacity value of each pixel to get the right color from our gradient
|
|
2506
|
+
var colored = ctx.getImageData(0, 0, this._width, this._height);
|
|
2507
|
+
this._colorize(colored.data, this._grad);
|
|
2508
|
+
ctx.putImageData(colored, 0, 0);
|
|
2509
|
+
|
|
2510
|
+
return this;
|
|
2511
|
+
},
|
|
2512
|
+
|
|
2513
|
+
_colorize: function (pixels, gradient) {
|
|
2514
|
+
for (var i = 0, len = pixels.length, j; i < len; i += 4) {
|
|
2515
|
+
j = pixels[i + 3] * 4; // get gradient color from opacity value
|
|
2516
|
+
|
|
2517
|
+
if (j) {
|
|
2518
|
+
pixels[i] = gradient[j];
|
|
2519
|
+
pixels[i + 1] = gradient[j + 1];
|
|
2520
|
+
pixels[i + 2] = gradient[j + 2];
|
|
2521
|
+
}
|
|
2522
|
+
}
|
|
2523
|
+
},
|
|
2524
|
+
|
|
2525
|
+
_createCanvas: function () {
|
|
2526
|
+
if (typeof document !== 'undefined') {
|
|
2527
|
+
return document.createElement('canvas');
|
|
2528
|
+
} else {
|
|
2529
|
+
// create a new canvas instance in node.js
|
|
2530
|
+
// the canvas class needs to have a default constructor without any parameter
|
|
2531
|
+
return new this._canvas.constructor();
|
|
2532
|
+
}
|
|
2533
|
+
}
|
|
2534
|
+
};
|
|
2535
|
+
} (simpleheat$2));
|
|
2536
|
+
|
|
2537
|
+
var simpleheatExports = simpleheat$2.exports;
|
|
2538
|
+
var simpleheat$1 = /*@__PURE__*/getDefaultExportFromCjs(simpleheatExports);
|
|
2535
2539
|
|
|
2536
2540
|
var _simpleheat = /*#__PURE__*/_mergeNamespaces({
|
|
2537
2541
|
__proto__: null,
|
|
2538
|
-
|
|
2539
|
-
}, [
|
|
2542
|
+
default: simpleheat$1
|
|
2543
|
+
}, [simpleheatExports]);
|
|
2540
2544
|
|
|
2541
|
-
var simpleheat = window.simpleheat || (_simpleheat &&
|
|
2545
|
+
var simpleheat = window.simpleheat || (_simpleheat && simpleheat$1) || _simpleheat;
|
|
2542
2546
|
var HeatMap = /** @class */ (function (_super) {
|
|
2543
2547
|
__extends(HeatMap, _super);
|
|
2544
2548
|
function HeatMap() {
|
|
@@ -4753,15 +4757,15 @@
|
|
|
4753
4757
|
|
|
4754
4758
|
var Persist = /*#__PURE__*/Object.freeze({
|
|
4755
4759
|
__proto__: null,
|
|
4760
|
+
applyTheme: applyTheme,
|
|
4756
4761
|
discover: discover,
|
|
4757
|
-
|
|
4758
|
-
|
|
4762
|
+
removeTheme: removeTheme,
|
|
4763
|
+
serialize: serialize,
|
|
4759
4764
|
serializeTheme: serializeTheme,
|
|
4760
4765
|
serializeThemeToObject: serializeThemeToObject,
|
|
4761
|
-
removeTheme: removeTheme,
|
|
4762
|
-
applyTheme: applyTheme,
|
|
4763
4766
|
serializeToObject: serializeToObject,
|
|
4764
|
-
|
|
4767
|
+
widgetArrayWalker: widgetArrayWalker,
|
|
4768
|
+
widgetPropertyWalker: widgetPropertyWalker
|
|
4765
4769
|
});
|
|
4766
4770
|
|
|
4767
4771
|
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%}";
|
|
@@ -6339,7 +6343,5 @@
|
|
|
6339
6343
|
exports.enableCache = enableCache;
|
|
6340
6344
|
exports.flattenResult = flattenResult;
|
|
6341
6345
|
|
|
6342
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
6343
|
-
|
|
6344
6346
|
}));
|
|
6345
6347
|
//# sourceMappingURL=index.js.map
|