@hpcc-js/react 2.53.4 → 2.53.5
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 +13 -6
- package/dist/index.es6.js.map +1 -1
- package/dist/index.js +13 -6
- 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 +2 -2
- package/src/__package__.ts +2 -2
- package/src/icon.tsx +27 -16
- package/src/image.tsx +25 -0
- package/src/vertex3.tsx +1 -1
- package/types/__package__.d.ts +2 -2
- package/types/icon.d.ts +1 -0
- package/types/icon.d.ts.map +1 -1
- package/types/image.d.ts +11 -0
- package/types/image.d.ts.map +1 -0
- package/types-3.4/__package__.d.ts +2 -2
- package/types-3.4/icon.d.ts +1 -0
- package/types-3.4/image.d.ts +11 -0
package/dist/index.min.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("@hpcc-js/common")):"function"==typeof define&&define.amd?define(["exports","@hpcc-js/common"],e):e((t="undefined"!=typeof globalThis?globalThis:t||self)["@hpcc-js/react"]={},t["@hpcc-js/common"])}(this,(function(t,e){"use strict";var n,o,i,r,a,l={},_=[],c=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function s(t,e){for(var n in e)t[n]=e[n];return t}function d(t){var e=t.parentNode;e&&e.removeChild(t)}function h(t,e,o){var i,r,a,l={};for(a in e)"key"==a?i=e[a]:"ref"==a?r=e[a]:l[a]=e[a];if(arguments.length>2&&(l.children=arguments.length>3?n.call(arguments,2):o),"function"==typeof t&&null!=t.defaultProps)for(a in t.defaultProps)void 0===l[a]&&(l[a]=t.defaultProps[a]);return u(t,l,i,r,null)}function u(t,e,n,r,a){var l={type:t,props:e,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:null==a?++i:a};return null==a&&null!=o.vnode&&o.vnode(l),l}function f(t){return t.children}function p(t,e){this.props=t,this.context=e}function v(t,e){if(null==e)return t.__?v(t.__,t.__.__k.indexOf(t)+1):null;for(var n;e<t.__k.length;e++)if(null!=(n=t.__k[e])&&null!=n.__e)return n.__e;return"function"==typeof t.type?v(t):null}function g(t){var e,n;if(null!=(t=t.__)&&null!=t.__c){for(t.__e=t.__c.base=null,e=0;e<t.__k.length;e++)if(null!=(n=t.__k[e])&&null!=n.__e){t.__e=t.__c.base=n.__e;break}return g(t)}}function m(t){(!t.__d&&(t.__d=!0)&&r.push(t)&&!y.__r++||a!==o.debounceRendering)&&((a=o.debounceRendering)||setTimeout)(y)}function y(){for(var t;y.__r=r.length;)t=r.sort((function(t,e){return t.__v.__b-e.__v.__b})),r=[],t.some((function(t){var e,n,o,i,r,a;t.__d&&(r=(i=(e=t).__v).__e,(a=e.__P)&&(n=[],(o=s({},i)).__v=i.__v+1,R(a,i,o,e.__n,void 0!==a.ownerSVGElement,null!=i.__h?[r]:null,n,null==r?v(i):r,i.__h),W(n,i),i.__e!=r&&g(i)))}))}function x(t,e,n,o,i,r,a,c,s,d){var h,p,g,m,y,x,b,C=o&&o.__k||_,w=C.length;for(n.__k=[],h=0;h<e.length;h++)if(null!=(m=n.__k[h]=null==(m=e[h])||"boolean"==typeof m?null:"string"==typeof m||"number"==typeof m||"bigint"==typeof m?u(null,m,null,null,m):Array.isArray(m)?u(f,{children:m},null,null,null):m.__b>0?u(m.type,m.props,m.key,m.ref?m.ref:null,m.__v):m)){if(m.__=n,m.__b=n.__b+1,null===(g=C[h])||g&&m.key==g.key&&m.type===g.type)C[h]=void 0;else for(p=0;p<w;p++){if((g=C[p])&&m.key==g.key&&m.type===g.type){C[p]=void 0;break}g=null}R(t,m,g=g||l,i,r,a,c,s,d),y=m.__e,(p=m.ref)&&g.ref!=p&&(b||(b=[]),g.ref&&b.push(g.ref,null,m),b.push(p,m.__c||y,m)),null!=y?(null==x&&(x=y),"function"==typeof m.type&&m.__k===g.__k?m.__d=s=k(m,s,t):s=F(t,m,g,C,y,s),"function"==typeof n.type&&(n.__d=s)):s&&g.__e==s&&s.parentNode!=t&&(s=v(g))}for(n.__e=x,h=w;h--;)null!=C[h]&&P(C[h],C[h]);if(b)for(h=0;h<b.length;h++)H(b[h],b[++h],b[++h])}function k(t,e,n){for(var o,i=t.__k,r=0;i&&r<i.length;r++)(o=i[r])&&(o.__=t,e="function"==typeof o.type?k(o,e,n):F(n,o,o,i,o.__e,e));return e}function F(t,e,n,o,i,r){var a,l,_;if(void 0!==e.__d)a=e.__d,e.__d=void 0;else if(null==n||i!=r||null==i.parentNode)t:if(null==r||r.parentNode!==t)t.appendChild(i),a=null;else{for(l=r,_=0;(l=l.nextSibling)&&_<o.length;_+=2)if(l==i)break t;t.insertBefore(i,r),a=r}return void 0!==a?a:i.nextSibling}function b(t,e,n){"-"===e[0]?t.setProperty(e,n):t[e]=null==n?"":"number"!=typeof n||c.test(e)?n:n+"px"}function C(t,e,n,o,i){var r;t:if("style"===e)if("string"==typeof n)t.style.cssText=n;else{if("string"==typeof o&&(t.style.cssText=o=""),o)for(e in o)n&&e in n||b(t.style,e,"");if(n)for(e in n)o&&n[e]===o[e]||b(t.style,e,n[e])}else if("o"===e[0]&&"n"===e[1])r=e!==(e=e.replace(/Capture$/,"")),e=e.toLowerCase()in t?e.toLowerCase().slice(2):e.slice(2),t.l||(t.l={}),t.l[e+r]=n,n?o||t.addEventListener(e,r?S:w,r):t.removeEventListener(e,r?S:w,r);else if("dangerouslySetInnerHTML"!==e){if(i)e=e.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("href"!==e&&"list"!==e&&"form"!==e&&"tabIndex"!==e&&"download"!==e&&e in t)try{t[e]=null==n?"":n;break t}catch(t){}"function"==typeof n||(null==n||!1===n&&-1==e.indexOf("-")?t.removeAttribute(e):t.setAttribute(e,n))}}function w(t){this.l[t.type+!1](o.event?o.event(t):t)}function S(t){this.l[t.type+!0](o.event?o.event(t):t)}function R(t,e,n,i,r,a,l,_,c){var d,h,u,v,g,m,y,k,F,b,C,w,S,R,W,H=e.type;if(void 0!==e.constructor)return null;null!=n.__h&&(c=n.__h,_=e.__e=n.__e,e.__h=null,a=[_]),(d=o.__b)&&d(e);try{t:if("function"==typeof H){if(k=e.props,F=(d=H.contextType)&&i[d.__c],b=d?F?F.props.value:d.__:i,n.__c?y=(h=e.__c=n.__c).__=h.__E:("prototype"in H&&H.prototype.render?e.__c=h=new H(k,b):(e.__c=h=new p(k,b),h.constructor=H,h.render=E),F&&F.sub(h),h.props=k,h.state||(h.state={}),h.context=b,h.__n=i,u=h.__d=!0,h.__h=[],h._sb=[]),null==h.__s&&(h.__s=h.state),null!=H.getDerivedStateFromProps&&(h.__s==h.state&&(h.__s=s({},h.__s)),s(h.__s,H.getDerivedStateFromProps(k,h.__s))),v=h.props,g=h.state,u)null==H.getDerivedStateFromProps&&null!=h.componentWillMount&&h.componentWillMount(),null!=h.componentDidMount&&h.__h.push(h.componentDidMount);else{if(null==H.getDerivedStateFromProps&&k!==v&&null!=h.componentWillReceiveProps&&h.componentWillReceiveProps(k,b),!h.__e&&null!=h.shouldComponentUpdate&&!1===h.shouldComponentUpdate(k,h.__s,b)||e.__v===n.__v){for(h.props=k,h.state=h.__s,e.__v!==n.__v&&(h.__d=!1),h.__v=e,e.__e=n.__e,e.__k=n.__k,e.__k.forEach((function(t){t&&(t.__=e)})),C=0;C<h._sb.length;C++)h.__h.push(h._sb[C]);h._sb=[],h.__h.length&&l.push(h);break t}null!=h.componentWillUpdate&&h.componentWillUpdate(k,h.__s,b),null!=h.componentDidUpdate&&h.__h.push((function(){h.componentDidUpdate(v,g,m)}))}if(h.context=b,h.props=k,h.__v=e,h.__P=t,w=o.__r,S=0,"prototype"in H&&H.prototype.render){for(h.state=h.__s,h.__d=!1,w&&w(e),d=h.render(h.props,h.state,h.context),R=0;R<h._sb.length;R++)h.__h.push(h._sb[R]);h._sb=[]}else do{h.__d=!1,w&&w(e),d=h.render(h.props,h.state,h.context),h.state=h.__s}while(h.__d&&++S<25);h.state=h.__s,null!=h.getChildContext&&(i=s(s({},i),h.getChildContext())),u||null==h.getSnapshotBeforeUpdate||(m=h.getSnapshotBeforeUpdate(v,g)),W=null!=d&&d.type===f&&null==d.key?d.props.children:d,x(t,Array.isArray(W)?W:[W],e,n,i,r,a,l,_,c),h.base=e.__e,e.__h=null,h.__h.length&&l.push(h),y&&(h.__E=h.__=null),h.__e=!1}else null==a&&e.__v===n.__v?(e.__k=n.__k,e.__e=n.__e):e.__e=O(n.__e,e,n,i,r,a,l,c);(d=o.diffed)&&d(e)}catch(t){e.__v=null,(c||null!=a)&&(e.__e=_,e.__h=!!c,a[a.indexOf(_)]=null),o.__e(t,e,n)}}function W(t,e){o.__c&&o.__c(e,t),t.some((function(e){try{t=e.__h,e.__h=[],t.some((function(t){t.call(e)}))}catch(t){o.__e(t,e.__v)}}))}function O(t,e,o,i,r,a,_,c){var s,h,u,f=o.props,p=e.props,g=e.type,m=0;if("svg"===g&&(r=!0),null!=a)for(;m<a.length;m++)if((s=a[m])&&"setAttribute"in s==!!g&&(g?s.localName===g:3===s.nodeType)){t=s,a[m]=null;break}if(null==t){if(null===g)return document.createTextNode(p);t=r?document.createElementNS("http://www.w3.org/2000/svg",g):document.createElement(g,p.is&&p),a=null,c=!1}if(null===g)f===p||c&&t.data===p||(t.data=p);else{if(a=a&&n.call(t.childNodes),h=(f=o.props||l).dangerouslySetInnerHTML,u=p.dangerouslySetInnerHTML,!c){if(null!=a)for(f={},m=0;m<t.attributes.length;m++)f[t.attributes[m].name]=t.attributes[m].value;(u||h)&&(u&&(h&&u.__html==h.__html||u.__html===t.innerHTML)||(t.innerHTML=u&&u.__html||""))}if(function(t,e,n,o,i){var r;for(r in n)"children"===r||"key"===r||r in e||C(t,r,null,n[r],o);for(r in e)i&&"function"!=typeof e[r]||"children"===r||"key"===r||"value"===r||"checked"===r||n[r]===e[r]||C(t,r,e[r],n[r],o)}(t,p,f,r,c),u)e.__k=[];else if(m=e.props.children,x(t,Array.isArray(m)?m:[m],e,o,i,r&&"foreignObject"!==g,a,_,a?a[0]:o.__k&&v(o,0),c),null!=a)for(m=a.length;m--;)null!=a[m]&&d(a[m]);c||("value"in p&&void 0!==(m=p.value)&&(m!==t.value||"progress"===g&&!m||"option"===g&&m!==f.value)&&C(t,"value",m,f.value,!1),"checked"in p&&void 0!==(m=p.checked)&&m!==t.checked&&C(t,"checked",m,f.checked,!1))}return t}function H(t,e,n){try{"function"==typeof t?t(e):t.current=e}catch(t){o.__e(t,n)}}function P(t,e,n){var i,r;if(o.unmount&&o.unmount(t),(i=t.ref)&&(i.current&&i.current!==t.__e||H(i,null,e)),null!=(i=t.__c)){if(i.componentWillUnmount)try{i.componentWillUnmount()}catch(t){o.__e(t,e)}i.base=i.__P=null,t.__c=void 0}if(i=t.__k)for(r=0;r<i.length;r++)i[r]&&P(i[r],e,n||"function"!=typeof t.type);n||null==t.__e||d(t.__e),t.__=t.__e=t.__d=void 0}function E(t,e,n){return this.constructor(t,n)}function D(t,e,i){var r,a,_;o.__&&o.__(t,e),a=(r="function"==typeof i)?null:i&&i.__k||e.__k,_=[],R(e,t=(!r&&i||e).__k=h(f,null,[t]),a||l,l,void 0!==e.ownerSVGElement,!r&&i?[i]:a?null:e.firstChild?n.call(e.childNodes):null,_,!r&&i?i:a?a.__e:e.firstChild,r),W(_,t)}n=_.slice,o={__e:function(t,e,n,o){for(var i,r,a;e=e.__;)if((i=e.__c)&&!i.__)try{if((r=i.constructor)&&null!=r.getDerivedStateFromError&&(i.setState(r.getDerivedStateFromError(t)),a=i.__d),null!=i.componentDidCatch&&(i.componentDidCatch(t,o||{}),a=i.__d),a)return i.__E=i}catch(e){t=e}throw t}},i=0,p.prototype.setState=function(t,e){var n;n=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=s({},this.state),"function"==typeof t&&(t=t(s({},n),this.props)),t&&s(n,t),null!=t&&this.__v&&(e&&this._sb.push(e),m(this))},p.prototype.forceUpdate=function(t){this.__v&&(this.__e=!0,t&&this.__h.push(t),m(this))},p.prototype.render=f,r=[],y.__r=0;var A,T,N,V,I=0,U=[],L=[],z=o.__b,j=o.__r,M=o.diffed,B=o.__c,q=o.unmount;function G(t,e){o.__h&&o.__h(T,t,I||e),I=0;var n=T.__H||(T.__H={__:[],__h:[]});return t>=n.__.length&&n.__.push({__V:L}),n.__[t]}function X(t){return I=1,Y(it,t)}function Y(t,e,n){var o=G(A++,2);if(o.t=t,!o.__c&&(o.__=[n?n(e):it(void 0,e),function(t){var e=o.__N?o.__N[0]:o.__[0],n=o.t(e,t);e!==n&&(o.__N=[n,o.__[1]],o.__c.setState({}))}],o.__c=T,!T.u)){T.u=!0;var i=T.shouldComponentUpdate;T.shouldComponentUpdate=function(t,e,n){if(!o.__c.__H)return!0;var r=o.__c.__H.__.filter((function(t){return t.__c}));if(r.every((function(t){return!t.__N})))return!i||i.call(this,t,e,n);var a=!1;return r.forEach((function(t){if(t.__N){var e=t.__[0];t.__=t.__N,t.__N=void 0,e!==t.__[0]&&(a=!0)}})),!(!a&&o.__c.props===t)&&(!i||i.call(this,t,e,n))}}return o.__N||o.__}function J(t,e){var n=G(A++,3);!o.__s&&ot(n.__H,e)&&(n.__=t,n.i=e,T.__H.__h.push(n))}function K(t,e){var n=G(A++,7);return ot(n.__H,e)?(n.__V=t(),n.i=e,n.__h=t,n.__V):n.__}function $(t,e){return I=8,K((function(){return t}),e)}function Q(){for(var t;t=U.shift();)if(t.__P&&t.__H)try{t.__H.__h.forEach(et),t.__H.__h.forEach(nt),t.__H.__h=[]}catch(e){t.__H.__h=[],o.__e(e,t.__v)}}o.__b=function(t){"function"!=typeof t.type||t.__m||null===t.__?t.__m||(t.__m=t.__&&t.__.__m?t.__.__m:""):t.__m=(t.__&&t.__.__m?t.__.__m:"")+(t.__&&t.__.__k?t.__.__k.indexOf(t):0),T=null,z&&z(t)},o.__r=function(t){j&&j(t),A=0;var e=(T=t.__c).__H;e&&(N===T?(e.__h=[],T.__h=[],e.__.forEach((function(t){t.__N&&(t.__=t.__N),t.__V=L,t.__N=t.i=void 0}))):(e.__h.forEach(et),e.__h.forEach(nt),e.__h=[])),N=T},o.diffed=function(t){M&&M(t);var e=t.__c;e&&e.__H&&(e.__H.__h.length&&(1!==U.push(e)&&V===o.requestAnimationFrame||((V=o.requestAnimationFrame)||tt)(Q)),e.__H.__.forEach((function(t){t.i&&(t.__H=t.i),t.__V!==L&&(t.__=t.__V),t.i=void 0,t.__V=L}))),N=T=null},o.__c=function(t,e){e.some((function(t){try{t.__h.forEach(et),t.__h=t.__h.filter((function(t){return!t.__||nt(t)}))}catch(n){e.some((function(t){t.__h&&(t.__h=[])})),e=[],o.__e(n,t.__v)}})),B&&B(t,e)},o.unmount=function(t){q&&q(t);var e,n=t.__c;n&&n.__H&&(n.__H.__.forEach((function(t){try{et(t)}catch(t){e=t}})),n.__H=void 0,e&&o.__e(e,n.__v))};var Z="function"==typeof requestAnimationFrame;function tt(t){var e,n=function(){clearTimeout(o),Z&&cancelAnimationFrame(e),setTimeout(t)},o=setTimeout(n,100);Z&&(e=requestAnimationFrame(n))}function et(t){var e=T,n=t.__c;"function"==typeof n&&(t.__c=void 0,n()),T=e}function nt(t){var e=T;t.__c=t.__(),T=e}function ot(t,e){return!t||t.length!==e.length||e.some((function(e,n){return e!==t[n]}))}function it(t,e){return"function"==typeof e?e(t):e}var rt=Object.freeze({__proto__:null,BUILD_VERSION:"2.104.18",Component:p,Fragment:f,PKG_NAME:"@hpcc-js/preact-shim",PKG_VERSION:"2.16.3",createElement:h,h:h,render:D,useCallback:$,useEffect:J,useMemo:K,useReducer:Y,useState:X}),at=function(t,e){return at=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},at(t,e)};function lt(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}at(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}var _t=function(){return _t=Object.assign||function(t){for(var e,n=1,o=arguments.length;n<o;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},_t.apply(this,arguments)};function ct(t,e,n,o){var i,r=arguments.length,a=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,o);else for(var l=t.length-1;l>=0;l--)(i=t[l])&&(a=(r<3?i(a):r>3?i(e,n,a):i(e,n))||a);return r>3&&a&&Object.defineProperty(e,n,a),a}function st(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)}var dt=function(t){var n=t.x,o=t.y,i=void 0===o?0:o,r=t.height,a=void 0===r?12:r,l=t.fill,_=t.stroke,c=t.fontFamily,s=void 0===c?"FontAwesome":c,d=t.char,u=void 0===d?"":d,f=K((function(){return"FontAwesome"===s?e.Utility.faChar(u):u}),[u,s]);return h("text",{x:n,y:i,fill:l,stroke:_,"font-family":s,"font-size":"".concat(a,"px"),"dominant-baseline":"middle",style:"text-anchor: middle;alignment-baseline:middle;"},f)},ht=function(t){var e=t.radius,n=void 0===e?32:e,o=t.fill,i=void 0===o?"navy":o,r=t.stroke,a=void 0===r?i:r,l=t.strokeWidth;return h("circle",{r:n,fill:i,stroke:a,"stroke-width":void 0===l?1:l,"shape-rendering":t.shapeRendering})},ut=function(t){var e=t.radius,n=void 0===e?30:e,o=t.cornerRadius,i=void 0===o?0:o,r=t.fill,a=void 0===r?"white":r,l=t.stroke,_=t.strokeWidth;return h("rect",{x:-n,y:-n,rx:i,ry:i,width:2*n,height:2*n,fill:a,stroke:l||a,"stroke-width":void 0===_?1:_,"shape-rendering":t.shapeRendering})},ft=function(t){var e=t.width,n=void 0===e?30:e,o=t.height,i=void 0===o?30:o,r=t.cornerRadius,a=void 0===r?0:r,l=t.fill,_=void 0===l?"white":l,c=t.stroke,s=void 0===c?"black":c,d=t.strokeWidth;return h("rect",{x:-n/2,y:-i/2,rx:a,ry:a,width:n,height:i,fill:_,stroke:s||_,"stroke-width":void 0===d?1:d,"shape-rendering":t.shapeRendering})},pt=function(t){var e=t.shape,n=void 0===e?"circle":e,o=t.height,i=void 0===o?128:o,r=t.width,a=t.fill,l=t.stroke,_=t.strokeWidth,c=void 0===_?1:_,s=t.shapeRendering,d=t.cornerRadius;switch(n){case"square":return h(ut,{radius:i/2,fill:a,stroke:l,strokeWidth:c,shapeRendering:s,cornerRadius:d});case"rectangle":return h(ft,{width:null!=r?r:i,height:i,fill:a,stroke:l,strokeWidth:c,shapeRendering:s,cornerRadius:d});default:return h(ht,{radius:i/2,fill:a,stroke:l,strokeWidth:c,shapeRendering:s})}},vt=function(t){var n=t.shape,o=void 0===n?"circle":n,i=t.width,r=t.height,a=void 0===r?32:r,l=t.fill,_=t.stroke,c=t.strokeWidth,s=void 0===c?0:c,d=t.imageFontFamily,u=void 0===d?"FontAwesome":d,p=t.imageChar,v=void 0===p?"":p,g=t.imageCharFill,m=void 0===g?e.Palette.textColor(l):g,y=t.padding,x=void 0===y?a/5:y,k=t.xOffset,F=void 0===k?0:k,b=t.yOffset,C=void 0===b?0:b,w=t.cornerRadius,S=t.shapeRendering;return h(f,null,h(pt,{shape:o,width:i,height:a,fill:l,stroke:_,strokeWidth:s,shapeRendering:S,cornerRadius:w}),h(dt,{x:F,y:C,height:a-x,fontFamily:u,char:v,fill:m,"font-weight":400}))},gt=function(t){var e=t.text,n=t.height,o=void 0===n?12:n,i=t.anchor,r=void 0===i?"middle":i,a=t.baseline,l=void 0===a?"middle":a,_=t.fontFamily,c=void 0===_?"Verdana":_,s=t.fill,d=void 0===s?"black":s;return h("text",{"font-family":c,"font-size":"".concat(o,"px"),"text-anchor":r,"dominant-baseline":l,fill:d},e)},mt=function(t){var n=t.text,o=t.height,i=void 0===o?12:o,r=t.fontFamily,a=void 0===r?"Verdana":r,l=t.fill,_=void 0===l?"black":l,c=t.onSizeUpdate,s=X(0),d=s[0],u=s[1],p=X(0),v=p[0],g=p[1];J((function(){c&&c({width:d,height:v})}),[d,v,c]);var m=K((function(){return n.split("\n")}),[n]);u(K((function(){return e.Utility.textSize(m,a,i)}),[a,i,m]).width),g(m.length*(i+2)-2);var y=-v/2+i/2,x=K((function(){return m.map((function(t,e){return h("g",{key:e,transform:"translate(0 ".concat(y+e*(i+2),")")},h(gt,{text:t,height:i,fontFamily:a,fill:_}))}))}),[_,a,i,m,y]);return h(f,null,x)},yt=function(t){var e=t.text,n=t.height,o=void 0===n?12:n,i=t.fontFamily,r=void 0===i?"Verdana":i,a=t.padding,l=void 0===a?4:a,_=t.fill,c=void 0===_?"whitesmoke":_,s=t.stroke,d=void 0===s?"lightgray":s,u=t.textFill,p=void 0===u?"black":u,v=t.strokeWidth,g=void 0===v?1:v,m=t.cornerRadius,y=void 0===m?0:m,x=t.onSizeUpdate,k=X(0),F=k[0],b=k[1],C=X(0),w=C[0],S=C[1];J((function(){x&&x({width:F,height:w})}),[F,w,x]);var R=$((function(t){b(t.width),S(t.height)}),[]),W=F+2*l+g,O=w+2*l+g,H=Math.floor(o/10);return h(f,null,h(ft,{width:W,height:O,fill:c,stroke:d,strokeWidth:g,cornerRadius:y}),h("g",{transform:"translate(0 ".concat(H,")")},h(mt,{text:e,fontFamily:r,height:o,fill:p,onSizeUpdate:R})))};function xt(t,e,n,o){D(h(t,e),n,o)}var kt=function(t){function n(e){var n=t.call(this)||this;return n._component=e,n._props={},n}return lt(n,t),n.prototype.props=function(t){return arguments.length?(this._props=_t(_t({},this._props),t),this):this._props},n.prototype.prop=function(t,e){return 1===arguments.length?this._props[t]:(this._props[t]=e,this)},n.prototype.update=function(e,n){t.prototype.update.call(this,e,n),xt(this._component,this._props,e)},ct([e.publish({},"object","Properties"),st("design:type",Object)],n.prototype,"_props",void 0),n}(e.HTMLWidget),Ft=function(t){function n(e){var n=t.call(this)||this;return n._component=e,n._props={},n}return lt(n,t),n.prototype.props=function(t){return arguments.length?(this._props=_t(_t({},this._props),t),this):this._props},n.prototype.prop=function(t,e){return 1===arguments.length?this._props[t]:(this._props[t]=e,this)},n.prototype.update=function(e,n){t.prototype.update.call(this,e,n),xt(this._component,this._props,e)},ct([e.publish({},"object","Properties"),st("design:type",Object)],n.prototype,"_props",void 0),n}(e.SVGWidget),bt=function(t){var e=t.x,n=t.y,o=t.annotationIDs,i=void 0===o?[]:o,r=t.stepSize,a=void 0===r?-16:r,l=i.map((function(t,o){return h("g",{key:t,transform:"translate(".concat(e+o*a," ").concat(n,")")},h("use",{href:"#"+t}))}));return h(f,null,l)},Ct=function(t){var n=t.text,o=void 0===n?"":n,i=t.textHeight,r=void 0===i?10:i,a=t.textPadding,l=void 0===a?4:a,_=t.textFill,c=void 0===_?"#287EC4":_,s=t.textboxFill,d=void 0===s?"white":s,u=t.textboxStroke,f=void 0===u?"#CCCCCC":u,p=t.textboxStrokeWidth,v=void 0===p?1:p,g=t.textFontFamily,m=void 0===g?"Verdana":g,y=t.annotationGutter,x=void 0===y?2:y,k=t.annotations,F=void 0===k?[]:k,b=t.cornerRadius,C=void 0===b?3:b,w=t.icon,S=void 0===w?{}:w,R=t.subText,W=void 0===R?{}:R,O=t.showLabel,H=void 0===O||O,P=t.noLabelRadius,E=void 0===P?5:P,D=t.expansionIcon,A=t.scale,T=void 0===A?1:A;S=_t({height:50,imageChar:"?",imageFontFamily:"FontAwesome",imageCharFill:"#555555",fill:"transparent",strokeWidth:0},S),W=_t({text:"",fill:"white",textFill:"#555555"},W),D=D?_t({height:16,shape:"circle",padding:6,imageChar:"?",imageFontFamily:"FontAwesome",imageCharFill:"black",fill:"whitesmoke",stroke:"whitesmoke",strokeWidth:0},D):void 0;var N=0,V=K((function(){return e.Utility.textSize(o,m,r,!1).width}),[o,m,r]),I=0;""!==o&&(I=V+2*l+2*v);var U=(N+=I+x)-I/2,L=r+2*l+2*v,z=[];F.forEach((function(t,e){var n=t.imageChar,o=(N+=L+x)-L/2;z.push(h("g",{key:e,class:"vertex3-anno","data-click":"annotation","data-click-data":JSON.stringify(t),transform:"translate(".concat(o," ").concat(0,")")},h(vt,_t({},t,{shape:"square",height:L,imageChar:n,imageFontFamily:t.imageFontFamily,cornerRadius:C,strokeWidth:0}))))})),F.length>0&&(N+=x*(F.length-1));var j=h("g",{"data-click":"text",transform:"translate(".concat(U," ").concat(0,")")},H&&""!==o?h(yt,{text:o,height:r,padding:l,strokeWidth:v,stroke:f,fill:d,textFill:c,fontFamily:m,cornerRadius:C}):h("circle",{r:E,stroke:f,fill:c})),M=S.height||20,B=S.strokeWidth||0,q=0,G=L+2*x;""!==o||z.length>0?q=-M/2-B-L/2-2*x:""!==W.text&&(G=M/2+B+2*x);var X=""===W.text?null:h("g",{"data-click":"subtext",transform:"translate(".concat(0," ").concat(G,")")},h(yt,_t({fill:W.fill||"#FFFFFF",textFill:W.textFill||c},W,{height:r,padding:l,strokeWidth:0,stroke:f,fontFamily:m,cornerRadius:C})));return h("g",{transform:"scale(".concat(T,")")},h("g",{"data-click":"icon",transform:"translate(".concat(0," ").concat(q,")")},h(vt,_t({},S)),D&&h("g",{"data-click":"expanded-icon","data-click-data":JSON.stringify(D),transform:"translate(".concat((S.height+B)/2-D.height/2," ").concat(-(S.height+B)/2+D.height/2,")")},h(vt,_t({},D)))),h("g",{transform:"translate(".concat(-N/2," ").concat(0,")")},j,z),X)},wt=function(t){t.categoryID;var n=t.text,o=void 0===n?"":n,i=t.textHeight,r=void 0===i?10:i,a=t.textPadding,l=void 0===a?4:a,_=t.textFill,c=void 0===_?"#287EC4":_,s=t.textboxFill,d=void 0===s?"white":s,u=t.textboxStroke,f=void 0===u?"#CCCCCC":u,p=t.textboxStrokeWidth,v=void 0===p?1:p,g=t.textFontFamily,m=void 0===g?"Verdana":g,y=t.annotationGutter,x=void 0===y?2:y,k=t.annotations,F=void 0===k?[]:k,b=t.iconAnnotations,C=void 0===b?[]:b,w=t.cornerRadius,S=void 0===w?3:w,R=t.icon,W=void 0===R?{}:R,O=t.subText,H=void 0===O?{}:O,P=t.showLabel,E=void 0===P||P,D=t.noLabelRadius,A=void 0===D?5:D,T=t.iconBorderWidth,N=void 0===T?1:T,V=t.iconBorderColor,I=void 0===V?"#333":V,U=t.iconBackgroundColor,L=void 0===U?"#fff":U,z=t.iconFontColor,j=void 0===z?"#000":z,M=t.iconFontSize,B=void 0===M?20:M,q=t.iconFontFamily,G=void 0===q?"FontAwesome":q,X=t.shapeOffsetX,Y=void 0===X?0:X,J=t.shapeOffsetY,$=void 0===J?0:J,Q=t.iconOffsetX,Z=void 0===Q?0:Q,tt=t.iconOffsetY,et=void 0===tt?0:tt,nt=t.iconPadding,ot=void 0===nt?4:nt,it=t.iconText,rt=void 0===it?"?":it,at=t.shapeRendering,lt=void 0===at?"auto":at;W=_t({height:50,imageChar:"?",imageFontFamily:"FontAwesome",imageCharFill:"#555555",fill:"transparent",strokeWidth:0},W),H=_t({text:"",fill:"white",textFill:"#555555"},H);var ct=K((function(){return e.Utility.textSize(o,m,r,!1).width}),[o,m,r]),st=0;""!==o&&(st=ct+2*l+2*v);var dt=st+x,ht=dt-st/2,ut=r+2*x+2*v,ft=F.map((function(t,n){return e.Utility.textSize(t.imageChar,t.imageFontFamily,t.height,!1).width})),pt=[],gt=dt;F.forEach((function(t,e){var n,o=t.imageChar,i=null!==(n=t.height)&&void 0!==n?n:ut,r=(gt+=ft[e]+x)-ft[e]/2;pt.push(h("g",{key:e,class:"vertex3-anno","data-click":"annotation","data-click-data":JSON.stringify(t),transform:"translate(".concat(r," ").concat(0,")")},h(vt,_t({},t,{shape:"rectangle",width:ft[e],height:i,imageChar:o,imageFontFamily:t.imageFontFamily,cornerRadius:S,strokeWidth:0}))))})),F.length>0&&(dt+=x*(F.length-1));var mt=[];C.forEach((function(t,e){var n,o=t.shapeOffsetX,i=t.shapeOffsetY;mt.push(h("g",{key:e,class:"vertex3-iconAnno","data-click":"icon-annotation","data-click-data":JSON.stringify(t),transform:"translate(".concat(o," ").concat(i,")")},h(vt,_t({},t,{shape:null!==(n=t.shape)&&void 0!==n?n:"square",imageChar:t.imageChar,imageFontFamily:t.imageFontFamily,cornerRadius:S,stroke:t.stroke,strokeWidth:t.strokeWidth}))))}));var xt=h("g",{"data-click":"text",transform:"translate(".concat(ht," ").concat(0,")")},E&&""!==o?h(yt,{text:o,height:r,padding:l,strokeWidth:v,stroke:f,fill:d,textFill:c,fontFamily:m,cornerRadius:S}):h("circle",{r:A,stroke:f,fill:c})),kt=ut+2*x,Ft=""===H.text?null:h("g",{"data-click":"subtext",transform:"translate(".concat(0," ").concat(kt,")")},h(yt,_t({fill:H.fill||"#FFFFFF",textFill:H.textFill||c},H,{height:r,padding:l,strokeWidth:0,stroke:f,fontFamily:m,cornerRadius:S})));return h("g",null,h("g",{"data-click":"icon",transform:"translate(".concat(Y," ").concat($,")")},h(vt,_t({},W,{strokeWidth:N,shape:"circle",height:B,fill:L,stroke:I,imageFontFamily:G,imageChar:rt,imageCharFill:j,padding:ot,xOffset:Z,yOffset:et,cornerRadius:S,shapeRendering:lt})),mt),h("g",{transform:"translate(".concat(-dt/2," ").concat(0,")")},xt,pt),Ft)};t.Annotations=bt,t.BUILD_VERSION="2.104.18",t.CentroidVertex3=function(t){var e=t.id,n=t.categoryID,o=void 0===n?"":n,i=t.text,r=void 0===i?"":i,a=t.textHeight,l=void 0===a?12:a,_=t.textPadding,c=void 0===_?10:_,s=t.textFill,d=void 0===s?"#287EC4":s,u=t.textboxFill,f=void 0===u?"white":u,p=t.textboxStroke,v=void 0===p?"#CCCCCC":p,g=t.textboxStrokeWidth,m=void 0===g?1:g,y=t.textFontFamily,x=void 0===y?"Verdana":y,k=t.annotationGutter,F=void 0===k?2:k,b=t.annotations,C=void 0===b?[]:b,w=t.cornerRadius,S=t.icon,R=void 0===S?{}:S,W=t.subText,O=void 0===W?{}:W,H=t.expansionIcon,P=t.scale,E=void 0===P?1:P;return R=_t({height:91,padding:40,imageCharFill:"#555555",imageFontFamily:"FontAwesome",fill:"#FFCC33",stroke:"#DFDFDF",imageChar:"?",strokeWidth:4,yOffset:-15},R),O=_t({text:"",fill:"transparent",textFill:"#555555"},O),h(Ct,_t({},{id:e,categoryID:o,text:r,textHeight:l,textPadding:c,textFill:d,textboxFill:f,textboxStroke:v,textboxStrokeWidth:m,textFontFamily:x,annotationGutter:F,annotations:C,cornerRadius:w,icon:R,subText:O,expansionIcon:H,scale:E},{icon:R,subText:O}))},t.CentroidVertex4=function(t){var e=t.id,n=t.categoryID,o=void 0===n?"":n,i=t.text,r=void 0===i?"":i,a=t.textHeight,l=void 0===a?12:a,_=t.textPadding,c=void 0===_?10:_,s=t.textFill,d=void 0===s?"#287EC4":s,u=t.textboxFill,f=void 0===u?"white":u,p=t.textboxStroke,v=void 0===p?"#CCCCCC":p,g=t.textboxStrokeWidth,m=void 0===g?1:g,y=t.textFontFamily,x=void 0===y?"Verdana":y,k=t.annotationGutter,F=void 0===k?2:k,b=t.annotations,C=void 0===b?[]:b,w=t.iconAnnotations,S=void 0===w?[]:w,R=t.cornerRadius,W=t.icon,O=void 0===W?{}:W,H=t.subText,P=void 0===H?{}:H,E=t.showLabel,D=void 0===E||E,A=t.noLabelRadius,T=void 0===A?5:A,N=t.iconBorderWidth,V=void 0===N?1:N,I=t.iconBorderColor,U=void 0===I?"#333":I,L=t.iconBackgroundColor,z=void 0===L?"#fff":L,j=t.iconFontColor,M=void 0===j?"#000":j,B=t.iconFontSize,q=void 0===B?20:B,G=t.iconFontFamily,X=void 0===G?"FontAwesome":G,Y=t.shapeOffsetX,J=void 0===Y?0:Y,K=t.shapeOffsetY,$=void 0===K?0:K,Q=t.iconOffsetX,Z=void 0===Q?0:Q,tt=t.iconOffsetY,et=void 0===tt?0:tt,nt=t.iconPadding,ot=void 0===nt?4:nt,it=t.iconText,rt=void 0===it?"?":it,at=t.shapeRendering,lt=void 0===at?"auto":at;return O=_t({height:91,padding:40,imageCharFill:"#555555",imageFontFamily:"FontAwesome",fill:"#FFCC33",stroke:"#DFDFDF",imageChar:"?",strokeWidth:4,yOffset:-15},O),P=_t({text:"",fill:"transparent",textFill:"#555555"},P),h(wt,_t({},{id:e,categoryID:o,text:r,textHeight:l,textPadding:c,textFill:d,textboxFill:f,textboxStroke:v,textboxStrokeWidth:m,textFontFamily:x,annotationGutter:F,annotations:C,iconAnnotations:S,cornerRadius:R,icon:O,subText:P,showLabel:D,noLabelRadius:T,iconBorderWidth:V,iconBorderColor:U,iconBackgroundColor:z,iconFontColor:M,iconFontSize:q,iconFontFamily:X,shapeOffsetX:J,shapeOffsetY:$,iconOffsetX:Z,iconOffsetY:et,iconPadding:ot,iconText:rt,shapeRendering:lt},{icon:O,subText:P}))},t.Circle=ht,t.Edge=function(t){var e=t.label,n=t.labelPos,o=t.labelFill,i=void 0===o?"black":o,r=t.labelHeight,a=void 0===r?12:r;return h(f,null,h("path",{d:t.path,stroke:t.stroke,style:{strokeWidth:t.strokeWidth,strokeDasharray:t.strokeDasharray}}),e&&n&&2===n.length?h("g",{transform:"translate(".concat(n[0]," ").concat(n[1],")")},h(mt,{text:e,fill:i,height:a})):void 0)},t.HTMLAdapter=kt,t.Icon=vt,t.IconLabelledRect=function(t){var e=t.icon,n=t.iconFontFamily,o=t.text,i=t.height,r=void 0===i?12:i,a=t.width,l=void 0===a?12:a,_=t.fontFamily,c=void 0===_?"Verdana":_,s=t.fontSize,d=void 0===s?10:s,u=t.padding,p=void 0===u?3:u,v=t.fill,g=void 0===v?"whitesmoke":v,m=t.stroke,y=void 0===m?"lightgray":m,x=t.textFill,k=void 0===x?"black":x,F=t.strokeWidth,b=void 0===F?1:F,C=t.cornerRadius,w=void 0===C?0:C;return t.onSizeUpdate,h(f,null,h(ft,{width:l,height:r,fill:g,stroke:y,strokeWidth:b,cornerRadius:w}),h("g",{transform:"translate(".concat(-l/2+p," ").concat(-r/2+p,")")},h(vt,{shape:"square",imageFontFamily:n,imageChar:e,height:r,fill:g,imageCharFill:k})),h("g",{transform:"translate(".concat(-l/2+2*p+r," ").concat(-r/2+p,")")},h(gt,{text:o,fontFamily:c,height:d,fill:k,anchor:"start",baseline:"hanging"})))},t.Icons=function(t){var e=t.icons,n=(void 0===e?[]:e).map((function(t){return h("g",{key:t.id,id:t.id},h(vt,_t({},t)))}));return h(f,null,n)},t.ImageChar=dt,t.LabelledRect=function(t){var e=t.text,n=t.height,o=void 0===n?12:n,i=t.width,r=void 0===i?12:i,a=t.fontFamily,l=void 0===a?"Verdana":a,_=t.fontSize,c=void 0===_?10:_,s=t.padding,d=void 0===s?3:s,u=t.fill,p=void 0===u?"whitesmoke":u,v=t.stroke,g=void 0===v?"lightgray":v,m=t.textFill,y=void 0===m?"black":m,x=t.strokeWidth,k=void 0===x?1:x,F=t.cornerRadius,b=void 0===F?0:F;return t.onSizeUpdate,h(f,null,h(ft,{width:r,height:o,fill:p,stroke:g,strokeWidth:k,cornerRadius:b}),h("g",{transform:"translate(".concat(-r/2+d," ").concat(-o/2+d,")")},h(gt,{text:e,fontFamily:l,height:c,fill:y,anchor:"start",baseline:"hanging"})))},t.PKG_NAME="@hpcc-js/react",t.PKG_VERSION="2.53.4",t.React=rt,t.Rectangle=ft,t.SVGAdapter=Ft,t.Shape=pt,t.Square=ut,t.Subgraph=function(t){var n=t.text,o=t.width,i=void 0===o?100:o,r=t.height,a=void 0===r?100:r,l=t.fill,_=void 0===l?"transparent":l,c=t.stroke,s=void 0===c?"black":c,d=t.fontHeight,u=void 0===d?12:d,p=t.fontFamily,v=e.Utility.textSize(n,p,u,!1);return h(f,null,h(ft,{width:i,height:a,fill:_,stroke:s}),h("g",{transform:"translate(".concat((-i+v.width)/2+4," ").concat((-a+v.height)/2+4,")")},h(mt,{height:u,text:n,fontFamily:p})))},t.Text=mt,t.TextBox=yt,t.TextLine=gt,t.Vertex=function(t){var e=t.categoryID,n=void 0===e?"":e,o=t.text,i=void 0===o?"":o,r=t.textHeight,a=void 0===r?12:r,l=t.textPadding,_=void 0===l?4:l,c=t.icon,s=void 0===c?{}:c,d=t.annotationsHeight,u=void 0===d?12:d,f=t.annotationIDs,p=void 0===f?[]:f,v=t.textFill,g=t.textboxFill,m=t.textboxStroke,y=t.textFontFamily,x=t.onSizeUpdate,k=t.showLabel,F=void 0===k||k,b=t.scale,C=void 0===b?1:b,w=X(0),S=w[0],R=w[1],W=X(0),O=W[0],H=W[1];J((function(){x&&x({width:0,height:0})}),[S,O,x]);var P=S;P+=4;var E=-(2*(s=_t({imageChar:"fa-question",height:32,fill:"transparent"},s)).height/6+a+8)/2,D=s.height/3+O/2+_,A=s.height/3+O+_+u/3;F||(E+=(a+8)/2,A-=O+_);var T=$((function(t){R(t.width),H(t.height)}),[]),N=F?h("g",{transform:"translate(0 ".concat(D,")")},h(yt,{text:i,height:a,padding:_,onSizeUpdate:T,textFill:v,fill:g,stroke:m,fontFamily:y})):void 0;return n?h("g",{transform:"translate(0 ".concat(E,") scale(").concat(C,")")},h("use",{href:"#"+n}),N,h(bt,{x:P/2,y:A,annotationIDs:p})):h("g",{transform:"translate(0 ".concat(E,") scale(").concat(C,")")},h(vt,_t({},s)),N)},t.Vertex2=function(t){var n=t.categoryID,o=void 0===n?"":n,i=t.text,r=void 0===i?"":i,a=t.textHeight,l=void 0===a?12:a,_=t.textPadding,c=void 0===_?4:_,s=t.icon,d=void 0===s?{}:s,u=t.textFill,p=void 0===u?"black":u,v=t.textboxFill,g=void 0===v?"white":v,m=t.textboxStroke,y=void 0===m?"black":m,x=t.textFontFamily,k=t.annotationsHeight,F=void 0===k?12:k,b=t.annotationIDs,C=void 0===b?[]:b;d=_t({imageChar:"fa-question",imageCharFill:"white",height:32,fill:"black",shape:"square"},d);var w=l+2*c,S=K((function(){return e.Utility.textSize(r,x,l,!1)}),[r,x,l]).width,R=F,W=w/2,O=-(2*d.height/6+l+8)/2,H=-d.height/2,P=Math.ceil(S/2+c),E=W-d.height/2,D=R/2,A=W;return o?h("g",{transform:"translate(".concat(0," ").concat(O,")")},h("g",{transform:"translate(".concat(H," ").concat(0,")")},h("use",{href:"#"+o})),h("g",{transform:"translate(".concat(P," ").concat(E,")")},h(yt,{text:r,height:l,padding:c,strokeWidth:1,stroke:y,fill:g,textFill:p,fontFamily:x})),h(bt,{x:D,y:A,annotationIDs:C,stepSize:R})):h(f,null,h("g",{transform:"translate(".concat(H," ").concat(0,")scale(1.0002)")},h(vt,_t({},d,{shape:"square"}))),h("g",{transform:"translate(".concat(P," ").concat(E,")scale(1.0002)")},h(yt,{text:r,height:l,padding:c,stroke:y,fill:g})))},t.Vertex3=Ct,t.Vertex4=wt,t.render=xt,t.svgRender=function(t,e,n,o){D(h("svg",null,h(t,e)),n,o)},Object.defineProperty(t,"__esModule",{value:!0})}));
|
|
1
|
+
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("@hpcc-js/common")):"function"==typeof define&&define.amd?define(["exports","@hpcc-js/common"],e):e((t="undefined"!=typeof globalThis?globalThis:t||self)["@hpcc-js/react"]={},t["@hpcc-js/common"])}(this,(function(t,e){"use strict";var n,o,i,r,a,l={},_=[],c=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function s(t,e){for(var n in e)t[n]=e[n];return t}function d(t){var e=t.parentNode;e&&e.removeChild(t)}function h(t,e,o){var i,r,a,l={};for(a in e)"key"==a?i=e[a]:"ref"==a?r=e[a]:l[a]=e[a];if(arguments.length>2&&(l.children=arguments.length>3?n.call(arguments,2):o),"function"==typeof t&&null!=t.defaultProps)for(a in t.defaultProps)void 0===l[a]&&(l[a]=t.defaultProps[a]);return u(t,l,i,r,null)}function u(t,e,n,r,a){var l={type:t,props:e,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:null==a?++i:a};return null==a&&null!=o.vnode&&o.vnode(l),l}function f(t){return t.children}function p(t,e){this.props=t,this.context=e}function v(t,e){if(null==e)return t.__?v(t.__,t.__.__k.indexOf(t)+1):null;for(var n;e<t.__k.length;e++)if(null!=(n=t.__k[e])&&null!=n.__e)return n.__e;return"function"==typeof t.type?v(t):null}function g(t){var e,n;if(null!=(t=t.__)&&null!=t.__c){for(t.__e=t.__c.base=null,e=0;e<t.__k.length;e++)if(null!=(n=t.__k[e])&&null!=n.__e){t.__e=t.__c.base=n.__e;break}return g(t)}}function m(t){(!t.__d&&(t.__d=!0)&&r.push(t)&&!y.__r++||a!==o.debounceRendering)&&((a=o.debounceRendering)||setTimeout)(y)}function y(){for(var t;y.__r=r.length;)t=r.sort((function(t,e){return t.__v.__b-e.__v.__b})),r=[],t.some((function(t){var e,n,o,i,r,a;t.__d&&(r=(i=(e=t).__v).__e,(a=e.__P)&&(n=[],(o=s({},i)).__v=i.__v+1,R(a,i,o,e.__n,void 0!==a.ownerSVGElement,null!=i.__h?[r]:null,n,null==r?v(i):r,i.__h),W(n,i),i.__e!=r&&g(i)))}))}function x(t,e,n,o,i,r,a,c,s,d){var h,p,g,m,y,x,b,C=o&&o.__k||_,w=C.length;for(n.__k=[],h=0;h<e.length;h++)if(null!=(m=n.__k[h]=null==(m=e[h])||"boolean"==typeof m?null:"string"==typeof m||"number"==typeof m||"bigint"==typeof m?u(null,m,null,null,m):Array.isArray(m)?u(f,{children:m},null,null,null):m.__b>0?u(m.type,m.props,m.key,m.ref?m.ref:null,m.__v):m)){if(m.__=n,m.__b=n.__b+1,null===(g=C[h])||g&&m.key==g.key&&m.type===g.type)C[h]=void 0;else for(p=0;p<w;p++){if((g=C[p])&&m.key==g.key&&m.type===g.type){C[p]=void 0;break}g=null}R(t,m,g=g||l,i,r,a,c,s,d),y=m.__e,(p=m.ref)&&g.ref!=p&&(b||(b=[]),g.ref&&b.push(g.ref,null,m),b.push(p,m.__c||y,m)),null!=y?(null==x&&(x=y),"function"==typeof m.type&&m.__k===g.__k?m.__d=s=k(m,s,t):s=F(t,m,g,C,y,s),"function"==typeof n.type&&(n.__d=s)):s&&g.__e==s&&s.parentNode!=t&&(s=v(g))}for(n.__e=x,h=w;h--;)null!=C[h]&&P(C[h],C[h]);if(b)for(h=0;h<b.length;h++)H(b[h],b[++h],b[++h])}function k(t,e,n){for(var o,i=t.__k,r=0;i&&r<i.length;r++)(o=i[r])&&(o.__=t,e="function"==typeof o.type?k(o,e,n):F(n,o,o,i,o.__e,e));return e}function F(t,e,n,o,i,r){var a,l,_;if(void 0!==e.__d)a=e.__d,e.__d=void 0;else if(null==n||i!=r||null==i.parentNode)t:if(null==r||r.parentNode!==t)t.appendChild(i),a=null;else{for(l=r,_=0;(l=l.nextSibling)&&_<o.length;_+=2)if(l==i)break t;t.insertBefore(i,r),a=r}return void 0!==a?a:i.nextSibling}function b(t,e,n){"-"===e[0]?t.setProperty(e,n):t[e]=null==n?"":"number"!=typeof n||c.test(e)?n:n+"px"}function C(t,e,n,o,i){var r;t:if("style"===e)if("string"==typeof n)t.style.cssText=n;else{if("string"==typeof o&&(t.style.cssText=o=""),o)for(e in o)n&&e in n||b(t.style,e,"");if(n)for(e in n)o&&n[e]===o[e]||b(t.style,e,n[e])}else if("o"===e[0]&&"n"===e[1])r=e!==(e=e.replace(/Capture$/,"")),e=e.toLowerCase()in t?e.toLowerCase().slice(2):e.slice(2),t.l||(t.l={}),t.l[e+r]=n,n?o||t.addEventListener(e,r?S:w,r):t.removeEventListener(e,r?S:w,r);else if("dangerouslySetInnerHTML"!==e){if(i)e=e.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("href"!==e&&"list"!==e&&"form"!==e&&"tabIndex"!==e&&"download"!==e&&e in t)try{t[e]=null==n?"":n;break t}catch(t){}"function"==typeof n||(null==n||!1===n&&-1==e.indexOf("-")?t.removeAttribute(e):t.setAttribute(e,n))}}function w(t){this.l[t.type+!1](o.event?o.event(t):t)}function S(t){this.l[t.type+!0](o.event?o.event(t):t)}function R(t,e,n,i,r,a,l,_,c){var d,h,u,v,g,m,y,k,F,b,C,w,S,R,W,H=e.type;if(void 0!==e.constructor)return null;null!=n.__h&&(c=n.__h,_=e.__e=n.__e,e.__h=null,a=[_]),(d=o.__b)&&d(e);try{t:if("function"==typeof H){if(k=e.props,F=(d=H.contextType)&&i[d.__c],b=d?F?F.props.value:d.__:i,n.__c?y=(h=e.__c=n.__c).__=h.__E:("prototype"in H&&H.prototype.render?e.__c=h=new H(k,b):(e.__c=h=new p(k,b),h.constructor=H,h.render=E),F&&F.sub(h),h.props=k,h.state||(h.state={}),h.context=b,h.__n=i,u=h.__d=!0,h.__h=[],h._sb=[]),null==h.__s&&(h.__s=h.state),null!=H.getDerivedStateFromProps&&(h.__s==h.state&&(h.__s=s({},h.__s)),s(h.__s,H.getDerivedStateFromProps(k,h.__s))),v=h.props,g=h.state,u)null==H.getDerivedStateFromProps&&null!=h.componentWillMount&&h.componentWillMount(),null!=h.componentDidMount&&h.__h.push(h.componentDidMount);else{if(null==H.getDerivedStateFromProps&&k!==v&&null!=h.componentWillReceiveProps&&h.componentWillReceiveProps(k,b),!h.__e&&null!=h.shouldComponentUpdate&&!1===h.shouldComponentUpdate(k,h.__s,b)||e.__v===n.__v){for(h.props=k,h.state=h.__s,e.__v!==n.__v&&(h.__d=!1),h.__v=e,e.__e=n.__e,e.__k=n.__k,e.__k.forEach((function(t){t&&(t.__=e)})),C=0;C<h._sb.length;C++)h.__h.push(h._sb[C]);h._sb=[],h.__h.length&&l.push(h);break t}null!=h.componentWillUpdate&&h.componentWillUpdate(k,h.__s,b),null!=h.componentDidUpdate&&h.__h.push((function(){h.componentDidUpdate(v,g,m)}))}if(h.context=b,h.props=k,h.__v=e,h.__P=t,w=o.__r,S=0,"prototype"in H&&H.prototype.render){for(h.state=h.__s,h.__d=!1,w&&w(e),d=h.render(h.props,h.state,h.context),R=0;R<h._sb.length;R++)h.__h.push(h._sb[R]);h._sb=[]}else do{h.__d=!1,w&&w(e),d=h.render(h.props,h.state,h.context),h.state=h.__s}while(h.__d&&++S<25);h.state=h.__s,null!=h.getChildContext&&(i=s(s({},i),h.getChildContext())),u||null==h.getSnapshotBeforeUpdate||(m=h.getSnapshotBeforeUpdate(v,g)),W=null!=d&&d.type===f&&null==d.key?d.props.children:d,x(t,Array.isArray(W)?W:[W],e,n,i,r,a,l,_,c),h.base=e.__e,e.__h=null,h.__h.length&&l.push(h),y&&(h.__E=h.__=null),h.__e=!1}else null==a&&e.__v===n.__v?(e.__k=n.__k,e.__e=n.__e):e.__e=O(n.__e,e,n,i,r,a,l,c);(d=o.diffed)&&d(e)}catch(t){e.__v=null,(c||null!=a)&&(e.__e=_,e.__h=!!c,a[a.indexOf(_)]=null),o.__e(t,e,n)}}function W(t,e){o.__c&&o.__c(e,t),t.some((function(e){try{t=e.__h,e.__h=[],t.some((function(t){t.call(e)}))}catch(t){o.__e(t,e.__v)}}))}function O(t,e,o,i,r,a,_,c){var s,h,u,f=o.props,p=e.props,g=e.type,m=0;if("svg"===g&&(r=!0),null!=a)for(;m<a.length;m++)if((s=a[m])&&"setAttribute"in s==!!g&&(g?s.localName===g:3===s.nodeType)){t=s,a[m]=null;break}if(null==t){if(null===g)return document.createTextNode(p);t=r?document.createElementNS("http://www.w3.org/2000/svg",g):document.createElement(g,p.is&&p),a=null,c=!1}if(null===g)f===p||c&&t.data===p||(t.data=p);else{if(a=a&&n.call(t.childNodes),h=(f=o.props||l).dangerouslySetInnerHTML,u=p.dangerouslySetInnerHTML,!c){if(null!=a)for(f={},m=0;m<t.attributes.length;m++)f[t.attributes[m].name]=t.attributes[m].value;(u||h)&&(u&&(h&&u.__html==h.__html||u.__html===t.innerHTML)||(t.innerHTML=u&&u.__html||""))}if(function(t,e,n,o,i){var r;for(r in n)"children"===r||"key"===r||r in e||C(t,r,null,n[r],o);for(r in e)i&&"function"!=typeof e[r]||"children"===r||"key"===r||"value"===r||"checked"===r||n[r]===e[r]||C(t,r,e[r],n[r],o)}(t,p,f,r,c),u)e.__k=[];else if(m=e.props.children,x(t,Array.isArray(m)?m:[m],e,o,i,r&&"foreignObject"!==g,a,_,a?a[0]:o.__k&&v(o,0),c),null!=a)for(m=a.length;m--;)null!=a[m]&&d(a[m]);c||("value"in p&&void 0!==(m=p.value)&&(m!==t.value||"progress"===g&&!m||"option"===g&&m!==f.value)&&C(t,"value",m,f.value,!1),"checked"in p&&void 0!==(m=p.checked)&&m!==t.checked&&C(t,"checked",m,f.checked,!1))}return t}function H(t,e,n){try{"function"==typeof t?t(e):t.current=e}catch(t){o.__e(t,n)}}function P(t,e,n){var i,r;if(o.unmount&&o.unmount(t),(i=t.ref)&&(i.current&&i.current!==t.__e||H(i,null,e)),null!=(i=t.__c)){if(i.componentWillUnmount)try{i.componentWillUnmount()}catch(t){o.__e(t,e)}i.base=i.__P=null,t.__c=void 0}if(i=t.__k)for(r=0;r<i.length;r++)i[r]&&P(i[r],e,n||"function"!=typeof t.type);n||null==t.__e||d(t.__e),t.__=t.__e=t.__d=void 0}function E(t,e,n){return this.constructor(t,n)}function D(t,e,i){var r,a,_;o.__&&o.__(t,e),a=(r="function"==typeof i)?null:i&&i.__k||e.__k,_=[],R(e,t=(!r&&i||e).__k=h(f,null,[t]),a||l,l,void 0!==e.ownerSVGElement,!r&&i?[i]:a?null:e.firstChild?n.call(e.childNodes):null,_,!r&&i?i:a?a.__e:e.firstChild,r),W(_,t)}n=_.slice,o={__e:function(t,e,n,o){for(var i,r,a;e=e.__;)if((i=e.__c)&&!i.__)try{if((r=i.constructor)&&null!=r.getDerivedStateFromError&&(i.setState(r.getDerivedStateFromError(t)),a=i.__d),null!=i.componentDidCatch&&(i.componentDidCatch(t,o||{}),a=i.__d),a)return i.__E=i}catch(e){t=e}throw t}},i=0,p.prototype.setState=function(t,e){var n;n=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=s({},this.state),"function"==typeof t&&(t=t(s({},n),this.props)),t&&s(n,t),null!=t&&this.__v&&(e&&this._sb.push(e),m(this))},p.prototype.forceUpdate=function(t){this.__v&&(this.__e=!0,t&&this.__h.push(t),m(this))},p.prototype.render=f,r=[],y.__r=0;var A,T,N,U,V=0,I=[],L=[],z=o.__b,j=o.__r,M=o.diffed,B=o.__c,q=o.unmount;function G(t,e){o.__h&&o.__h(T,t,V||e),V=0;var n=T.__H||(T.__H={__:[],__h:[]});return t>=n.__.length&&n.__.push({__V:L}),n.__[t]}function X(t){return V=1,Y(it,t)}function Y(t,e,n){var o=G(A++,2);if(o.t=t,!o.__c&&(o.__=[n?n(e):it(void 0,e),function(t){var e=o.__N?o.__N[0]:o.__[0],n=o.t(e,t);e!==n&&(o.__N=[n,o.__[1]],o.__c.setState({}))}],o.__c=T,!T.u)){T.u=!0;var i=T.shouldComponentUpdate;T.shouldComponentUpdate=function(t,e,n){if(!o.__c.__H)return!0;var r=o.__c.__H.__.filter((function(t){return t.__c}));if(r.every((function(t){return!t.__N})))return!i||i.call(this,t,e,n);var a=!1;return r.forEach((function(t){if(t.__N){var e=t.__[0];t.__=t.__N,t.__N=void 0,e!==t.__[0]&&(a=!0)}})),!(!a&&o.__c.props===t)&&(!i||i.call(this,t,e,n))}}return o.__N||o.__}function J(t,e){var n=G(A++,3);!o.__s&&ot(n.__H,e)&&(n.__=t,n.i=e,T.__H.__h.push(n))}function K(t,e){var n=G(A++,7);return ot(n.__H,e)?(n.__V=t(),n.i=e,n.__h=t,n.__V):n.__}function $(t,e){return V=8,K((function(){return t}),e)}function Q(){for(var t;t=I.shift();)if(t.__P&&t.__H)try{t.__H.__h.forEach(et),t.__H.__h.forEach(nt),t.__H.__h=[]}catch(e){t.__H.__h=[],o.__e(e,t.__v)}}o.__b=function(t){"function"!=typeof t.type||t.__m||null===t.__?t.__m||(t.__m=t.__&&t.__.__m?t.__.__m:""):t.__m=(t.__&&t.__.__m?t.__.__m:"")+(t.__&&t.__.__k?t.__.__k.indexOf(t):0),T=null,z&&z(t)},o.__r=function(t){j&&j(t),A=0;var e=(T=t.__c).__H;e&&(N===T?(e.__h=[],T.__h=[],e.__.forEach((function(t){t.__N&&(t.__=t.__N),t.__V=L,t.__N=t.i=void 0}))):(e.__h.forEach(et),e.__h.forEach(nt),e.__h=[])),N=T},o.diffed=function(t){M&&M(t);var e=t.__c;e&&e.__H&&(e.__H.__h.length&&(1!==I.push(e)&&U===o.requestAnimationFrame||((U=o.requestAnimationFrame)||tt)(Q)),e.__H.__.forEach((function(t){t.i&&(t.__H=t.i),t.__V!==L&&(t.__=t.__V),t.i=void 0,t.__V=L}))),N=T=null},o.__c=function(t,e){e.some((function(t){try{t.__h.forEach(et),t.__h=t.__h.filter((function(t){return!t.__||nt(t)}))}catch(n){e.some((function(t){t.__h&&(t.__h=[])})),e=[],o.__e(n,t.__v)}})),B&&B(t,e)},o.unmount=function(t){q&&q(t);var e,n=t.__c;n&&n.__H&&(n.__H.__.forEach((function(t){try{et(t)}catch(t){e=t}})),n.__H=void 0,e&&o.__e(e,n.__v))};var Z="function"==typeof requestAnimationFrame;function tt(t){var e,n=function(){clearTimeout(o),Z&&cancelAnimationFrame(e),setTimeout(t)},o=setTimeout(n,100);Z&&(e=requestAnimationFrame(n))}function et(t){var e=T,n=t.__c;"function"==typeof n&&(t.__c=void 0,n()),T=e}function nt(t){var e=T;t.__c=t.__(),T=e}function ot(t,e){return!t||t.length!==e.length||e.some((function(e,n){return e!==t[n]}))}function it(t,e){return"function"==typeof e?e(t):e}var rt=Object.freeze({__proto__:null,BUILD_VERSION:"2.104.19",Component:p,Fragment:f,PKG_NAME:"@hpcc-js/preact-shim",PKG_VERSION:"2.16.3",createElement:h,h:h,render:D,useCallback:$,useEffect:J,useMemo:K,useReducer:Y,useState:X}),at=function(t,e){return at=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},at(t,e)};function lt(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}at(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}var _t=function(){return _t=Object.assign||function(t){for(var e,n=1,o=arguments.length;n<o;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},_t.apply(this,arguments)};function ct(t,e,n,o){var i,r=arguments.length,a=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,o);else for(var l=t.length-1;l>=0;l--)(i=t[l])&&(a=(r<3?i(a):r>3?i(e,n,a):i(e,n))||a);return r>3&&a&&Object.defineProperty(e,n,a),a}function st(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)}var dt=function(t){var e=t.href,n=t.x,o=t.y,i=void 0===o?0:o,r=t.height,a=void 0===r?12:r;return h("image",{href:e,x:n-a/2,y:i-a/2,width:a,height:a})},ht=function(t){var n=t.x,o=t.y,i=void 0===o?0:o,r=t.height,a=void 0===r?12:r,l=t.fill,_=t.stroke,c=t.fontFamily,s=void 0===c?"FontAwesome":c,d=t.char,u=void 0===d?"":d,f=K((function(){return"FontAwesome"===s?e.Utility.faChar(u):u}),[u,s]);return h("text",{x:n,y:i,fill:l,stroke:_,"font-family":s,"font-size":"".concat(a,"px"),"dominant-baseline":"middle",style:"text-anchor: middle;alignment-baseline:middle;"},f)},ut=function(t){var e=t.radius,n=void 0===e?32:e,o=t.fill,i=void 0===o?"navy":o,r=t.stroke,a=void 0===r?i:r,l=t.strokeWidth;return h("circle",{r:n,fill:i,stroke:a,"stroke-width":void 0===l?1:l,"shape-rendering":t.shapeRendering})},ft=function(t){var e=t.radius,n=void 0===e?30:e,o=t.cornerRadius,i=void 0===o?0:o,r=t.fill,a=void 0===r?"white":r,l=t.stroke,_=t.strokeWidth;return h("rect",{x:-n,y:-n,rx:i,ry:i,width:2*n,height:2*n,fill:a,stroke:l||a,"stroke-width":void 0===_?1:_,"shape-rendering":t.shapeRendering})},pt=function(t){var e=t.width,n=void 0===e?30:e,o=t.height,i=void 0===o?30:o,r=t.cornerRadius,a=void 0===r?0:r,l=t.fill,_=void 0===l?"white":l,c=t.stroke,s=void 0===c?"black":c,d=t.strokeWidth;return h("rect",{x:-n/2,y:-i/2,rx:a,ry:a,width:n,height:i,fill:_,stroke:s||_,"stroke-width":void 0===d?1:d,"shape-rendering":t.shapeRendering})},vt=function(t){var e=t.shape,n=void 0===e?"circle":e,o=t.height,i=void 0===o?128:o,r=t.width,a=t.fill,l=t.stroke,_=t.strokeWidth,c=void 0===_?1:_,s=t.shapeRendering,d=t.cornerRadius;switch(n){case"square":return h(ft,{radius:i/2,fill:a,stroke:l,strokeWidth:c,shapeRendering:s,cornerRadius:d});case"rectangle":return h(pt,{width:null!=r?r:i,height:i,fill:a,stroke:l,strokeWidth:c,shapeRendering:s,cornerRadius:d});default:return h(ut,{radius:i/2,fill:a,stroke:l,strokeWidth:c,shapeRendering:s})}},gt=function(t){var n=t.shape,o=void 0===n?"circle":n,i=t.width,r=t.height,a=void 0===r?32:r,l=t.fill,_=t.stroke,c=t.strokeWidth,s=void 0===c?0:c,d=t.imageUrl,u=void 0===d?"":d,p=t.imageFontFamily,v=void 0===p?"FontAwesome":p,g=t.imageChar,m=void 0===g?"":g,y=t.imageCharFill,x=void 0===y?e.Palette.textColor(l):y,k=t.padding,F=void 0===k?a/5:k,b=t.xOffset,C=void 0===b?0:b,w=t.yOffset,S=void 0===w?0:w,R=t.cornerRadius,W=t.shapeRendering;return h(f,null,h(vt,{shape:o,width:i,height:a,fill:l,stroke:_,strokeWidth:s,shapeRendering:W,cornerRadius:R}),u?h(dt,{href:u,x:C,y:S,height:a-F}):h(ht,{x:C,y:S,height:a-F,fontFamily:v,char:m,fill:x,"font-weight":400}))},mt=function(t){var e=t.text,n=t.height,o=void 0===n?12:n,i=t.anchor,r=void 0===i?"middle":i,a=t.baseline,l=void 0===a?"middle":a,_=t.fontFamily,c=void 0===_?"Verdana":_,s=t.fill,d=void 0===s?"black":s;return h("text",{"font-family":c,"font-size":"".concat(o,"px"),"text-anchor":r,"dominant-baseline":l,fill:d},e)},yt=function(t){var n=t.text,o=t.height,i=void 0===o?12:o,r=t.fontFamily,a=void 0===r?"Verdana":r,l=t.fill,_=void 0===l?"black":l,c=t.onSizeUpdate,s=X(0),d=s[0],u=s[1],p=X(0),v=p[0],g=p[1];J((function(){c&&c({width:d,height:v})}),[d,v,c]);var m=K((function(){return n.split("\n")}),[n]);u(K((function(){return e.Utility.textSize(m,a,i)}),[a,i,m]).width),g(m.length*(i+2)-2);var y=-v/2+i/2,x=K((function(){return m.map((function(t,e){return h("g",{key:e,transform:"translate(0 ".concat(y+e*(i+2),")")},h(mt,{text:t,height:i,fontFamily:a,fill:_}))}))}),[_,a,i,m,y]);return h(f,null,x)},xt=function(t){var e=t.text,n=t.height,o=void 0===n?12:n,i=t.fontFamily,r=void 0===i?"Verdana":i,a=t.padding,l=void 0===a?4:a,_=t.fill,c=void 0===_?"whitesmoke":_,s=t.stroke,d=void 0===s?"lightgray":s,u=t.textFill,p=void 0===u?"black":u,v=t.strokeWidth,g=void 0===v?1:v,m=t.cornerRadius,y=void 0===m?0:m,x=t.onSizeUpdate,k=X(0),F=k[0],b=k[1],C=X(0),w=C[0],S=C[1];J((function(){x&&x({width:F,height:w})}),[F,w,x]);var R=$((function(t){b(t.width),S(t.height)}),[]),W=F+2*l+g,O=w+2*l+g,H=Math.floor(o/10);return h(f,null,h(pt,{width:W,height:O,fill:c,stroke:d,strokeWidth:g,cornerRadius:y}),h("g",{transform:"translate(0 ".concat(H,")")},h(yt,{text:e,fontFamily:r,height:o,fill:p,onSizeUpdate:R})))};function kt(t,e,n,o){D(h(t,e),n,o)}var Ft=function(t){function n(e){var n=t.call(this)||this;return n._component=e,n._props={},n}return lt(n,t),n.prototype.props=function(t){return arguments.length?(this._props=_t(_t({},this._props),t),this):this._props},n.prototype.prop=function(t,e){return 1===arguments.length?this._props[t]:(this._props[t]=e,this)},n.prototype.update=function(e,n){t.prototype.update.call(this,e,n),kt(this._component,this._props,e)},ct([e.publish({},"object","Properties"),st("design:type",Object)],n.prototype,"_props",void 0),n}(e.HTMLWidget),bt=function(t){function n(e){var n=t.call(this)||this;return n._component=e,n._props={},n}return lt(n,t),n.prototype.props=function(t){return arguments.length?(this._props=_t(_t({},this._props),t),this):this._props},n.prototype.prop=function(t,e){return 1===arguments.length?this._props[t]:(this._props[t]=e,this)},n.prototype.update=function(e,n){t.prototype.update.call(this,e,n),kt(this._component,this._props,e)},ct([e.publish({},"object","Properties"),st("design:type",Object)],n.prototype,"_props",void 0),n}(e.SVGWidget),Ct=function(t){var e=t.x,n=t.y,o=t.annotationIDs,i=void 0===o?[]:o,r=t.stepSize,a=void 0===r?-16:r,l=i.map((function(t,o){return h("g",{key:t,transform:"translate(".concat(e+o*a," ").concat(n,")")},h("use",{href:"#"+t}))}));return h(f,null,l)},wt=function(t){var n=t.text,o=void 0===n?"":n,i=t.textHeight,r=void 0===i?10:i,a=t.textPadding,l=void 0===a?4:a,_=t.textFill,c=void 0===_?"#287EC4":_,s=t.textboxFill,d=void 0===s?"white":s,u=t.textboxStroke,f=void 0===u?"#CCCCCC":u,p=t.textboxStrokeWidth,v=void 0===p?1:p,g=t.textFontFamily,m=void 0===g?"Verdana":g,y=t.annotationGutter,x=void 0===y?2:y,k=t.annotations,F=void 0===k?[]:k,b=t.cornerRadius,C=void 0===b?3:b,w=t.icon,S=void 0===w?{}:w,R=t.subText,W=void 0===R?{text:""}:R,O=t.showLabel,H=void 0===O||O,P=t.noLabelRadius,E=void 0===P?5:P,D=t.expansionIcon,A=t.scale,T=void 0===A?1:A;S=_t({height:50,imageChar:"?",imageFontFamily:"FontAwesome",imageCharFill:"#555555",fill:"transparent",strokeWidth:0},S),W=_t({text:"",fill:"white",textFill:"#555555"},W),D=D?_t({height:16,shape:"circle",padding:6,imageChar:"?",imageFontFamily:"FontAwesome",imageCharFill:"black",fill:"whitesmoke",stroke:"whitesmoke",strokeWidth:0},D):void 0;var N=0,U=K((function(){return e.Utility.textSize(o,m,r,!1).width}),[o,m,r]),V=0;""!==o&&(V=U+2*l+2*v);var I=(N+=V+x)-V/2,L=r+2*l+2*v,z=[];F.forEach((function(t,e){var n=t.imageChar,o=(N+=L+x)-L/2;z.push(h("g",{key:e,class:"vertex3-anno","data-click":"annotation","data-click-data":JSON.stringify(t),transform:"translate(".concat(o," ").concat(0,")")},h(gt,_t({},t,{shape:"square",height:L,imageChar:n,imageFontFamily:t.imageFontFamily,cornerRadius:C,strokeWidth:0}))))})),F.length>0&&(N+=x*(F.length-1));var j=h("g",{"data-click":"text",transform:"translate(".concat(I," ").concat(0,")")},H&&""!==o?h(xt,{text:o,height:r,padding:l,strokeWidth:v,stroke:f,fill:d,textFill:c,fontFamily:m,cornerRadius:C}):h("circle",{r:E,stroke:f,fill:c})),M=S.height||20,B=S.strokeWidth||0,q=0,G=L+2*x;""!==o||z.length>0?q=-M/2-B-L/2-2*x:""!==W.text&&(G=M/2+B+2*x);var X=""===W.text?null:h("g",{"data-click":"subtext",transform:"translate(".concat(0," ").concat(G,")")},h(xt,_t({fill:W.fill||"#FFFFFF",textFill:W.textFill||c},W,{height:r,padding:l,strokeWidth:0,stroke:f,fontFamily:m,cornerRadius:C})));return h("g",{transform:"scale(".concat(T,")")},h("g",{"data-click":"icon",transform:"translate(".concat(0," ").concat(q,")")},h(gt,_t({},S)),D&&h("g",{"data-click":"expanded-icon","data-click-data":JSON.stringify(D),transform:"translate(".concat((S.height+B)/2-D.height/2," ").concat(-(S.height+B)/2+D.height/2,")")},h(gt,_t({},D)))),h("g",{transform:"translate(".concat(-N/2," ").concat(0,")")},j,z),X)},St=function(t){t.categoryID;var n=t.text,o=void 0===n?"":n,i=t.textHeight,r=void 0===i?10:i,a=t.textPadding,l=void 0===a?4:a,_=t.textFill,c=void 0===_?"#287EC4":_,s=t.textboxFill,d=void 0===s?"white":s,u=t.textboxStroke,f=void 0===u?"#CCCCCC":u,p=t.textboxStrokeWidth,v=void 0===p?1:p,g=t.textFontFamily,m=void 0===g?"Verdana":g,y=t.annotationGutter,x=void 0===y?2:y,k=t.annotations,F=void 0===k?[]:k,b=t.iconAnnotations,C=void 0===b?[]:b,w=t.cornerRadius,S=void 0===w?3:w,R=t.icon,W=void 0===R?{}:R,O=t.subText,H=void 0===O?{}:O,P=t.showLabel,E=void 0===P||P,D=t.noLabelRadius,A=void 0===D?5:D,T=t.iconBorderWidth,N=void 0===T?1:T,U=t.iconBorderColor,V=void 0===U?"#333":U,I=t.iconBackgroundColor,L=void 0===I?"#fff":I,z=t.iconFontColor,j=void 0===z?"#000":z,M=t.iconFontSize,B=void 0===M?20:M,q=t.iconFontFamily,G=void 0===q?"FontAwesome":q,X=t.shapeOffsetX,Y=void 0===X?0:X,J=t.shapeOffsetY,$=void 0===J?0:J,Q=t.iconOffsetX,Z=void 0===Q?0:Q,tt=t.iconOffsetY,et=void 0===tt?0:tt,nt=t.iconPadding,ot=void 0===nt?4:nt,it=t.iconText,rt=void 0===it?"?":it,at=t.shapeRendering,lt=void 0===at?"auto":at;W=_t({height:50,imageChar:"?",imageFontFamily:"FontAwesome",imageCharFill:"#555555",fill:"transparent",strokeWidth:0},W),H=_t({text:"",fill:"white",textFill:"#555555"},H);var ct=K((function(){return e.Utility.textSize(o,m,r,!1).width}),[o,m,r]),st=0;""!==o&&(st=ct+2*l+2*v);var dt=st+x,ht=dt-st/2,ut=r+2*x+2*v,ft=F.map((function(t,n){return e.Utility.textSize(t.imageChar,t.imageFontFamily,t.height,!1).width})),pt=[],vt=dt;F.forEach((function(t,e){var n,o=t.imageChar,i=null!==(n=t.height)&&void 0!==n?n:ut,r=(vt+=ft[e]+x)-ft[e]/2;pt.push(h("g",{key:e,class:"vertex3-anno","data-click":"annotation","data-click-data":JSON.stringify(t),transform:"translate(".concat(r," ").concat(0,")")},h(gt,_t({},t,{shape:"rectangle",width:ft[e],height:i,imageChar:o,imageFontFamily:t.imageFontFamily,cornerRadius:S,strokeWidth:0}))))})),F.length>0&&(dt+=x*(F.length-1));var mt=[];C.forEach((function(t,e){var n,o=t.shapeOffsetX,i=t.shapeOffsetY;mt.push(h("g",{key:e,class:"vertex3-iconAnno","data-click":"icon-annotation","data-click-data":JSON.stringify(t),transform:"translate(".concat(o," ").concat(i,")")},h(gt,_t({},t,{shape:null!==(n=t.shape)&&void 0!==n?n:"square",imageChar:t.imageChar,imageFontFamily:t.imageFontFamily,cornerRadius:S,stroke:t.stroke,strokeWidth:t.strokeWidth}))))}));var yt=h("g",{"data-click":"text",transform:"translate(".concat(ht," ").concat(0,")")},E&&""!==o?h(xt,{text:o,height:r,padding:l,strokeWidth:v,stroke:f,fill:d,textFill:c,fontFamily:m,cornerRadius:S}):h("circle",{r:A,stroke:f,fill:c})),kt=ut+2*x,Ft=""===H.text?null:h("g",{"data-click":"subtext",transform:"translate(".concat(0," ").concat(kt,")")},h(xt,_t({fill:H.fill||"#FFFFFF",textFill:H.textFill||c},H,{height:r,padding:l,strokeWidth:0,stroke:f,fontFamily:m,cornerRadius:S})));return h("g",null,h("g",{"data-click":"icon",transform:"translate(".concat(Y," ").concat($,")")},h(gt,_t({},W,{strokeWidth:N,shape:"circle",height:B,fill:L,stroke:V,imageFontFamily:G,imageChar:rt,imageCharFill:j,padding:ot,xOffset:Z,yOffset:et,cornerRadius:S,shapeRendering:lt})),mt),h("g",{transform:"translate(".concat(-dt/2," ").concat(0,")")},yt,pt),Ft)};t.Annotations=Ct,t.BUILD_VERSION="2.104.19",t.CentroidVertex3=function(t){var e=t.id,n=t.categoryID,o=void 0===n?"":n,i=t.text,r=void 0===i?"":i,a=t.textHeight,l=void 0===a?12:a,_=t.textPadding,c=void 0===_?10:_,s=t.textFill,d=void 0===s?"#287EC4":s,u=t.textboxFill,f=void 0===u?"white":u,p=t.textboxStroke,v=void 0===p?"#CCCCCC":p,g=t.textboxStrokeWidth,m=void 0===g?1:g,y=t.textFontFamily,x=void 0===y?"Verdana":y,k=t.annotationGutter,F=void 0===k?2:k,b=t.annotations,C=void 0===b?[]:b,w=t.cornerRadius,S=t.icon,R=void 0===S?{}:S,W=t.subText,O=void 0===W?{}:W,H=t.expansionIcon,P=t.scale,E=void 0===P?1:P;return R=_t({height:91,padding:40,imageCharFill:"#555555",imageFontFamily:"FontAwesome",fill:"#FFCC33",stroke:"#DFDFDF",imageChar:"?",strokeWidth:4,yOffset:-15},R),O=_t({text:"",fill:"transparent",textFill:"#555555"},O),h(wt,_t({},{id:e,categoryID:o,text:r,textHeight:l,textPadding:c,textFill:d,textboxFill:f,textboxStroke:v,textboxStrokeWidth:m,textFontFamily:x,annotationGutter:F,annotations:C,cornerRadius:w,icon:R,subText:O,expansionIcon:H,scale:E},{icon:R,subText:O}))},t.CentroidVertex4=function(t){var e=t.id,n=t.categoryID,o=void 0===n?"":n,i=t.text,r=void 0===i?"":i,a=t.textHeight,l=void 0===a?12:a,_=t.textPadding,c=void 0===_?10:_,s=t.textFill,d=void 0===s?"#287EC4":s,u=t.textboxFill,f=void 0===u?"white":u,p=t.textboxStroke,v=void 0===p?"#CCCCCC":p,g=t.textboxStrokeWidth,m=void 0===g?1:g,y=t.textFontFamily,x=void 0===y?"Verdana":y,k=t.annotationGutter,F=void 0===k?2:k,b=t.annotations,C=void 0===b?[]:b,w=t.iconAnnotations,S=void 0===w?[]:w,R=t.cornerRadius,W=t.icon,O=void 0===W?{}:W,H=t.subText,P=void 0===H?{}:H,E=t.showLabel,D=void 0===E||E,A=t.noLabelRadius,T=void 0===A?5:A,N=t.iconBorderWidth,U=void 0===N?1:N,V=t.iconBorderColor,I=void 0===V?"#333":V,L=t.iconBackgroundColor,z=void 0===L?"#fff":L,j=t.iconFontColor,M=void 0===j?"#000":j,B=t.iconFontSize,q=void 0===B?20:B,G=t.iconFontFamily,X=void 0===G?"FontAwesome":G,Y=t.shapeOffsetX,J=void 0===Y?0:Y,K=t.shapeOffsetY,$=void 0===K?0:K,Q=t.iconOffsetX,Z=void 0===Q?0:Q,tt=t.iconOffsetY,et=void 0===tt?0:tt,nt=t.iconPadding,ot=void 0===nt?4:nt,it=t.iconText,rt=void 0===it?"?":it,at=t.shapeRendering,lt=void 0===at?"auto":at;return O=_t({height:91,padding:40,imageCharFill:"#555555",imageFontFamily:"FontAwesome",fill:"#FFCC33",stroke:"#DFDFDF",imageChar:"?",strokeWidth:4,yOffset:-15},O),P=_t({text:"",fill:"transparent",textFill:"#555555"},P),h(St,_t({},{id:e,categoryID:o,text:r,textHeight:l,textPadding:c,textFill:d,textboxFill:f,textboxStroke:v,textboxStrokeWidth:m,textFontFamily:x,annotationGutter:F,annotations:C,iconAnnotations:S,cornerRadius:R,icon:O,subText:P,showLabel:D,noLabelRadius:T,iconBorderWidth:U,iconBorderColor:I,iconBackgroundColor:z,iconFontColor:M,iconFontSize:q,iconFontFamily:X,shapeOffsetX:J,shapeOffsetY:$,iconOffsetX:Z,iconOffsetY:et,iconPadding:ot,iconText:rt,shapeRendering:lt},{icon:O,subText:P}))},t.Circle=ut,t.Edge=function(t){var e=t.label,n=t.labelPos,o=t.labelFill,i=void 0===o?"black":o,r=t.labelHeight,a=void 0===r?12:r;return h(f,null,h("path",{d:t.path,stroke:t.stroke,style:{strokeWidth:t.strokeWidth,strokeDasharray:t.strokeDasharray}}),e&&n&&2===n.length?h("g",{transform:"translate(".concat(n[0]," ").concat(n[1],")")},h(yt,{text:e,fill:i,height:a})):void 0)},t.HTMLAdapter=Ft,t.Icon=gt,t.IconLabelledRect=function(t){var e=t.icon,n=t.iconFontFamily,o=t.text,i=t.height,r=void 0===i?12:i,a=t.width,l=void 0===a?12:a,_=t.fontFamily,c=void 0===_?"Verdana":_,s=t.fontSize,d=void 0===s?10:s,u=t.padding,p=void 0===u?3:u,v=t.fill,g=void 0===v?"whitesmoke":v,m=t.stroke,y=void 0===m?"lightgray":m,x=t.textFill,k=void 0===x?"black":x,F=t.strokeWidth,b=void 0===F?1:F,C=t.cornerRadius,w=void 0===C?0:C;return t.onSizeUpdate,h(f,null,h(pt,{width:l,height:r,fill:g,stroke:y,strokeWidth:b,cornerRadius:w}),h("g",{transform:"translate(".concat(-l/2+p," ").concat(-r/2+p,")")},h(gt,{shape:"square",imageFontFamily:n,imageChar:e,height:r,fill:g,imageCharFill:k})),h("g",{transform:"translate(".concat(-l/2+2*p+r," ").concat(-r/2+p,")")},h(mt,{text:o,fontFamily:c,height:d,fill:k,anchor:"start",baseline:"hanging"})))},t.Icons=function(t){var e=t.icons,n=(void 0===e?[]:e).map((function(t){return h("g",{key:t.id,id:t.id},h(gt,_t({},t)))}));return h(f,null,n)},t.ImageChar=ht,t.LabelledRect=function(t){var e=t.text,n=t.height,o=void 0===n?12:n,i=t.width,r=void 0===i?12:i,a=t.fontFamily,l=void 0===a?"Verdana":a,_=t.fontSize,c=void 0===_?10:_,s=t.padding,d=void 0===s?3:s,u=t.fill,p=void 0===u?"whitesmoke":u,v=t.stroke,g=void 0===v?"lightgray":v,m=t.textFill,y=void 0===m?"black":m,x=t.strokeWidth,k=void 0===x?1:x,F=t.cornerRadius,b=void 0===F?0:F;return t.onSizeUpdate,h(f,null,h(pt,{width:r,height:o,fill:p,stroke:g,strokeWidth:k,cornerRadius:b}),h("g",{transform:"translate(".concat(-r/2+d," ").concat(-o/2+d,")")},h(mt,{text:e,fontFamily:l,height:c,fill:y,anchor:"start",baseline:"hanging"})))},t.PKG_NAME="@hpcc-js/react",t.PKG_VERSION="2.53.5",t.React=rt,t.Rectangle=pt,t.SVGAdapter=bt,t.Shape=vt,t.Square=ft,t.Subgraph=function(t){var n=t.text,o=t.width,i=void 0===o?100:o,r=t.height,a=void 0===r?100:r,l=t.fill,_=void 0===l?"transparent":l,c=t.stroke,s=void 0===c?"black":c,d=t.fontHeight,u=void 0===d?12:d,p=t.fontFamily,v=e.Utility.textSize(n,p,u,!1);return h(f,null,h(pt,{width:i,height:a,fill:_,stroke:s}),h("g",{transform:"translate(".concat((-i+v.width)/2+4," ").concat((-a+v.height)/2+4,")")},h(yt,{height:u,text:n,fontFamily:p})))},t.Text=yt,t.TextBox=xt,t.TextLine=mt,t.Vertex=function(t){var e=t.categoryID,n=void 0===e?"":e,o=t.text,i=void 0===o?"":o,r=t.textHeight,a=void 0===r?12:r,l=t.textPadding,_=void 0===l?4:l,c=t.icon,s=void 0===c?{}:c,d=t.annotationsHeight,u=void 0===d?12:d,f=t.annotationIDs,p=void 0===f?[]:f,v=t.textFill,g=t.textboxFill,m=t.textboxStroke,y=t.textFontFamily,x=t.onSizeUpdate,k=t.showLabel,F=void 0===k||k,b=t.scale,C=void 0===b?1:b,w=X(0),S=w[0],R=w[1],W=X(0),O=W[0],H=W[1];J((function(){x&&x({width:0,height:0})}),[S,O,x]);var P=S;P+=4;var E=-(2*(s=_t({imageChar:"fa-question",height:32,fill:"transparent"},s)).height/6+a+8)/2,D=s.height/3+O/2+_,A=s.height/3+O+_+u/3;F||(E+=(a+8)/2,A-=O+_);var T=$((function(t){R(t.width),H(t.height)}),[]),N=F?h("g",{transform:"translate(0 ".concat(D,")")},h(xt,{text:i,height:a,padding:_,onSizeUpdate:T,textFill:v,fill:g,stroke:m,fontFamily:y})):void 0;return n?h("g",{transform:"translate(0 ".concat(E,") scale(").concat(C,")")},h("use",{href:"#"+n}),N,h(Ct,{x:P/2,y:A,annotationIDs:p})):h("g",{transform:"translate(0 ".concat(E,") scale(").concat(C,")")},h(gt,_t({},s)),N)},t.Vertex2=function(t){var n=t.categoryID,o=void 0===n?"":n,i=t.text,r=void 0===i?"":i,a=t.textHeight,l=void 0===a?12:a,_=t.textPadding,c=void 0===_?4:_,s=t.icon,d=void 0===s?{}:s,u=t.textFill,p=void 0===u?"black":u,v=t.textboxFill,g=void 0===v?"white":v,m=t.textboxStroke,y=void 0===m?"black":m,x=t.textFontFamily,k=t.annotationsHeight,F=void 0===k?12:k,b=t.annotationIDs,C=void 0===b?[]:b;d=_t({imageChar:"fa-question",imageCharFill:"white",height:32,fill:"black",shape:"square"},d);var w=l+2*c,S=K((function(){return e.Utility.textSize(r,x,l,!1)}),[r,x,l]).width,R=F,W=w/2,O=-(2*d.height/6+l+8)/2,H=-d.height/2,P=Math.ceil(S/2+c),E=W-d.height/2,D=R/2,A=W;return o?h("g",{transform:"translate(".concat(0," ").concat(O,")")},h("g",{transform:"translate(".concat(H," ").concat(0,")")},h("use",{href:"#"+o})),h("g",{transform:"translate(".concat(P," ").concat(E,")")},h(xt,{text:r,height:l,padding:c,strokeWidth:1,stroke:y,fill:g,textFill:p,fontFamily:x})),h(Ct,{x:D,y:A,annotationIDs:C,stepSize:R})):h(f,null,h("g",{transform:"translate(".concat(H," ").concat(0,")scale(1.0002)")},h(gt,_t({},d,{shape:"square"}))),h("g",{transform:"translate(".concat(P," ").concat(E,")scale(1.0002)")},h(xt,{text:r,height:l,padding:c,stroke:y,fill:g})))},t.Vertex3=wt,t.Vertex4=St,t.render=kt,t.svgRender=function(t,e,n,o){D(h("svg",null,h(t,e)),n,o)},Object.defineProperty(t,"__esModule",{value:!0})}));
|
|
2
2
|
//# sourceMappingURL=index.min.js.map
|