Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@hpcc-js/api

Package Overview
Dependencies
Maintainers
1
Versions
198
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@hpcc-js/api - npm Package Compare versions

Comparing version 0.0.52 to 0.0.53

2

build/index.es6.js

@@ -1842,3 +1842,3 @@ function __$styleInject(css, returnValue) {

opts = opts || {};
opts.label = opts.label || "";
opts.label = opts.label === undefined ? "" : opts.label;
opts.series = opts.series || "";

@@ -1845,0 +1845,0 @@ if (opts.value instanceof Date) {

@@ -1846,3 +1846,3 @@ (function (global, factory) {

opts = opts || {};
opts.label = opts.label || "";
opts.label = opts.label === undefined ? "" : opts.label;
opts.series = opts.series || "";

@@ -1849,0 +1849,0 @@ if (opts.value instanceof Date) {

@@ -1,1 +0,1 @@

!function(t,n){"object"==typeof exports&&"undefined"!=typeof module?n(exports,require("@hpcc-js/common")):"function"==typeof define&&define.amd?define(["exports","@hpcc-js/common"],n):n(t["@hpcc-js/api"]={},t["@hpcc-js/common"])}(this,function(t,n){"use strict";function e(){}function r(){}function o(){}function i(t,n){function e(){this.constructor=t}C(t,n),t.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}function u(){}function l(t){return new a(t)}function a(t){if(!(n=L.exec(t)))throw new Error("invalid format: "+t);var n,e=n[1]||" ",r=n[2]||">",o=n[3]||"-",i=n[4]||"",u=!!n[5],l=n[6]&&+n[6],a=!!n[7],s=n[8]&&+n[8].slice(1),c=n[9]||"";"n"===c?(a=!0,c="g"):P[c]||(c=""),(u||"0"===e&&"="===r)&&(u=!0,e="0",r="="),this.fill=e,this.align=r,this.sign=o,this.symbol=i,this.zero=u,this.width=l,this.comma=a,this.precision=s,this.type=c}function s(t,n,e){return function(r){try{t.call(this,this.__data__,n,e)}finally{}}}function c(t,n,e){var r=X.hasOwnProperty(t.type)?function(t,n,e){return t=s(t,n,e),function(n){var e=n.relatedTarget;e&&(e===this||8&e.compareDocumentPosition(this))||t.call(this,n)}}:s;return function(o,i,u){var l,a=this.__on,s=r(n,i,u);if(a)for(var c=0,f=a.length;c<f;++c)if((l=a[c]).type===t.type&&l.name===t.name)return this.removeEventListener(l.type,l.listener,l.capture),this.addEventListener(l.type,l.listener=s,l.capture=e),void(l.value=n);this.addEventListener(t.type,s,e),l={type:t.type,name:t.name,value:n,listener:s,capture:e},a?a.push(l):this.__on=[l]}}function f(t,n){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=n}function p(t,n){return t<n?-1:t>n?1:t>=n?0:NaN}function h(t){return t.trim().split(/^|\s+/)}function y(t){return t.classList||new d(t)}function d(t){this._node=t,this._names=h(t.getAttribute("class")||"")}function v(t,n){for(var e=y(t),r=-1,o=n.length;++r<o;)e.add(n[r])}function m(t,n){for(var e=y(t),r=-1,o=n.length;++r<o;)e.remove(n[r])}function g(){this.nextSibling&&this.parentNode.appendChild(this)}function _(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function w(){var t=this.parentNode;t&&t.removeChild(this)}function x(t,n,e){var r=Q(t),o=r.CustomEvent;"function"==typeof o?o=new o(n,e):(o=r.document.createEvent("Event"),e?(o.initEvent(n,e.bubbles,e.cancelable),o.detail=e.detail):o.initEvent(n,!1,!1)),t.dispatchEvent(o)}function b(t,n){this._groups=t,this._parents=n}function S(){return new b([[document.documentElement]],tt)}function k(){}function E(t,n){var e=new k;if(t instanceof k)t.each(function(t,n){e.set(n,t)});else if(Array.isArray(t)){var r,o=-1,i=t.length;if(null==n)for(;++o<i;)e.set(o,t[o]);else for(;++o<i;)e.set(n(r=t[o],o,t),r)}else if(t)for(var u in t)e.set(u,t[u]);return e}function A(){}e.prototype._palette=n.Palette.rainbow("default"),e.prototype.click=function(t,n,e){console.log("Click: "+JSON.stringify(t)+", "+n+", "+e)},e.prototype.dblclick=function(t,n,e){console.log("Double click: "+JSON.stringify(t)+", "+n+", "+e)},r.prototype._palette=n.Palette.ordinal("default"),r.prototype.click=function(t,n,e){console.log("Click: "+JSON.stringify(t)+", "+n+", "+e)},r.prototype.dblclick=function(t,n,e){console.log("Double click: "+JSON.stringify(t)+", "+n+", "+e)},o.prototype.vertex_click=function(t,n,e,r){r&&r.vertex&&console.log("Vertex click: "+r.vertex.id())},o.prototype.vertex_dblclick=function(t,n,e,r){r&&r.vertex&&console.log("Vertex double click: "+r.vertex.id())},o.prototype.edge_click=function(t,n,e,r){r&&r.edge&&console.log("Edge click: "+r.edge.id())},o.prototype.edge_dblclick=function(t,n,e,r){r&&r.edge&&console.log("Edge double click: "+r.edge.id())};var C=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var e in n)n.hasOwnProperty(e)&&(t[e]=n[e])},M=function(t){function n(){return t.call(this)||this}return i(n,t),n.prototype.isValid=function(){if(this.validate()){if(!new RegExp(this.validate()).test(this.value()))return!1}return!0},n.prototype.hasValue=function(){if("function"==typeof this.type){switch(this.type()){case"radio":case"checkbox":if(this.value()&&"false"!==this.value())return!0;break;default:if(this.value())return!0}return!1}return""!==this.value()},n.prototype.blur=function(t){},n.prototype.click=function(t){},n.prototype.dblclick=function(t){},n.prototype.change=function(t){},n.prototype.resetValue=function(t){t.value(t._inputElement[0].node().value)},n.prototype.disable=function(t){this._inputElement.forEach(function(n,e){n.attr("disabled",t?"disabled":null)})},n.prototype.setFocus=function(){this._inputElement.length&&this._inputElement[0].node().focus()},n}(n.Widget);M.prototype.publish("name","","string","HTML name for the input"),M.prototype.publish("label","","string","Descriptive label"),M.prototype.publish("value","","string","Input Current Value"),M.prototype.publish("validate",null,"string","Input Validation"),u.prototype._palette=n.Palette.ordinal("default"),u.prototype.click=function(t,n,e){console.log("Click: "+JSON.stringify(t)+", "+n+", "+e)},u.prototype.dblclick=function(t,n,e){console.log("Double click: "+JSON.stringify(t)+", "+n+", "+e)};var N,T=function(t,n){if((e=(t=n?t.toExponential(n-1):t.toExponential()).indexOf("e"))<0)return null;var e,r=t.slice(0,e);return[r.length>1?r[0]+r.slice(2):r,+t.slice(e+1)]},O=function(t){return(t=T(Math.abs(t)))?t[1]:NaN},V=function(t,n){var e=T(t,n);if(!e)return t+"";var r=e[0],o=e[1];return o<0?"0."+new Array(-o).join("0")+r:r.length>o+1?r.slice(0,o+1)+"."+r.slice(o+1):r+new Array(o-r.length+2).join("0")},P={"":function(t,n){t:for(var e,r=(t=t.toPrecision(n)).length,o=1,i=-1;o<r;++o)switch(t[o]){case".":i=e=o;break;case"0":0===i&&(i=o),e=o;break;case"e":break t;default:i>0&&(i=0)}return i>0?t.slice(0,i)+t.slice(e+1):t},"%":function(t,n){return(100*t).toFixed(n)},b:function(t){return Math.round(t).toString(2)},c:function(t){return t+""},d:function(t){return Math.round(t).toString(10)},e:function(t,n){return t.toExponential(n)},f:function(t,n){return t.toFixed(n)},g:function(t,n){return t.toPrecision(n)},o:function(t){return Math.round(t).toString(8)},p:function(t,n){return V(100*t,n)},r:V,s:function(t,n){var e=T(t,n);if(!e)return t+"";var r=e[0],o=e[1],i=o-(N=3*Math.max(-8,Math.min(8,Math.floor(o/3))))+1,u=r.length;return i===u?r:i>u?r+new Array(i-u+1).join("0"):i>0?r.slice(0,i)+"."+r.slice(i):"0."+new Array(1-i).join("0")+T(t,Math.max(0,n+i-1))[0]},X:function(t){return Math.round(t).toString(16).toUpperCase()},x:function(t){return Math.round(t).toString(16)}},L=/^(?:(.)?([<>=^]))?([+\-\( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?([a-z%])?$/i;l.prototype=a.prototype,a.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(null==this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(null==this.precision?"":"."+Math.max(0,0|this.precision))+this.type};var F,$,j,z=function(t){return t},D=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"],I=function(t){function n(t){function n(t){var n,r,u,l=m,f=g;if("c"===v)f=_(t)+f,t="";else{var x=(t=+t)<0;if(t=_(Math.abs(t),d),x&&0==+t&&(x=!1),l=(x?"("===c?c:"-":"-"===c||"("===c?"":c)+l,f=f+("s"===v?D[8+N/3]:"")+(x&&"("===c?")":""),w)for(n=-1,r=t.length;++n<r;)if(48>(u=t.charCodeAt(n))||u>57){f=(46===u?o+t.slice(n+1):t.slice(n))+f,t=t.slice(0,n);break}}y&&!p&&(t=e(t,1/0));var b=l.length+t.length+f.length,S=b<h?new Array(h-b+1).join(a):"";switch(y&&p&&(t=e(S+t,S.length?h-f.length:1/0),S=""),s){case"<":t=l+t+f+S;break;case"=":t=l+S+t+f;break;case"^":t=S.slice(0,b=S.length>>1)+l+t+f+S.slice(b);break;default:t=S+l+t+f}return i(t)}var a=(t=l(t)).fill,s=t.align,c=t.sign,f=t.symbol,p=t.zero,h=t.width,y=t.comma,d=t.precision,v=t.type,m="$"===f?r[0]:"#"===f&&/[boxX]/.test(v)?"0"+v.toLowerCase():"",g="$"===f?r[1]:/[%p]/.test(v)?u:"",_=P[v],w=!v||/[defgprs%]/.test(v);return d=null==d?v?6:12:/[gprs]/.test(v)?Math.max(1,Math.min(21,d)):Math.max(0,Math.min(20,d)),n.toString=function(){return t+""},n}var e=t.grouping&&t.thousands?function(t,n){return function(e,r){for(var o=e.length,i=[],u=0,l=t[0],a=0;o>0&&l>0&&(a+l+1>r&&(l=Math.max(1,r-a)),i.push(e.substring(o-=l,o+l)),!((a+=l+1)>r));)l=t[u=(u+1)%t.length];return i.reverse().join(n)}}(t.grouping,t.thousands):z,r=t.currency,o=t.decimal,i=t.numerals?function(t){return function(n){return n.replace(/[0-9]/g,function(n){return t[+n]})}}(t.numerals):z,u=t.percent||"%";return{format:n,formatPrefix:function(t,e){var r=n((t=l(t),t.type="f",t)),o=3*Math.max(-8,Math.min(8,Math.floor(O(e)/3))),i=Math.pow(10,-o),u=D[8+o/3];return function(t){return r(i*t)+u}}}};!function(t){F=I(t),$=F.format,j=F.formatPrefix}({decimal:".",thousands:",",grouping:[3],currency:["$",""]});var B="http://www.w3.org/1999/xhtml",H={svg:"http://www.w3.org/2000/svg",xhtml:B,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"},U=function(t){var n=t+="",e=n.indexOf(":");return e>=0&&"xmlns"!==(n=t.slice(0,e))&&(t=t.slice(e+1)),H.hasOwnProperty(n)?{space:H[n],local:t}:t},W=function(t){var n=U(t);return(n.local?function(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}:function(t){return function(){var n=this.ownerDocument,e=this.namespaceURI;return e===B&&n.documentElement.namespaceURI===B?n.createElement(t):n.createElementNS(e,t)}})(n)},q=function(t){return function(){return this.matches(t)}};if("undefined"!=typeof document){var J=document.documentElement;if(!J.matches){var G=J.webkitMatchesSelector||J.msMatchesSelector||J.mozMatchesSelector||J.oMatchesSelector;q=function(t){return function(){return G.call(this,t)}}}}var R=q,X={};if("undefined"!=typeof document){"onmouseenter"in document.documentElement||(X={mouseenter:"mouseover",mouseleave:"mouseout"})}var Y=function(t){return null==t?function(){}:function(){return this.querySelector(t)}},Z=function(t){return new Array(t.length)};f.prototype={constructor:f,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,n){return this._parent.insertBefore(t,n)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}};var K="$",Q=function(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView};d.prototype={add:function(t){this._names.indexOf(t)<0&&(this._names.push(t),this._node.setAttribute("class",this._names.join(" ")))},remove:function(t){var n=this._names.indexOf(t);n>=0&&(this._names.splice(n,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};var tt=[null];b.prototype=S.prototype={constructor:b,select:function(t){"function"!=typeof t&&(t=Y(t));for(var n=this._groups,e=n.length,r=new Array(e),o=0;o<e;++o)for(var i,u,l=n[o],a=l.length,s=r[o]=new Array(a),c=0;c<a;++c)(i=l[c])&&(u=t.call(i,i.__data__,c,l))&&("__data__"in i&&(u.__data__=i.__data__),s[c]=u);return new b(r,this._parents)},selectAll:function(t){"function"!=typeof t&&(t=function(t){return null==t?function(){return[]}:function(){return this.querySelectorAll(t)}}(t));for(var n=this._groups,e=n.length,r=[],o=[],i=0;i<e;++i)for(var u,l=n[i],a=l.length,s=0;s<a;++s)(u=l[s])&&(r.push(t.call(u,u.__data__,s,l)),o.push(u));return new b(r,o)},filter:function(t){"function"!=typeof t&&(t=R(t));for(var n=this._groups,e=n.length,r=new Array(e),o=0;o<e;++o)for(var i,u=n[o],l=u.length,a=r[o]=[],s=0;s<l;++s)(i=u[s])&&t.call(i,i.__data__,s,u)&&a.push(i);return new b(r,this._parents)},data:function(t,n){if(!t)return y=new Array(this.size()),s=-1,this.each(function(t){y[++s]=t}),y;var e=n?function(t,n,e,r,o,i,u){var l,a,s,c={},p=n.length,h=i.length,y=new Array(p);for(l=0;l<p;++l)(a=n[l])&&(y[l]=s=K+u.call(a,a.__data__,l,n),s in c?o[l]=a:c[s]=a);for(l=0;l<h;++l)(a=c[s=K+u.call(t,i[l],l,i)])?(r[l]=a,a.__data__=i[l],c[s]=null):e[l]=new f(t,i[l]);for(l=0;l<p;++l)(a=n[l])&&c[y[l]]===a&&(o[l]=a)}:function(t,n,e,r,o,i){for(var u,l=0,a=n.length,s=i.length;l<s;++l)(u=n[l])?(u.__data__=i[l],r[l]=u):e[l]=new f(t,i[l]);for(;l<a;++l)(u=n[l])&&(o[l]=u)},r=this._parents,o=this._groups;"function"!=typeof t&&(t=function(t){return function(){return t}}(t));for(var i=o.length,u=new Array(i),l=new Array(i),a=new Array(i),s=0;s<i;++s){var c=r[s],p=o[s],h=p.length,y=t.call(c,c&&c.__data__,s,r),d=y.length,v=l[s]=new Array(d),m=u[s]=new Array(d);e(c,p,v,m,a[s]=new Array(h),y,n);for(var g,_,w=0,x=0;w<d;++w)if(g=v[w]){for(w>=x&&(x=w+1);!(_=m[x])&&++x<d;);g._next=_||null}}return u=new b(u,r),u._enter=l,u._exit=a,u},enter:function(){return new b(this._enter||this._groups.map(Z),this._parents)},exit:function(){return new b(this._exit||this._groups.map(Z),this._parents)},merge:function(t){for(var n=this._groups,e=t._groups,r=n.length,o=e.length,i=Math.min(r,o),u=new Array(r),l=0;l<i;++l)for(var a,s=n[l],c=e[l],f=s.length,p=u[l]=new Array(f),h=0;h<f;++h)(a=s[h]||c[h])&&(p[h]=a);for(;l<r;++l)u[l]=n[l];return new b(u,this._parents)},order:function(){for(var t=this._groups,n=-1,e=t.length;++n<e;)for(var r,o=t[n],i=o.length-1,u=o[i];--i>=0;)(r=o[i])&&(u&&u!==r.nextSibling&&u.parentNode.insertBefore(r,u),u=r);return this},sort:function(t){function n(n,e){return n&&e?t(n.__data__,e.__data__):!n-!e}t||(t=p);for(var e=this._groups,r=e.length,o=new Array(r),i=0;i<r;++i){for(var u,l=e[i],a=l.length,s=o[i]=new Array(a),c=0;c<a;++c)(u=l[c])&&(s[c]=u);s.sort(n)}return new b(o,this._parents).order()},call:function(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this},nodes:function(){var t=new Array(this.size()),n=-1;return this.each(function(){t[++n]=this}),t},node:function(){for(var t=this._groups,n=0,e=t.length;n<e;++n)for(var r=t[n],o=0,i=r.length;o<i;++o){var u=r[o];if(u)return u}return null},size:function(){var t=0;return this.each(function(){++t}),t},empty:function(){return!this.node()},each:function(t){for(var n=this._groups,e=0,r=n.length;e<r;++e)for(var o,i=n[e],u=0,l=i.length;u<l;++u)(o=i[u])&&t.call(o,o.__data__,u,i);return this},attr:function(t,n){var e=U(t);if(arguments.length<2){var r=this.node();return e.local?r.getAttributeNS(e.space,e.local):r.getAttribute(e)}return this.each((null==n?e.local?function(t){return function(){this.removeAttributeNS(t.space,t.local)}}:function(t){return function(){this.removeAttribute(t)}}:"function"==typeof n?e.local?function(t,n){return function(){var e=n.apply(this,arguments);null==e?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,e)}}:function(t,n){return function(){var e=n.apply(this,arguments);null==e?this.removeAttribute(t):this.setAttribute(t,e)}}:e.local?function(t,n){return function(){this.setAttributeNS(t.space,t.local,n)}}:function(t,n){return function(){this.setAttribute(t,n)}})(e,n))},style:function(t,n,e){return arguments.length>1?this.each((null==n?function(t){return function(){this.style.removeProperty(t)}}:"function"==typeof n?function(t,n,e){return function(){var r=n.apply(this,arguments);null==r?this.style.removeProperty(t):this.style.setProperty(t,r,e)}}:function(t,n,e){return function(){this.style.setProperty(t,n,e)}})(t,n,null==e?"":e)):function(t,n){return t.style.getPropertyValue(n)||Q(t).getComputedStyle(t,null).getPropertyValue(n)}(this.node(),t)},property:function(t,n){return arguments.length>1?this.each((null==n?function(t){return function(){delete this[t]}}:"function"==typeof n?function(t,n){return function(){var e=n.apply(this,arguments);null==e?delete this[t]:this[t]=e}}:function(t,n){return function(){this[t]=n}})(t,n)):this.node()[t]},classed:function(t,n){var e=h(t+"");if(arguments.length<2){for(var r=y(this.node()),o=-1,i=e.length;++o<i;)if(!r.contains(e[o]))return!1;return!0}return this.each(("function"==typeof n?function(t,n){return function(){(n.apply(this,arguments)?v:m)(this,t)}}:n?function(t){return function(){v(this,t)}}:function(t){return function(){m(this,t)}})(e,n))},text:function(t){return arguments.length?this.each(null==t?function(){this.textContent=""}:("function"==typeof t?function(t){return function(){var n=t.apply(this,arguments);this.textContent=null==n?"":n}}:function(t){return function(){this.textContent=t}})(t)):this.node().textContent},html:function(t){return arguments.length?this.each(null==t?function(){this.innerHTML=""}:("function"==typeof t?function(t){return function(){var n=t.apply(this,arguments);this.innerHTML=null==n?"":n}}:function(t){return function(){this.innerHTML=t}})(t)):this.node().innerHTML},raise:function(){return this.each(g)},lower:function(){return this.each(_)},append:function(t){var n="function"==typeof t?t:W(t);return this.select(function(){return this.appendChild(n.apply(this,arguments))})},insert:function(t,n){var e="function"==typeof t?t:W(t),r=null==n?function(){return null}:"function"==typeof n?n:Y(n);return this.select(function(){return this.insertBefore(e.apply(this,arguments),r.apply(this,arguments)||null)})},remove:function(){return this.each(w)},datum:function(t){return arguments.length?this.property("__data__",t):this.node().__data__},on:function(t,n,e){var r,o,i=(t+"").trim().split(/^|\s+/).map(function(t){var n="",e=t.indexOf(".");return e>=0&&(n=t.slice(e+1),t=t.slice(0,e)),{type:t,name:n}}),u=i.length;if(!(arguments.length<2)){for(l=n?c:function(t){return function(){var n=this.__on;if(n){for(var e,r=0,o=-1,i=n.length;r<i;++r)e=n[r],t.type&&e.type!==t.type||e.name!==t.name?n[++o]=e:this.removeEventListener(e.type,e.listener,e.capture);++o?n.length=o:delete this.__on}}},null==e&&(e=!1),r=0;r<u;++r)this.each(l(i[r],n,e));return this}var l=this.node().__on;if(l)for(var a,s=0,f=l.length;s<f;++s)for(r=0,a=l[s];r<u;++r)if((o=i[r]).type===a.type&&o.name===a.name)return a.value},dispatch:function(t,n){return this.each(("function"==typeof n?function(t,n){return function(){return x(this,t,n.apply(this,arguments))}}:function(t,n){return function(){return x(this,t,n)}})(t,n))}};var nt=function(t){return"string"==typeof t?new b([[document.querySelector(t)]],[document.documentElement]):new b([[t]],tt)};k.prototype=E.prototype={constructor:k,has:function(t){return"$"+t in this},get:function(t){return this["$"+t]},set:function(t,n){return this["$"+t]=n,this},remove:function(t){var n="$"+t;return n in this&&delete this[n]},clear:function(){for(var t in this)"$"===t[0]&&delete this[t]},keys:function(){var t=[];for(var n in this)"$"===n[0]&&t.push(n.slice(1));return t},values:function(){var t=[];for(var n in this)"$"===n[0]&&t.push(this[n]);return t},entries:function(){var t=[];for(var n in this)"$"===n[0]&&t.push({key:n.slice(1),value:this[n]});return t},size:function(){var t=0;for(var n in this)"$"===n[0]&&++t;return t},empty:function(){for(var t in this)if("$"===t[0])return!1;return!0},each:function(t){for(var n in this)"$"===n[0]&&t(this[n],n.slice(1),this)}};var et=E.prototype;A.prototype=function(t,n){var e=new A;if(t instanceof A)t.each(function(t){e.add(t)});else if(t){var r=-1,o=t.length;if(null==n)for(;++r<o;)e.add(t[r]);else for(;++r<o;)e.add(n(t[r],r,t))}return e}.prototype={constructor:A,has:et.has,add:function(t){return t+="",this["$"+t]=t,this},remove:et.remove,clear:et.clear,values:et.keys,size:et.size,empty:et.empty,each:et.each},function(t,n){if("undefined"==typeof document)return n;t=t||"";var e=document.head||document.getElementsByTagName("head")[0],r=document.createElement("style");r.type="text/css",e.appendChild(r),r.styleSheet?r.styleSheet.cssText=t:r.appendChild(document.createTextNode(t))}('.d3-tip {\r\n line-height: 1;\r\n font-weight: bold;\r\n padding: 12px;\r\n background: rgba(0, 0, 0, 0.66);\r\n color: #fff;\r\n border-radius: 2px;\r\n pointer-events: none !important;\r\n z-index:10;\r\n}\r\n\r\n.d3-tip.hidden {\r\n visibility:hidden;\r\n}\r\n\r\n/* Creates a small triangle extender for the tooltip */\r\n.d3-tip:after {\r\n box-sizing: border-box;\r\n display: inline;\r\n font-size: 10px;\r\n width: 100%;\r\n line-height: 1;\r\n color: rgba(0, 0, 0, 0.66);\r\n position: absolute;\r\n pointer-events: none !important;\r\n}\r\n\r\n/* Northward tooltips */\r\n.d3-tip.n:after {\r\n content: "\\25BC";\r\n margin: -1px 0 0 0;\r\n top: 100%;\r\n left: 0;\r\n text-align: center;\r\n}\r\n\r\n/* Eastward tooltips */\r\n.d3-tip.e:after {\r\n content: "\\25C0";\r\n margin: -4px 0 0 0;\r\n top: 50%;\r\n left: -8px;\r\n}\r\n\r\n/* Southward tooltips */\r\n.d3-tip.s:after {\r\n content: "\\25B2";\r\n margin: 0 0 1px 0;\r\n top: -8px;\r\n left: 0;\r\n text-align: center;\r\n}\r\n\r\n/* Westward tooltips */\r\n.d3-tip.w:after {\r\n content: "\\25B6";\r\n margin: -4px 0 0 -1px;\r\n top: 50%;\r\n left: 100%;\r\n}\r\n\r\n.d3-tip.notick:after {\r\n content: "" !important;\r\n}\r\n\r\n.common_Widget .over {\r\n stroke: rgba(0, 0, 0, 0.66);\r\n opacity: 0.66;\r\n}\r\n',void 0);var rt=function(t){function n(){var n=t.call(this)||this;if(n._valueFormatter=$(n.tooltipValueFormat()),n.layerEnter){var e=n.layerEnter;n.layerEnter=function(t,n,r){this.tooltipEnter(n),e.apply(this,arguments)};var r=n.layerUpdate;n.layerUpdate=function(t){r.apply(this,arguments),this.tooltipUpdate()};var o=n.layerExit;n.layerExit=function(t){o.apply(this,arguments),this.tooltipExit()}}else{var i=n.enter;n.enter=function(t,n){this.tooltipEnter(n),i.apply(this,arguments)};var u=n.update;n.update=function(t,n){u.apply(this,arguments),this.tooltipUpdate()};var l=n.exit;n.exit=function(t,n){l.apply(this,arguments),this.tooltipExit()}}return n}return i(n,t),n.prototype.tooltipEnter=function(t){var n=this;this.tooltip=function(){function t(t){(c=function(n){var e=t.node();return e?"svg"===e.tagName.toLowerCase()?e:e.ownerSVGElement:null}())&&(f=c.createSVGPoint(),a().appendChild(s))}function n(){var t=nt(document.createElement("div"));return t.style("position","absolute").style("top",0).style("opacity",0).style("pointer-events","none").style("box-sizing","border-box"),t.node()}function e(){return null==s&&(s=n(),a().appendChild(s)),nt(s)}function r(){for(var t=p||event.target;null==t.getScreenCTM&&null==t.parentNode;)t=t.parentNode;var n={},e=t.getScreenCTM(),r=t.getBBox(),o=r.width,i=r.height,u=r.x,l=r.y;return f.x=u,f.y=l,n.nw=f.matrixTransform(e),f.x+=o,n.ne=f.matrixTransform(e),f.y+=i,n.se=f.matrixTransform(e),f.x-=o,n.sw=f.matrixTransform(e),f.y-=i/2,n.w=f.matrixTransform(e),f.x+=o,n.e=f.matrixTransform(e),f.x-=o/2,f.y-=i/2,n.n=f.matrixTransform(e),f.y+=i,n.s=f.matrixTransform(e),n}function o(t){return"function"==typeof t?t:function(){return t}}var i=function(){return"n"},u=function(){return[0,0]},l=function(){return" "},a=o(document.body),s=n(),c=null,f=null,p=null;t.show=function(){var n=Array.prototype.slice.call(arguments);n[n.length-1]instanceof SVGElement&&(p=n.pop());var r,o=l.apply(this,n),s=u.apply(this,n),c=i.apply(this,n),f=e(),d=y.length,v=document.documentElement.scrollTop||a().scrollTop,m=document.documentElement.scrollLeft||a().scrollLeft;for(f.html(o).style("opacity",1).style("pointer-events","all");d--;)f.classed(y[d],!1);return r=h.get(c).apply(this),f.classed(c,!0).style("top",r.top+s[0]+v+"px").style("left",r.left+s[1]+m+"px"),t},t.hide=function(){return e().style("opacity",0).style("pointer-events","none"),t},t.attr=function(n,r){if(arguments.length<2&&"string"==typeof n)return e().attr(n);var o=Array.prototype.slice.call(arguments);return S.prototype.attr.apply(e(),o),t},t.style=function(n,r){if(arguments.length<2&&"string"==typeof n)return e().style(n);var o=Array.prototype.slice.call(arguments);return S.prototype.style.apply(e(),o),t},t.direction=function(n){return arguments.length?(i=null==n?n:o(n),t):i},t.offset=function(n){return arguments.length?(u=null==n?n:o(n),t):u},t.html=function(n){return arguments.length?(l=null==n?n:o(n),t):l},t.rootElement=function(n){return arguments.length?(a=null==n?n:o(n),t):a},t.destroy=function(){return s&&(e().remove(),s=null),t};var h=E({n:function(){var t=r();return{top:t.n.y-s.offsetHeight,left:t.n.x-s.offsetWidth/2}},s:function(){var t=r();return{top:t.s.y,left:t.s.x-s.offsetWidth/2}},e:function(){var t=r();return{top:t.e.y-s.offsetHeight/2,left:t.e.x}},w:function(){var t=r();return{top:t.w.y-s.offsetHeight/2,left:t.w.x-s.offsetWidth}},nw:function(){var t=r();return{top:t.nw.y-s.offsetHeight,left:t.nw.x-s.offsetWidth}},ne:function(){var t=r();return{top:t.ne.y-s.offsetHeight,left:t.ne.x}},sw:function(){var t=r();return{top:t.sw.y,left:t.sw.x-s.offsetWidth}},se:function(){var t=r();return{top:t.se.y,left:t.se.x}}}),y=h.keys();return t}().attr("class","d3-tip").offset(function(){switch(n.tooltip.direction()()){case"e":return[0,n.tooltipOffset()];default:return[-n.tooltipOffset(),0]}}),t.call(this.tooltip)},n.prototype.tooltipUpdate=function(){var t=this.tooltip.attr("class");t&&(t=t.split(" notick").join("")+(this.tooltipTick()?"":" notick")+("none"===this.tooltipStyle()?" hidden":""),this.tooltip.attr("class",t))},n.prototype.tooltipExit=function(){this.tooltip&&this.tooltip.destroy()},n.prototype._tooltipHTML=function(t){return t},n.prototype.tooltipHTML=function(t){return this.tooltip.html(t)},n.prototype.tooltipFormat=function(t){switch(t=t||{},t.label=t.label||"",t.series=t.series||"",t.value instanceof Date?t.value=t.value||"":t.value=this._valueFormatter(t.value)||"",this.tooltipStyle()){case"none":break;default:return t.series?"<span style='color:"+this.tooltipSeriesColor()+"'>"+t.series+"</span> / <span style='color:"+this.tooltipLabelColor()+"'>"+t.label+"</span>: <span style='color:"+this.tooltipValueColor()+"'>"+t.value+"</span>":"<span style='color:"+this.tooltipLabelColor()+"'>"+t.label+"</span>: <span style='color:"+this.tooltipValueColor()+"'>"+t.value+"</span>"}},n}(n.Widget);rt.prototype.publish("tooltipStyle","default","set","Style",["default","none"],{}),rt.prototype.publish("tooltipValueFormat",",.2f","string","Value Format",null,{}),rt.prototype.publish("tooltipSeriesColor","#EAFFFF","html-color","Series Color",null,{}),rt.prototype.publish("tooltipLabelColor","#CCFFFF","html-color","Label Color",null,{}),rt.prototype.publish("tooltipValueColor","white","html-color","Value Color",null,{}),rt.prototype.publish("tooltipTick",!0,"boolean","Show tooltip tick",null,{}),rt.prototype.publish("tooltipOffset",8,"number","Offset from the cursor",null,{});var ot=rt.prototype.tooltipValueFormat;rt.prototype.tooltipValueFormat=function(t){var n=ot.apply(this,arguments);return arguments.length&&(this._valueFormatter=$(t)),n};var it=function(){function t(){}return t.prototype.click=function(t,n,e){console.log("Click: "+JSON.stringify(t)+", "+n+", "+e)},t.prototype.dblclick=function(t,n,e){console.log("Double click: "+JSON.stringify(t)+", "+n+", "+e)},t}();it.prototype._palette=n.Palette.ordinal("default"),t.I1DChart=e,t.I2DChart=r,t.IGraph=o,t.IInput=M,t.INDChart=u,t.ITooltip=rt,t.ITree=it,Object.defineProperty(t,"__esModule",{value:!0})});
!function(t,n){"object"==typeof exports&&"undefined"!=typeof module?n(exports,require("@hpcc-js/common")):"function"==typeof define&&define.amd?define(["exports","@hpcc-js/common"],n):n(t["@hpcc-js/api"]={},t["@hpcc-js/common"])}(this,function(t,n){"use strict";function e(){}function r(){}function o(){}function i(t,n){function e(){this.constructor=t}C(t,n),t.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}function u(){}function l(t){return new a(t)}function a(t){if(!(n=L.exec(t)))throw new Error("invalid format: "+t);var n,e=n[1]||" ",r=n[2]||">",o=n[3]||"-",i=n[4]||"",u=!!n[5],l=n[6]&&+n[6],a=!!n[7],s=n[8]&&+n[8].slice(1),c=n[9]||"";"n"===c?(a=!0,c="g"):P[c]||(c=""),(u||"0"===e&&"="===r)&&(u=!0,e="0",r="="),this.fill=e,this.align=r,this.sign=o,this.symbol=i,this.zero=u,this.width=l,this.comma=a,this.precision=s,this.type=c}function s(t,n,e){return function(r){try{t.call(this,this.__data__,n,e)}finally{}}}function c(t,n,e){var r=X.hasOwnProperty(t.type)?function(t,n,e){return t=s(t,n,e),function(n){var e=n.relatedTarget;e&&(e===this||8&e.compareDocumentPosition(this))||t.call(this,n)}}:s;return function(o,i,u){var l,a=this.__on,s=r(n,i,u);if(a)for(var c=0,f=a.length;c<f;++c)if((l=a[c]).type===t.type&&l.name===t.name)return this.removeEventListener(l.type,l.listener,l.capture),this.addEventListener(l.type,l.listener=s,l.capture=e),void(l.value=n);this.addEventListener(t.type,s,e),l={type:t.type,name:t.name,value:n,listener:s,capture:e},a?a.push(l):this.__on=[l]}}function f(t,n){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=n}function p(t,n){return t<n?-1:t>n?1:t>=n?0:NaN}function h(t){return t.trim().split(/^|\s+/)}function y(t){return t.classList||new d(t)}function d(t){this._node=t,this._names=h(t.getAttribute("class")||"")}function v(t,n){for(var e=y(t),r=-1,o=n.length;++r<o;)e.add(n[r])}function m(t,n){for(var e=y(t),r=-1,o=n.length;++r<o;)e.remove(n[r])}function g(){this.nextSibling&&this.parentNode.appendChild(this)}function _(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function w(){var t=this.parentNode;t&&t.removeChild(this)}function x(t,n,e){var r=Q(t),o=r.CustomEvent;"function"==typeof o?o=new o(n,e):(o=r.document.createEvent("Event"),e?(o.initEvent(n,e.bubbles,e.cancelable),o.detail=e.detail):o.initEvent(n,!1,!1)),t.dispatchEvent(o)}function b(t,n){this._groups=t,this._parents=n}function S(){return new b([[document.documentElement]],tt)}function k(){}function E(t,n){var e=new k;if(t instanceof k)t.each(function(t,n){e.set(n,t)});else if(Array.isArray(t)){var r,o=-1,i=t.length;if(null==n)for(;++o<i;)e.set(o,t[o]);else for(;++o<i;)e.set(n(r=t[o],o,t),r)}else if(t)for(var u in t)e.set(u,t[u]);return e}function A(){}e.prototype._palette=n.Palette.rainbow("default"),e.prototype.click=function(t,n,e){console.log("Click: "+JSON.stringify(t)+", "+n+", "+e)},e.prototype.dblclick=function(t,n,e){console.log("Double click: "+JSON.stringify(t)+", "+n+", "+e)},r.prototype._palette=n.Palette.ordinal("default"),r.prototype.click=function(t,n,e){console.log("Click: "+JSON.stringify(t)+", "+n+", "+e)},r.prototype.dblclick=function(t,n,e){console.log("Double click: "+JSON.stringify(t)+", "+n+", "+e)},o.prototype.vertex_click=function(t,n,e,r){r&&r.vertex&&console.log("Vertex click: "+r.vertex.id())},o.prototype.vertex_dblclick=function(t,n,e,r){r&&r.vertex&&console.log("Vertex double click: "+r.vertex.id())},o.prototype.edge_click=function(t,n,e,r){r&&r.edge&&console.log("Edge click: "+r.edge.id())},o.prototype.edge_dblclick=function(t,n,e,r){r&&r.edge&&console.log("Edge double click: "+r.edge.id())};var C=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var e in n)n.hasOwnProperty(e)&&(t[e]=n[e])},M=function(t){function n(){return t.call(this)||this}return i(n,t),n.prototype.isValid=function(){if(this.validate()){if(!new RegExp(this.validate()).test(this.value()))return!1}return!0},n.prototype.hasValue=function(){if("function"==typeof this.type){switch(this.type()){case"radio":case"checkbox":if(this.value()&&"false"!==this.value())return!0;break;default:if(this.value())return!0}return!1}return""!==this.value()},n.prototype.blur=function(t){},n.prototype.click=function(t){},n.prototype.dblclick=function(t){},n.prototype.change=function(t){},n.prototype.resetValue=function(t){t.value(t._inputElement[0].node().value)},n.prototype.disable=function(t){this._inputElement.forEach(function(n,e){n.attr("disabled",t?"disabled":null)})},n.prototype.setFocus=function(){this._inputElement.length&&this._inputElement[0].node().focus()},n}(n.Widget);M.prototype.publish("name","","string","HTML name for the input"),M.prototype.publish("label","","string","Descriptive label"),M.prototype.publish("value","","string","Input Current Value"),M.prototype.publish("validate",null,"string","Input Validation"),u.prototype._palette=n.Palette.ordinal("default"),u.prototype.click=function(t,n,e){console.log("Click: "+JSON.stringify(t)+", "+n+", "+e)},u.prototype.dblclick=function(t,n,e){console.log("Double click: "+JSON.stringify(t)+", "+n+", "+e)};var N,T=function(t,n){if((e=(t=n?t.toExponential(n-1):t.toExponential()).indexOf("e"))<0)return null;var e,r=t.slice(0,e);return[r.length>1?r[0]+r.slice(2):r,+t.slice(e+1)]},O=function(t){return(t=T(Math.abs(t)))?t[1]:NaN},V=function(t,n){var e=T(t,n);if(!e)return t+"";var r=e[0],o=e[1];return o<0?"0."+new Array(-o).join("0")+r:r.length>o+1?r.slice(0,o+1)+"."+r.slice(o+1):r+new Array(o-r.length+2).join("0")},P={"":function(t,n){t:for(var e,r=(t=t.toPrecision(n)).length,o=1,i=-1;o<r;++o)switch(t[o]){case".":i=e=o;break;case"0":0===i&&(i=o),e=o;break;case"e":break t;default:i>0&&(i=0)}return i>0?t.slice(0,i)+t.slice(e+1):t},"%":function(t,n){return(100*t).toFixed(n)},b:function(t){return Math.round(t).toString(2)},c:function(t){return t+""},d:function(t){return Math.round(t).toString(10)},e:function(t,n){return t.toExponential(n)},f:function(t,n){return t.toFixed(n)},g:function(t,n){return t.toPrecision(n)},o:function(t){return Math.round(t).toString(8)},p:function(t,n){return V(100*t,n)},r:V,s:function(t,n){var e=T(t,n);if(!e)return t+"";var r=e[0],o=e[1],i=o-(N=3*Math.max(-8,Math.min(8,Math.floor(o/3))))+1,u=r.length;return i===u?r:i>u?r+new Array(i-u+1).join("0"):i>0?r.slice(0,i)+"."+r.slice(i):"0."+new Array(1-i).join("0")+T(t,Math.max(0,n+i-1))[0]},X:function(t){return Math.round(t).toString(16).toUpperCase()},x:function(t){return Math.round(t).toString(16)}},L=/^(?:(.)?([<>=^]))?([+\-\( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?([a-z%])?$/i;l.prototype=a.prototype,a.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(null==this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(null==this.precision?"":"."+Math.max(0,0|this.precision))+this.type};var F,$,j,z=function(t){return t},D=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"],I=function(t){function n(t){function n(t){var n,r,u,l=m,f=g;if("c"===v)f=_(t)+f,t="";else{var x=(t=+t)<0;if(t=_(Math.abs(t),d),x&&0==+t&&(x=!1),l=(x?"("===c?c:"-":"-"===c||"("===c?"":c)+l,f=f+("s"===v?D[8+N/3]:"")+(x&&"("===c?")":""),w)for(n=-1,r=t.length;++n<r;)if(48>(u=t.charCodeAt(n))||u>57){f=(46===u?o+t.slice(n+1):t.slice(n))+f,t=t.slice(0,n);break}}y&&!p&&(t=e(t,1/0));var b=l.length+t.length+f.length,S=b<h?new Array(h-b+1).join(a):"";switch(y&&p&&(t=e(S+t,S.length?h-f.length:1/0),S=""),s){case"<":t=l+t+f+S;break;case"=":t=l+S+t+f;break;case"^":t=S.slice(0,b=S.length>>1)+l+t+f+S.slice(b);break;default:t=S+l+t+f}return i(t)}var a=(t=l(t)).fill,s=t.align,c=t.sign,f=t.symbol,p=t.zero,h=t.width,y=t.comma,d=t.precision,v=t.type,m="$"===f?r[0]:"#"===f&&/[boxX]/.test(v)?"0"+v.toLowerCase():"",g="$"===f?r[1]:/[%p]/.test(v)?u:"",_=P[v],w=!v||/[defgprs%]/.test(v);return d=null==d?v?6:12:/[gprs]/.test(v)?Math.max(1,Math.min(21,d)):Math.max(0,Math.min(20,d)),n.toString=function(){return t+""},n}var e=t.grouping&&t.thousands?function(t,n){return function(e,r){for(var o=e.length,i=[],u=0,l=t[0],a=0;o>0&&l>0&&(a+l+1>r&&(l=Math.max(1,r-a)),i.push(e.substring(o-=l,o+l)),!((a+=l+1)>r));)l=t[u=(u+1)%t.length];return i.reverse().join(n)}}(t.grouping,t.thousands):z,r=t.currency,o=t.decimal,i=t.numerals?function(t){return function(n){return n.replace(/[0-9]/g,function(n){return t[+n]})}}(t.numerals):z,u=t.percent||"%";return{format:n,formatPrefix:function(t,e){var r=n((t=l(t),t.type="f",t)),o=3*Math.max(-8,Math.min(8,Math.floor(O(e)/3))),i=Math.pow(10,-o),u=D[8+o/3];return function(t){return r(i*t)+u}}}};!function(t){F=I(t),$=F.format,j=F.formatPrefix}({decimal:".",thousands:",",grouping:[3],currency:["$",""]});var B="http://www.w3.org/1999/xhtml",H={svg:"http://www.w3.org/2000/svg",xhtml:B,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"},U=function(t){var n=t+="",e=n.indexOf(":");return e>=0&&"xmlns"!==(n=t.slice(0,e))&&(t=t.slice(e+1)),H.hasOwnProperty(n)?{space:H[n],local:t}:t},W=function(t){var n=U(t);return(n.local?function(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}:function(t){return function(){var n=this.ownerDocument,e=this.namespaceURI;return e===B&&n.documentElement.namespaceURI===B?n.createElement(t):n.createElementNS(e,t)}})(n)},q=function(t){return function(){return this.matches(t)}};if("undefined"!=typeof document){var J=document.documentElement;if(!J.matches){var G=J.webkitMatchesSelector||J.msMatchesSelector||J.mozMatchesSelector||J.oMatchesSelector;q=function(t){return function(){return G.call(this,t)}}}}var R=q,X={};if("undefined"!=typeof document){"onmouseenter"in document.documentElement||(X={mouseenter:"mouseover",mouseleave:"mouseout"})}var Y=function(t){return null==t?function(){}:function(){return this.querySelector(t)}},Z=function(t){return new Array(t.length)};f.prototype={constructor:f,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,n){return this._parent.insertBefore(t,n)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}};var K="$",Q=function(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView};d.prototype={add:function(t){this._names.indexOf(t)<0&&(this._names.push(t),this._node.setAttribute("class",this._names.join(" ")))},remove:function(t){var n=this._names.indexOf(t);n>=0&&(this._names.splice(n,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};var tt=[null];b.prototype=S.prototype={constructor:b,select:function(t){"function"!=typeof t&&(t=Y(t));for(var n=this._groups,e=n.length,r=new Array(e),o=0;o<e;++o)for(var i,u,l=n[o],a=l.length,s=r[o]=new Array(a),c=0;c<a;++c)(i=l[c])&&(u=t.call(i,i.__data__,c,l))&&("__data__"in i&&(u.__data__=i.__data__),s[c]=u);return new b(r,this._parents)},selectAll:function(t){"function"!=typeof t&&(t=function(t){return null==t?function(){return[]}:function(){return this.querySelectorAll(t)}}(t));for(var n=this._groups,e=n.length,r=[],o=[],i=0;i<e;++i)for(var u,l=n[i],a=l.length,s=0;s<a;++s)(u=l[s])&&(r.push(t.call(u,u.__data__,s,l)),o.push(u));return new b(r,o)},filter:function(t){"function"!=typeof t&&(t=R(t));for(var n=this._groups,e=n.length,r=new Array(e),o=0;o<e;++o)for(var i,u=n[o],l=u.length,a=r[o]=[],s=0;s<l;++s)(i=u[s])&&t.call(i,i.__data__,s,u)&&a.push(i);return new b(r,this._parents)},data:function(t,n){if(!t)return y=new Array(this.size()),s=-1,this.each(function(t){y[++s]=t}),y;var e=n?function(t,n,e,r,o,i,u){var l,a,s,c={},p=n.length,h=i.length,y=new Array(p);for(l=0;l<p;++l)(a=n[l])&&(y[l]=s=K+u.call(a,a.__data__,l,n),s in c?o[l]=a:c[s]=a);for(l=0;l<h;++l)(a=c[s=K+u.call(t,i[l],l,i)])?(r[l]=a,a.__data__=i[l],c[s]=null):e[l]=new f(t,i[l]);for(l=0;l<p;++l)(a=n[l])&&c[y[l]]===a&&(o[l]=a)}:function(t,n,e,r,o,i){for(var u,l=0,a=n.length,s=i.length;l<s;++l)(u=n[l])?(u.__data__=i[l],r[l]=u):e[l]=new f(t,i[l]);for(;l<a;++l)(u=n[l])&&(o[l]=u)},r=this._parents,o=this._groups;"function"!=typeof t&&(t=function(t){return function(){return t}}(t));for(var i=o.length,u=new Array(i),l=new Array(i),a=new Array(i),s=0;s<i;++s){var c=r[s],p=o[s],h=p.length,y=t.call(c,c&&c.__data__,s,r),d=y.length,v=l[s]=new Array(d),m=u[s]=new Array(d);e(c,p,v,m,a[s]=new Array(h),y,n);for(var g,_,w=0,x=0;w<d;++w)if(g=v[w]){for(w>=x&&(x=w+1);!(_=m[x])&&++x<d;);g._next=_||null}}return u=new b(u,r),u._enter=l,u._exit=a,u},enter:function(){return new b(this._enter||this._groups.map(Z),this._parents)},exit:function(){return new b(this._exit||this._groups.map(Z),this._parents)},merge:function(t){for(var n=this._groups,e=t._groups,r=n.length,o=e.length,i=Math.min(r,o),u=new Array(r),l=0;l<i;++l)for(var a,s=n[l],c=e[l],f=s.length,p=u[l]=new Array(f),h=0;h<f;++h)(a=s[h]||c[h])&&(p[h]=a);for(;l<r;++l)u[l]=n[l];return new b(u,this._parents)},order:function(){for(var t=this._groups,n=-1,e=t.length;++n<e;)for(var r,o=t[n],i=o.length-1,u=o[i];--i>=0;)(r=o[i])&&(u&&u!==r.nextSibling&&u.parentNode.insertBefore(r,u),u=r);return this},sort:function(t){function n(n,e){return n&&e?t(n.__data__,e.__data__):!n-!e}t||(t=p);for(var e=this._groups,r=e.length,o=new Array(r),i=0;i<r;++i){for(var u,l=e[i],a=l.length,s=o[i]=new Array(a),c=0;c<a;++c)(u=l[c])&&(s[c]=u);s.sort(n)}return new b(o,this._parents).order()},call:function(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this},nodes:function(){var t=new Array(this.size()),n=-1;return this.each(function(){t[++n]=this}),t},node:function(){for(var t=this._groups,n=0,e=t.length;n<e;++n)for(var r=t[n],o=0,i=r.length;o<i;++o){var u=r[o];if(u)return u}return null},size:function(){var t=0;return this.each(function(){++t}),t},empty:function(){return!this.node()},each:function(t){for(var n=this._groups,e=0,r=n.length;e<r;++e)for(var o,i=n[e],u=0,l=i.length;u<l;++u)(o=i[u])&&t.call(o,o.__data__,u,i);return this},attr:function(t,n){var e=U(t);if(arguments.length<2){var r=this.node();return e.local?r.getAttributeNS(e.space,e.local):r.getAttribute(e)}return this.each((null==n?e.local?function(t){return function(){this.removeAttributeNS(t.space,t.local)}}:function(t){return function(){this.removeAttribute(t)}}:"function"==typeof n?e.local?function(t,n){return function(){var e=n.apply(this,arguments);null==e?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,e)}}:function(t,n){return function(){var e=n.apply(this,arguments);null==e?this.removeAttribute(t):this.setAttribute(t,e)}}:e.local?function(t,n){return function(){this.setAttributeNS(t.space,t.local,n)}}:function(t,n){return function(){this.setAttribute(t,n)}})(e,n))},style:function(t,n,e){return arguments.length>1?this.each((null==n?function(t){return function(){this.style.removeProperty(t)}}:"function"==typeof n?function(t,n,e){return function(){var r=n.apply(this,arguments);null==r?this.style.removeProperty(t):this.style.setProperty(t,r,e)}}:function(t,n,e){return function(){this.style.setProperty(t,n,e)}})(t,n,null==e?"":e)):function(t,n){return t.style.getPropertyValue(n)||Q(t).getComputedStyle(t,null).getPropertyValue(n)}(this.node(),t)},property:function(t,n){return arguments.length>1?this.each((null==n?function(t){return function(){delete this[t]}}:"function"==typeof n?function(t,n){return function(){var e=n.apply(this,arguments);null==e?delete this[t]:this[t]=e}}:function(t,n){return function(){this[t]=n}})(t,n)):this.node()[t]},classed:function(t,n){var e=h(t+"");if(arguments.length<2){for(var r=y(this.node()),o=-1,i=e.length;++o<i;)if(!r.contains(e[o]))return!1;return!0}return this.each(("function"==typeof n?function(t,n){return function(){(n.apply(this,arguments)?v:m)(this,t)}}:n?function(t){return function(){v(this,t)}}:function(t){return function(){m(this,t)}})(e,n))},text:function(t){return arguments.length?this.each(null==t?function(){this.textContent=""}:("function"==typeof t?function(t){return function(){var n=t.apply(this,arguments);this.textContent=null==n?"":n}}:function(t){return function(){this.textContent=t}})(t)):this.node().textContent},html:function(t){return arguments.length?this.each(null==t?function(){this.innerHTML=""}:("function"==typeof t?function(t){return function(){var n=t.apply(this,arguments);this.innerHTML=null==n?"":n}}:function(t){return function(){this.innerHTML=t}})(t)):this.node().innerHTML},raise:function(){return this.each(g)},lower:function(){return this.each(_)},append:function(t){var n="function"==typeof t?t:W(t);return this.select(function(){return this.appendChild(n.apply(this,arguments))})},insert:function(t,n){var e="function"==typeof t?t:W(t),r=null==n?function(){return null}:"function"==typeof n?n:Y(n);return this.select(function(){return this.insertBefore(e.apply(this,arguments),r.apply(this,arguments)||null)})},remove:function(){return this.each(w)},datum:function(t){return arguments.length?this.property("__data__",t):this.node().__data__},on:function(t,n,e){var r,o,i=(t+"").trim().split(/^|\s+/).map(function(t){var n="",e=t.indexOf(".");return e>=0&&(n=t.slice(e+1),t=t.slice(0,e)),{type:t,name:n}}),u=i.length;if(!(arguments.length<2)){for(l=n?c:function(t){return function(){var n=this.__on;if(n){for(var e,r=0,o=-1,i=n.length;r<i;++r)e=n[r],t.type&&e.type!==t.type||e.name!==t.name?n[++o]=e:this.removeEventListener(e.type,e.listener,e.capture);++o?n.length=o:delete this.__on}}},null==e&&(e=!1),r=0;r<u;++r)this.each(l(i[r],n,e));return this}var l=this.node().__on;if(l)for(var a,s=0,f=l.length;s<f;++s)for(r=0,a=l[s];r<u;++r)if((o=i[r]).type===a.type&&o.name===a.name)return a.value},dispatch:function(t,n){return this.each(("function"==typeof n?function(t,n){return function(){return x(this,t,n.apply(this,arguments))}}:function(t,n){return function(){return x(this,t,n)}})(t,n))}};var nt=function(t){return"string"==typeof t?new b([[document.querySelector(t)]],[document.documentElement]):new b([[t]],tt)};k.prototype=E.prototype={constructor:k,has:function(t){return"$"+t in this},get:function(t){return this["$"+t]},set:function(t,n){return this["$"+t]=n,this},remove:function(t){var n="$"+t;return n in this&&delete this[n]},clear:function(){for(var t in this)"$"===t[0]&&delete this[t]},keys:function(){var t=[];for(var n in this)"$"===n[0]&&t.push(n.slice(1));return t},values:function(){var t=[];for(var n in this)"$"===n[0]&&t.push(this[n]);return t},entries:function(){var t=[];for(var n in this)"$"===n[0]&&t.push({key:n.slice(1),value:this[n]});return t},size:function(){var t=0;for(var n in this)"$"===n[0]&&++t;return t},empty:function(){for(var t in this)if("$"===t[0])return!1;return!0},each:function(t){for(var n in this)"$"===n[0]&&t(this[n],n.slice(1),this)}};var et=E.prototype;A.prototype=function(t,n){var e=new A;if(t instanceof A)t.each(function(t){e.add(t)});else if(t){var r=-1,o=t.length;if(null==n)for(;++r<o;)e.add(t[r]);else for(;++r<o;)e.add(n(t[r],r,t))}return e}.prototype={constructor:A,has:et.has,add:function(t){return t+="",this["$"+t]=t,this},remove:et.remove,clear:et.clear,values:et.keys,size:et.size,empty:et.empty,each:et.each},function(t,n){if("undefined"==typeof document)return n;t=t||"";var e=document.head||document.getElementsByTagName("head")[0],r=document.createElement("style");r.type="text/css",e.appendChild(r),r.styleSheet?r.styleSheet.cssText=t:r.appendChild(document.createTextNode(t))}('.d3-tip {\r\n line-height: 1;\r\n font-weight: bold;\r\n padding: 12px;\r\n background: rgba(0, 0, 0, 0.66);\r\n color: #fff;\r\n border-radius: 2px;\r\n pointer-events: none !important;\r\n z-index:10;\r\n}\r\n\r\n.d3-tip.hidden {\r\n visibility:hidden;\r\n}\r\n\r\n/* Creates a small triangle extender for the tooltip */\r\n.d3-tip:after {\r\n box-sizing: border-box;\r\n display: inline;\r\n font-size: 10px;\r\n width: 100%;\r\n line-height: 1;\r\n color: rgba(0, 0, 0, 0.66);\r\n position: absolute;\r\n pointer-events: none !important;\r\n}\r\n\r\n/* Northward tooltips */\r\n.d3-tip.n:after {\r\n content: "\\25BC";\r\n margin: -1px 0 0 0;\r\n top: 100%;\r\n left: 0;\r\n text-align: center;\r\n}\r\n\r\n/* Eastward tooltips */\r\n.d3-tip.e:after {\r\n content: "\\25C0";\r\n margin: -4px 0 0 0;\r\n top: 50%;\r\n left: -8px;\r\n}\r\n\r\n/* Southward tooltips */\r\n.d3-tip.s:after {\r\n content: "\\25B2";\r\n margin: 0 0 1px 0;\r\n top: -8px;\r\n left: 0;\r\n text-align: center;\r\n}\r\n\r\n/* Westward tooltips */\r\n.d3-tip.w:after {\r\n content: "\\25B6";\r\n margin: -4px 0 0 -1px;\r\n top: 50%;\r\n left: 100%;\r\n}\r\n\r\n.d3-tip.notick:after {\r\n content: "" !important;\r\n}\r\n\r\n.common_Widget .over {\r\n stroke: rgba(0, 0, 0, 0.66);\r\n opacity: 0.66;\r\n}\r\n',void 0);var rt=function(t){function n(){var n=t.call(this)||this;if(n._valueFormatter=$(n.tooltipValueFormat()),n.layerEnter){var e=n.layerEnter;n.layerEnter=function(t,n,r){this.tooltipEnter(n),e.apply(this,arguments)};var r=n.layerUpdate;n.layerUpdate=function(t){r.apply(this,arguments),this.tooltipUpdate()};var o=n.layerExit;n.layerExit=function(t){o.apply(this,arguments),this.tooltipExit()}}else{var i=n.enter;n.enter=function(t,n){this.tooltipEnter(n),i.apply(this,arguments)};var u=n.update;n.update=function(t,n){u.apply(this,arguments),this.tooltipUpdate()};var l=n.exit;n.exit=function(t,n){l.apply(this,arguments),this.tooltipExit()}}return n}return i(n,t),n.prototype.tooltipEnter=function(t){var n=this;this.tooltip=function(){function t(t){(c=function(n){var e=t.node();return e?"svg"===e.tagName.toLowerCase()?e:e.ownerSVGElement:null}())&&(f=c.createSVGPoint(),a().appendChild(s))}function n(){var t=nt(document.createElement("div"));return t.style("position","absolute").style("top",0).style("opacity",0).style("pointer-events","none").style("box-sizing","border-box"),t.node()}function e(){return null==s&&(s=n(),a().appendChild(s)),nt(s)}function r(){for(var t=p||event.target;null==t.getScreenCTM&&null==t.parentNode;)t=t.parentNode;var n={},e=t.getScreenCTM(),r=t.getBBox(),o=r.width,i=r.height,u=r.x,l=r.y;return f.x=u,f.y=l,n.nw=f.matrixTransform(e),f.x+=o,n.ne=f.matrixTransform(e),f.y+=i,n.se=f.matrixTransform(e),f.x-=o,n.sw=f.matrixTransform(e),f.y-=i/2,n.w=f.matrixTransform(e),f.x+=o,n.e=f.matrixTransform(e),f.x-=o/2,f.y-=i/2,n.n=f.matrixTransform(e),f.y+=i,n.s=f.matrixTransform(e),n}function o(t){return"function"==typeof t?t:function(){return t}}var i=function(){return"n"},u=function(){return[0,0]},l=function(){return" "},a=o(document.body),s=n(),c=null,f=null,p=null;t.show=function(){var n=Array.prototype.slice.call(arguments);n[n.length-1]instanceof SVGElement&&(p=n.pop());var r,o=l.apply(this,n),s=u.apply(this,n),c=i.apply(this,n),f=e(),d=y.length,v=document.documentElement.scrollTop||a().scrollTop,m=document.documentElement.scrollLeft||a().scrollLeft;for(f.html(o).style("opacity",1).style("pointer-events","all");d--;)f.classed(y[d],!1);return r=h.get(c).apply(this),f.classed(c,!0).style("top",r.top+s[0]+v+"px").style("left",r.left+s[1]+m+"px"),t},t.hide=function(){return e().style("opacity",0).style("pointer-events","none"),t},t.attr=function(n,r){if(arguments.length<2&&"string"==typeof n)return e().attr(n);var o=Array.prototype.slice.call(arguments);return S.prototype.attr.apply(e(),o),t},t.style=function(n,r){if(arguments.length<2&&"string"==typeof n)return e().style(n);var o=Array.prototype.slice.call(arguments);return S.prototype.style.apply(e(),o),t},t.direction=function(n){return arguments.length?(i=null==n?n:o(n),t):i},t.offset=function(n){return arguments.length?(u=null==n?n:o(n),t):u},t.html=function(n){return arguments.length?(l=null==n?n:o(n),t):l},t.rootElement=function(n){return arguments.length?(a=null==n?n:o(n),t):a},t.destroy=function(){return s&&(e().remove(),s=null),t};var h=E({n:function(){var t=r();return{top:t.n.y-s.offsetHeight,left:t.n.x-s.offsetWidth/2}},s:function(){var t=r();return{top:t.s.y,left:t.s.x-s.offsetWidth/2}},e:function(){var t=r();return{top:t.e.y-s.offsetHeight/2,left:t.e.x}},w:function(){var t=r();return{top:t.w.y-s.offsetHeight/2,left:t.w.x-s.offsetWidth}},nw:function(){var t=r();return{top:t.nw.y-s.offsetHeight,left:t.nw.x-s.offsetWidth}},ne:function(){var t=r();return{top:t.ne.y-s.offsetHeight,left:t.ne.x}},sw:function(){var t=r();return{top:t.sw.y,left:t.sw.x-s.offsetWidth}},se:function(){var t=r();return{top:t.se.y,left:t.se.x}}}),y=h.keys();return t}().attr("class","d3-tip").offset(function(){switch(n.tooltip.direction()()){case"e":return[0,n.tooltipOffset()];default:return[-n.tooltipOffset(),0]}}),t.call(this.tooltip)},n.prototype.tooltipUpdate=function(){var t=this.tooltip.attr("class");t&&(t=t.split(" notick").join("")+(this.tooltipTick()?"":" notick")+("none"===this.tooltipStyle()?" hidden":""),this.tooltip.attr("class",t))},n.prototype.tooltipExit=function(){this.tooltip&&this.tooltip.destroy()},n.prototype._tooltipHTML=function(t){return t},n.prototype.tooltipHTML=function(t){return this.tooltip.html(t)},n.prototype.tooltipFormat=function(t){switch(t=t||{},t.label=void 0===t.label?"":t.label,t.series=t.series||"",t.value instanceof Date?t.value=t.value||"":t.value=this._valueFormatter(t.value)||"",this.tooltipStyle()){case"none":break;default:return t.series?"<span style='color:"+this.tooltipSeriesColor()+"'>"+t.series+"</span> / <span style='color:"+this.tooltipLabelColor()+"'>"+t.label+"</span>: <span style='color:"+this.tooltipValueColor()+"'>"+t.value+"</span>":"<span style='color:"+this.tooltipLabelColor()+"'>"+t.label+"</span>: <span style='color:"+this.tooltipValueColor()+"'>"+t.value+"</span>"}},n}(n.Widget);rt.prototype.publish("tooltipStyle","default","set","Style",["default","none"],{}),rt.prototype.publish("tooltipValueFormat",",.2f","string","Value Format",null,{}),rt.prototype.publish("tooltipSeriesColor","#EAFFFF","html-color","Series Color",null,{}),rt.prototype.publish("tooltipLabelColor","#CCFFFF","html-color","Label Color",null,{}),rt.prototype.publish("tooltipValueColor","white","html-color","Value Color",null,{}),rt.prototype.publish("tooltipTick",!0,"boolean","Show tooltip tick",null,{}),rt.prototype.publish("tooltipOffset",8,"number","Offset from the cursor",null,{});var ot=rt.prototype.tooltipValueFormat;rt.prototype.tooltipValueFormat=function(t){var n=ot.apply(this,arguments);return arguments.length&&(this._valueFormatter=$(t)),n};var it=function(){function t(){}return t.prototype.click=function(t,n,e){console.log("Click: "+JSON.stringify(t)+", "+n+", "+e)},t.prototype.dblclick=function(t,n,e){console.log("Double click: "+JSON.stringify(t)+", "+n+", "+e)},t}();it.prototype._palette=n.Palette.ordinal("default"),t.I1DChart=e,t.I2DChart=r,t.IGraph=o,t.IInput=M,t.INDChart=u,t.ITooltip=rt,t.ITree=it,Object.defineProperty(t,"__esModule",{value:!0})});
{
"name": "@hpcc-js/api",
"version": "0.0.52",
"version": "0.0.53",
"description": "hpcc-js - Viz api",

@@ -28,3 +28,3 @@ "main": "build/index.js",

"dependencies": {
"@hpcc-js/common": "^0.0.52",
"@hpcc-js/common": "^0.0.53",
"d3-format": "1.2.0",

@@ -31,0 +31,0 @@ "d3-tip": "GordonSmith/d3-tip#vJSNEXT",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc