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