@hpcc-js/other 2.15.22 → 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 CHANGED
@@ -1,5 +1,5 @@
1
- import { HTMLWidget, timeParse, format, select, map, extent, range, Utility, Palette, CanvasWidget, SVGWidget, Entity, d3Event, Widget, Platform, selectAll, PropertyExt, local } from '@hpcc-js/common';
2
- import { VerticalList, HorizontalList, Grid } from '@hpcc-js/layout';
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.15.22";
21
- var BUILD_VERSION = "2.105.9";
20
+ var PKG_VERSION = "2.15.23";
21
+ var BUILD_VERSION = "2.105.12";
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
- var autoComplete = {exports: {}};
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
- // "use strict";
252
- function autoComplete(options){
253
- if (!document.querySelector) return;
254
-
255
- // helpers
256
- function hasClass(el, className){ return el.classList ? el.classList.contains(className) : new RegExp('\\b'+ className+'\\b').test(el.className); }
257
-
258
- function addEvent(el, type, handler){
259
- if (el.attachEvent) el.attachEvent('on'+type, handler); else el.addEventListener(type, handler);
260
- }
261
- function removeEvent(el, type, handler){
262
- // if (el.removeEventListener) not working in IE11
263
- if (el.detachEvent) el.detachEvent('on'+type, handler); else el.removeEventListener(type, handler);
264
- }
265
- function live(elClass, event, cb, context){
266
- addEvent(context || document, event, function(e){
267
- var found, el = e.target || e.srcElement;
268
- while (el && !(found = hasClass(el, elClass))) el = el.parentElement;
269
- if (found) cb.call(el, e);
270
- });
271
- }
272
-
273
- var o = {
274
- selector: 0,
275
- source: 0,
276
- minChars: 3,
277
- delay: 150,
278
- offsetLeft: 0,
279
- offsetTop: 1,
280
- cache: 1,
281
- menuClass: '',
282
- renderItem: function (item, search){
283
- // escape special characters
284
- search = search.replace(/[-\/\\^$*+?.()|[\]{}]/g, '\\$&');
285
- var re = new RegExp("(" + search.split(' ').join('|') + ")", "gi");
286
- return '<div class="autocomplete-suggestion" data-val="' + item + '">' + item.replace(re, "<b>$1</b>") + '</div>';
287
- },
288
- onSelect: function(e, term, item){}
289
- };
290
- for (var k in options) { if (options.hasOwnProperty(k)) o[k] = options[k]; }
291
-
292
- // init
293
- var elems = typeof o.selector == 'object' ? [o.selector] : document.querySelectorAll(o.selector);
294
- for (var i=0; i<elems.length; i++) {
295
- var that = elems[i];
296
-
297
- // create suggestions container "sc"
298
- that.sc = document.createElement('div');
299
- that.sc.className = 'autocomplete-suggestions '+o.menuClass;
300
-
301
- that.autocompleteAttr = that.getAttribute('autocomplete');
302
- that.setAttribute('autocomplete', 'off');
303
- that.cache = {};
304
- that.last_val = '';
305
-
306
- that.updateSC = function(resize, next){
307
- var rect = that.getBoundingClientRect();
308
- that.sc.style.left = Math.round(rect.left + (window.pageXOffset || document.documentElement.scrollLeft) + o.offsetLeft) + 'px';
309
- that.sc.style.top = Math.round(rect.bottom + (window.pageYOffset || document.documentElement.scrollTop) + o.offsetTop) + 'px';
310
- that.sc.style.width = Math.round(rect.right - rect.left) + 'px'; // outerWidth
311
- if (!resize) {
312
- that.sc.style.display = 'block';
313
- that.sc.classList.remove('hide');
314
- if (!that.sc.maxHeight) { that.sc.maxHeight = parseInt((window.getComputedStyle ? getComputedStyle(that.sc, null) : that.sc.currentStyle).maxHeight); }
315
- if (!that.sc.suggestionHeight) that.sc.suggestionHeight = that.sc.querySelector('.autocomplete-suggestion').offsetHeight;
316
- if (that.sc.suggestionHeight)
317
- if (!next) that.sc.scrollTop = 0;
318
- else {
319
- var scrTop = that.sc.scrollTop, selTop = next.getBoundingClientRect().top - that.sc.getBoundingClientRect().top;
320
- if (selTop + that.sc.suggestionHeight - that.sc.maxHeight > 0)
321
- that.sc.scrollTop = selTop + that.sc.suggestionHeight + scrTop - that.sc.maxHeight;
322
- else if (selTop < 0)
323
- that.sc.scrollTop = selTop + scrTop;
324
- }
325
- }
326
- };
327
- addEvent(window, 'resize', that.updateSC);
328
- document.body.appendChild(that.sc);
329
-
330
- live('autocomplete-suggestion', 'mouseleave', function(e){
331
- var sel = that.sc.querySelector('.autocomplete-suggestion.selected');
332
- if (sel) setTimeout(function(){ sel.className = sel.className.replace('selected', ''); }, 20);
333
- }, that.sc);
334
-
335
- live('autocomplete-suggestion', 'mouseover', function(e){
336
- var sel = that.sc.querySelector('.autocomplete-suggestion.selected');
337
- if (sel) sel.className = sel.className.replace('selected', '');
338
- this.className += ' selected';
339
- }, that.sc);
340
-
341
- live('autocomplete-suggestion', 'mousedown', function(e){
342
- if (hasClass(this, 'autocomplete-suggestion')) { // else outside click
343
- var v = this.getAttribute('data-val');
344
- that.value = v;
345
- o.onSelect(e, v, this);
346
- that.sc.style.display = 'none';
347
- that.sc.classList.add("hide");
348
-
349
- }
350
- }, that.sc);
351
-
352
- that.blurHandler = function(){
353
- try { var over_sb = document.querySelector('.autocomplete-suggestions:hover'); } catch(e){ var over_sb = 0; }
354
- if (!over_sb) {
355
- that.last_val = that.value;
356
- that.sc.style.display = 'none';
357
- that.sc.classList.add("hide");
358
- setTimeout(function(){
359
- that.sc.style.display = 'none';
360
- that.sc.classList.add("hide");
361
- }, 350); // hide suggestions on fast input
362
- } else if (that !== document.activeElement) setTimeout(function(){ that.focus(); }, 20);
363
- };
364
- addEvent(that, 'blur', that.blurHandler);
365
-
366
- var suggest = function(data, val){
367
- if (!val) {
368
- var val = that.value;
369
- }
370
- that.cache[val] = data;
371
- if (data.length && val.length >= o.minChars) {
372
- var s = '';
373
- for (var i=0;i<data.length;i++) s += o.renderItem(data[i], val);
374
- that.sc.innerHTML = s;
375
- that.updateSC(0);
376
- }
377
- else {
378
- that.sc.style.display = 'none';
379
- that.sc.classList.add("hide");
380
- }
381
- };
382
-
383
- that.keydownHandler = function(e){
384
- var key = window.event ? e.keyCode : e.which;
385
- // down (40), up (38)
386
- if ((key == 40 || key == 38) && that.sc.innerHTML) {
387
- var next, sel = that.sc.querySelector('.autocomplete-suggestion.selected');
388
- if (!sel) {
389
- next = (key == 40) ? that.sc.querySelector('.autocomplete-suggestion') : that.sc.childNodes[that.sc.childNodes.length - 1]; // first : last
390
- next.className += ' selected';
391
- that.value = next.getAttribute('data-val');
392
- } else {
393
- next = (key == 40) ? sel.nextSibling : sel.previousSibling;
394
- if (next) {
395
- sel.className = sel.className.replace('selected', '');
396
- next.className += ' selected';
397
- that.value = next.getAttribute('data-val');
398
- }
399
- else { sel.className = sel.className.replace('selected', ''); that.value = that.last_val; next = 0; }
400
- }
401
- that.updateSC(0, next);
402
- return false;
403
- }
404
- // esc
405
- else if (key == 27) {
406
- that.value = that.last_val;
407
- that.sc.style.display = 'none';
408
- that.sc.classList.add("hide");
409
- }
410
- // enter
411
- else if (key == 13 || key == 9) {
412
- if (that.sc.style.display !== 'none') {
413
- e.preventDefault();
414
- }
415
- var sel = that.sc.querySelector('.autocomplete-suggestion.selected');
416
- if (sel && that.sc.style.display != 'none') {
417
- o.onSelect(e, sel.getAttribute('data-val'), sel);
418
- setTimeout(function(){
419
- that.sc.style.display = 'none';
420
- that.sc.classList.add("hide");
421
- }, 20); }
422
- }
423
- };
424
- addEvent(that, 'keydown', that.keydownHandler);
425
-
426
- that.keyupHandler = function(e){
427
- var key = window.event ? e.keyCode : e.which;
428
- if (!key || (key < 35 || key > 40) && key != 13 && key != 27) {
429
- var val = that.value;
430
- if (val.length >= o.minChars) {
431
- if (val != that.last_val) {
432
- that.last_val = val;
433
- clearTimeout(that.timer);
434
- if (o.cache) {
435
- if (val in that.cache) { suggest(that.cache[val]); return; }
436
- // no requests if previous suggestions were empty
437
- for (var i=1; i<val.length-o.minChars; i++) {
438
- var part = val.slice(0, val.length-i);
439
- if (part in that.cache && !that.cache[part].length) { suggest([]); return; }
440
- }
441
- }
442
- that.timer = setTimeout(function(){ o.source(val, suggest); }, o.delay);
443
- }
444
- } else {
445
- that.last_val = val;
446
- that.sc.style.display = 'none';
447
- that.sc.classList.add("hide");
448
- }
449
- }
450
- };
451
- addEvent(that, 'keyup', that.keyupHandler);
452
-
453
- that.focusHandler = function(e){
454
- that.last_val = '\n';
455
- that.keyupHandler(e);
456
- };
457
- if (!o.minChars) addEvent(that, 'focus', that.focusHandler);
458
- }
459
-
460
- // public destroy method
461
- this.destroy = function(){
462
- for (var i=0; i<elems.length; i++) {
463
- var that = elems[i];
464
- removeEvent(window, 'resize', that.updateSC);
465
- removeEvent(that, 'blur', that.blurHandler);
466
- removeEvent(that, 'focus', that.focusHandler);
467
- removeEvent(that, 'keydown', that.keydownHandler);
468
- removeEvent(that, 'keyup', that.keyupHandler);
469
- if (that.autocompleteAttr)
470
- that.setAttribute('autocomplete', that.autocompleteAttr);
471
- else
472
- that.removeAttribute('autocomplete');
473
- document.body.removeChild(that.sc);
474
- that = null;
475
- }
476
- };
477
- }
478
- return autoComplete;
479
- })();
480
-
481
- (function(){
482
- if (module.exports)
483
- module.exports = autoComplete;
484
- else
485
- window.autoComplete = autoComplete;
486
- })();
487
- }(autoComplete));
488
-
489
- var autoComplete_1 = autoComplete.exports;
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
- 'default': autoComplete_1
494
- }, [autoComplete.exports]);
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(d3TimeYear(d), d) * cellSize; })
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(d3TimeYear(t0), t0);
919
+ var w0 = sunday.count(year(t0), t0);
917
920
  var d1 = t1.getDay();
918
- var w1 = sunday.count(d3TimeYear(t1), t1);
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$1 = {exports: {}};
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
- if (!(this instanceof simpleheat)) return new simpleheat(canvas);
2394
+ function simpleheat(canvas) {
2395
+ if (!(this instanceof simpleheat)) return new simpleheat(canvas);
2393
2396
 
2394
- this._canvas = canvas = typeof canvas === 'string' ? document.getElementById(canvas) : canvas;
2397
+ this._canvas = canvas = typeof canvas === 'string' ? document.getElementById(canvas) : canvas;
2395
2398
 
2396
- this._ctx = canvas.getContext('2d');
2397
- this._width = canvas.width;
2398
- this._height = canvas.height;
2399
+ this._ctx = canvas.getContext('2d');
2400
+ this._width = canvas.width;
2401
+ this._height = canvas.height;
2399
2402
 
2400
- this._max = 1;
2401
- this._data = [];
2402
- }
2403
+ this._max = 1;
2404
+ this._data = [];
2405
+ }
2403
2406
 
2404
- simpleheat.prototype = {
2407
+ simpleheat.prototype = {
2405
2408
 
2406
- defaultRadius: 25,
2409
+ defaultRadius: 25,
2407
2410
 
2408
- defaultGradient: {
2409
- 0.4: 'blue',
2410
- 0.6: 'cyan',
2411
- 0.7: 'lime',
2412
- 0.8: 'yellow',
2413
- 1.0: 'red'
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
- data: function (data) {
2417
- this._data = data;
2418
- return this;
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
- add: function (point) {
2427
- this._data.push(point);
2428
- return this;
2429
- },
2424
+ max: function (max) {
2425
+ this._max = max;
2426
+ return this;
2427
+ },
2430
2428
 
2431
- clear: function () {
2432
- this._data = [];
2433
- return this;
2434
- },
2429
+ add: function (point) {
2430
+ this._data.push(point);
2431
+ return this;
2432
+ },
2435
2433
 
2436
- radius: function (r, blur) {
2437
- blur = blur === undefined ? 15 : blur;
2434
+ clear: function () {
2435
+ this._data = [];
2436
+ return this;
2437
+ },
2438
2438
 
2439
- // create a grayscale blurred circle image that we'll use for drawing points
2440
- var circle = this._circle = this._createCanvas(),
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
- circle.width = circle.height = r2 * 2;
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
- ctx.shadowOffsetX = ctx.shadowOffsetY = r2 * 2;
2447
- ctx.shadowBlur = blur;
2448
- ctx.shadowColor = 'black';
2447
+ circle.width = circle.height = r2 * 2;
2449
2448
 
2450
- ctx.beginPath();
2451
- ctx.arc(-r2, -r2, r, 0, Math.PI * 2, true);
2452
- ctx.closePath();
2453
- ctx.fill();
2449
+ ctx.shadowOffsetX = ctx.shadowOffsetY = r2 * 2;
2450
+ ctx.shadowBlur = blur;
2451
+ ctx.shadowColor = 'black';
2454
2452
 
2455
- return this;
2456
- },
2453
+ ctx.beginPath();
2454
+ ctx.arc(-r2, -r2, r, 0, Math.PI * 2, true);
2455
+ ctx.closePath();
2456
+ ctx.fill();
2457
2457
 
2458
- resize: function () {
2459
- this._width = this._canvas.width;
2460
- this._height = this._canvas.height;
2461
- },
2458
+ return this;
2459
+ },
2462
2460
 
2463
- gradient: function (grad) {
2464
- // create a 256x1 gradient that we'll use to turn a grayscale heatmap into a colored one
2465
- var canvas = this._createCanvas(),
2466
- ctx = canvas.getContext('2d'),
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
- canvas.width = 1;
2470
- canvas.height = 256;
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
- for (var i in grad) {
2473
- gradient.addColorStop(+i, grad[i]);
2474
- }
2472
+ canvas.width = 1;
2473
+ canvas.height = 256;
2475
2474
 
2476
- ctx.fillStyle = gradient;
2477
- ctx.fillRect(0, 0, 1, 256);
2475
+ for (var i in grad) {
2476
+ gradient.addColorStop(+i, grad[i]);
2477
+ }
2478
2478
 
2479
- this._grad = ctx.getImageData(0, 0, 1, 256).data;
2479
+ ctx.fillStyle = gradient;
2480
+ ctx.fillRect(0, 0, 1, 256);
2480
2481
 
2481
- return this;
2482
- },
2482
+ this._grad = ctx.getImageData(0, 0, 1, 256).data;
2483
2483
 
2484
- draw: function (minOpacity) {
2485
- if (!this._circle) this.radius(this.defaultRadius);
2486
- if (!this._grad) this.gradient(this.defaultGradient);
2484
+ return this;
2485
+ },
2487
2486
 
2488
- var ctx = this._ctx;
2487
+ draw: function (minOpacity) {
2488
+ if (!this._circle) this.radius(this.defaultRadius);
2489
+ if (!this._grad) this.gradient(this.defaultGradient);
2489
2490
 
2490
- ctx.clearRect(0, 0, this._width, this._height);
2491
-
2492
- // draw a grayscale heatmap by putting a blurred circle at each data point
2493
- for (var i = 0, len = this._data.length, p; i < len; i++) {
2494
- p = this._data[i];
2495
- ctx.globalAlpha = Math.max(p[2] / this._max, minOpacity === undefined ? 0.05 : minOpacity);
2496
- ctx.drawImage(this._circle, p[0] - this._r, p[1] - this._r);
2497
- }
2498
-
2499
- // colorize the heatmap, using opacity value of each pixel to get the right color from our gradient
2500
- var colored = ctx.getImageData(0, 0, this._width, this._height);
2501
- this._colorize(colored.data, this._grad);
2502
- ctx.putImageData(colored, 0, 0);
2503
-
2504
- return this;
2505
- },
2506
-
2507
- _colorize: function (pixels, gradient) {
2508
- for (var i = 0, len = pixels.length, j; i < len; i += 4) {
2509
- j = pixels[i + 3] * 4; // get gradient color from opacity value
2510
-
2511
- if (j) {
2512
- pixels[i] = gradient[j];
2513
- pixels[i + 1] = gradient[j + 1];
2514
- pixels[i + 2] = gradient[j + 2];
2515
- }
2516
- }
2517
- },
2518
-
2519
- _createCanvas: function () {
2520
- if (typeof document !== 'undefined') {
2521
- return document.createElement('canvas');
2522
- } else {
2523
- // create a new canvas instance in node.js
2524
- // the canvas class needs to have a default constructor without any parameter
2525
- return new this._canvas.constructor();
2526
- }
2527
- }
2528
- };
2529
- }(simpleheat$1));
2530
-
2531
- var simpleheat_1 = simpleheat$1.exports;
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
- 'default': simpleheat_1
2536
- }, [simpleheat$1.exports]);
2539
+ default: simpleheat$1
2540
+ }, [simpleheatExports]);
2537
2541
 
2538
- var simpleheat = window.simpleheat || (_simpleheat && simpleheat_1) || _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
- widgetArrayWalker: widgetArrayWalker,
4755
- widgetPropertyWalker: widgetPropertyWalker,
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
- serialize: serialize
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%}";