@hpcc-js/composite 2.9.0 → 3.1.1
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.js +1082 -1035
- package/dist/index.js.map +7 -1
- package/package.json +38 -41
- package/src/ChartPanel.ts +2 -4
- package/src/MegaChart.ts +1 -1
- package/src/MultiChart.ts +3 -3
- package/src/MultiChartSurface.ts +1 -1
- package/src/Persist.ts +1 -1
- package/src/__package__.ts +2 -2
- package/src/index.ts +7 -7
- package/types/ChartPanel.d.ts +2 -4
- package/types/Dermatology.d.ts +0 -1
- package/types/MegaChart.d.ts +4 -5
- package/types/MultiChart.d.ts +0 -1
- package/types/Persist.d.ts +0 -1
- package/types/Utility.d.ts +0 -1
- package/types/__package__.d.ts +2 -3
- package/types/index.d.ts +7 -8
- package/dist/index.es6.js +0 -1051
- package/dist/index.es6.js.map +0 -1
- package/dist/index.min.js +0 -2
- package/dist/index.min.js.map +0 -1
- package/types/ChartPanel.d.ts.map +0 -1
- package/types/Dermatology.d.ts.map +0 -1
- package/types/MegaChart.d.ts.map +0 -1
- package/types/MultiChart.d.ts.map +0 -1
- package/types/MultiChartSurface.d.ts +0 -5
- package/types/MultiChartSurface.d.ts.map +0 -1
- package/types/Persist.d.ts.map +0 -1
- package/types/Utility.d.ts.map +0 -1
- package/types/__package__.d.ts.map +0 -1
- package/types/index.d.ts.map +0 -1
- package/types-3.4/ChartPanel.d.ts +0 -19
- package/types-3.4/Dermatology.d.ts +0 -26
- package/types-3.4/MegaChart.d.ts +0 -155
- package/types-3.4/MultiChart.d.ts +0 -62
- package/types-3.4/MultiChartSurface.d.ts +0 -5
- package/types-3.4/Persist.d.ts +0 -7
- package/types-3.4/Utility.d.ts +0 -3
- package/types-3.4/__package__.d.ts +0 -4
- package/types-3.4/index.d.ts +0 -10
package/dist/index.js
CHANGED
|
@@ -1,1061 +1,1108 @@
|
|
|
1
|
-
(function (global, factory) {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
PERFORMANCE OF THIS SOFTWARE.
|
|
24
|
-
***************************************************************************** */
|
|
25
|
-
/* global Reflect, Promise, SuppressedError, Symbol, Iterator */
|
|
26
|
-
|
|
27
|
-
var extendStatics = function(d, b) {
|
|
28
|
-
extendStatics = Object.setPrototypeOf ||
|
|
29
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
30
|
-
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
31
|
-
return extendStatics(d, b);
|
|
32
|
-
};
|
|
33
|
-
|
|
34
|
-
function __extends(d, b) {
|
|
35
|
-
if (typeof b !== "function" && b !== null)
|
|
36
|
-
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
37
|
-
extendStatics(d, b);
|
|
38
|
-
function __() { this.constructor = d; }
|
|
39
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
1
|
+
var Sr=Object.defineProperty;var d=(t,e)=>Sr(t,"name",{value:e,configurable:!0}),Xi=(t=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(t,{get:(e,i)=>(typeof require<"u"?require:e)[i]}):t)(function(t){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+t+'" is not supported')});var Tr=(t,e)=>{for(var i in e)Sr(t,i,{get:e[i],enumerable:!0})};var fh="@hpcc-js/composite",yh="3.1.1",mh="3.2.1";import{HTMLWidget as lh}from"@hpcc-js/common";import{HTMLWidget as Ga}from"@hpcc-js/common";import{FAChar as Na,HTMLWidget as Ua}from"@hpcc-js/common";import{d3Event as Ao,HTMLWidget as rn,Platform as Va,select as Bt,selectAll as $a,Utility as ja}from"@hpcc-js/common";import{drag as Ya}from"@hpcc-js/common";import{select as Xa,selectAll as Ka}from"@hpcc-js/common";import{HTMLWidget as qa}from"@hpcc-js/common";import{select as Si}from"@hpcc-js/common";import{HTMLWidget as Ja,Platform as ln}from"@hpcc-js/common";import{HTMLWidget as Za}from"@hpcc-js/common";import{select as Qa}from"@hpcc-js/common";import"@hpcc-js/common";import{Button as nn,IconBar as td,ProgressBar as ed,Spacer as sn,SVGWidget as an,Text as id,TitleBar as od,ToggleButton as Ro,Utility as dn}from"@hpcc-js/common";import{HTMLWidget as gs}from"@hpcc-js/common";import{format as Ia,timeFormat as Pa,timeParse as za}from"@hpcc-js/common";var is=Object.defineProperty,h=d((t,e)=>is(t,"name",{value:e,configurable:!0}),"l");var yi,G,Vr,os,Xt,kr,$r,qi,so,Ji,Zi,jr,Le={},Yr=[],rs=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,mi=Array.isArray;function Mt(t,e){for(var i in e)t[i]=e[i];return t}d(Mt,"ge");h(Mt,"d");function ao(t){t&&t.parentNode&&t.parentNode.removeChild(t)}d(ao,"Zn");h(ao,"w");function It(t,e,i){var o,r,l,n={};for(l in e)l=="key"?o=e[l]:l=="ref"?r=e[l]:n[l]=e[l];if(arguments.length>2&&(n.children=arguments.length>3?yi.call(arguments,2):i),typeof t=="function"&&t.defaultProps!=null)for(l in t.defaultProps)n[l]===void 0&&(n[l]=t.defaultProps[l]);return He(t,n,o,r,null)}d(It,"ee");h(It,"_");function He(t,e,i,o,r){var l={type:t,props:e,key:i,ref:o,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:r??++Vr,__i:-1,__u:0};return r==null&&G.vnode!=null&&G.vnode(l),l}d(He,"bt");h(He,"g");function zt(t){return t.children}d(zt,"Z");h(zt,"b");function Pt(t,e){this.props=t,this.context=e}d(Pt,"se");h(Pt,"k");function Kt(t,e){if(e==null)return t.__?Kt(t.__,t.__i+1):null;for(var i;e<t.__k.length;e++)if((i=t.__k[e])!=null&&i.__e!=null)return i.__e;return typeof t.type=="function"?Kt(t):null}d(Kt,"Me");h(Kt,"x");function ho(t){var e,i;if((t=t.__)!=null&&t.__c!=null){for(t.__e=t.__c.base=null,e=0;e<t.__k.length;e++)if((i=t.__k[e])!=null&&i.__e!=null){t.__e=t.__c.base=i.__e;break}return ho(t)}}d(ho,"Jn");h(ho,"C");function ci(t){(!t.__d&&(t.__d=!0)&&Xt.push(t)&&!Ge.__r++||kr!==G.debounceRendering)&&((kr=G.debounceRendering)||$r)(Ge)}d(ci,"Zt");h(ci,"S");function Ge(){var t,e,i,o,r,l,n,s;for(Xt.sort(qi);t=Xt.shift();)t.__d&&(e=Xt.length,o=void 0,l=(r=(i=t).__v).__e,n=[],s=[],i.__P&&((o=Mt({},r)).__v=r.__v+1,G.vnode&&G.vnode(o),bi(i.__P,o,r,i.__n,i.__P.namespaceURI,32&r.__u?[l]:null,n,l??Kt(r),!!(32&r.__u),s),o.__v=r.__v,o.__.__k[o.__i]=o,po(n,o,s),o.__e!=l&&ho(o)),Xt.length>e&&Xt.sort(qi));Ge.__r=0}d(Ge,"Ct");h(Ge,"M");function co(t,e,i,o,r,l,n,s,a,c,g){var u,f,p,y,C,x=o&&o.__k||Yr,b=e.length;for(i.__d=a,Xr(i,e,x),a=i.__d,u=0;u<b;u++)(p=i.__k[u])!=null&&(f=p.__i===-1?Le:x[p.__i]||Le,p.__i=u,bi(t,p,f,r,l,n,s,a,c,g),y=p.__e,p.ref&&f.ref!=p.ref&&(f.ref&&wi(f.ref,null,p),g.push(p.ref,p.__c||y,p)),C==null&&y!=null&&(C=y),65536&p.__u||f.__k===p.__k?a=uo(p,a,t):typeof p.type=="function"&&p.__d!==void 0?a=p.__d:y&&(a=y.nextSibling),p.__d=void 0,p.__u&=-196609);i.__d=a,i.__e=C}d(co,"Qn");h(co,"P");function Xr(t,e,i){var o,r,l,n,s,a=e.length,c=i.length,g=c,u=0;for(t.__k=[],o=0;o<a;o++)(r=e[o])!=null&&typeof r!="boolean"&&typeof r!="function"?(n=o+u,(r=t.__k[o]=typeof r=="string"||typeof r=="number"||typeof r=="bigint"||r.constructor==String?He(null,r,null,null,null):mi(r)?He(zt,{children:r},null,null,null):r.constructor===void 0&&r.__b>0?He(r.type,r.props,r.key,r.ref?r.ref:null,r.__v):r).__=t,r.__b=t.__b+1,l=null,(s=r.__i=Kr(r,i,n,g))!==-1&&(g--,(l=i[s])&&(l.__u|=131072)),l==null||l.__v===null?(s==-1&&u--,typeof r.type!="function"&&(r.__u|=65536)):s!==n&&(s==n-1?u--:s==n+1?u++:(s>n?u--:u++,r.__u|=65536))):r=t.__k[o]=null;if(g)for(o=0;o<c;o++)(l=i[o])!=null&&!(131072&l.__u)&&(l.__e==t.__d&&(t.__d=Kt(l)),go(l,l))}d(Xr,"Gr");h(Xr,"$");function uo(t,e,i){var o,r;if(typeof t.type=="function"){for(o=t.__k,r=0;o&&r<o.length;r++)o[r]&&(o[r].__=t,e=uo(o[r],e,i));return e}t.__e!=e&&(e&&t.type&&!i.contains(e)&&(e=Kt(t)),i.insertBefore(t.__e,e||null),e=t.__e);do e=e&&e.nextSibling;while(e!=null&&e.nodeType===8);return e}d(uo,"eo");h(uo,"I");function Ne(t,e){return e=e||[],t==null||typeof t=="boolean"||(mi(t)?t.some(function(i){Ne(i,e)}):e.push(t)),e}d(Ne,"Qe");h(Ne,"H");function Kr(t,e,i,o){var r=t.key,l=t.type,n=i-1,s=i+1,a=e[i];if(a===null||a&&r==a.key&&l===a.type&&!(131072&a.__u))return i;if(o>(a!=null&&!(131072&a.__u)?1:0))for(;n>=0||s<e.length;){if(n>=0){if((a=e[n])&&!(131072&a.__u)&&r==a.key&&l===a.type)return n;n--}if(s<e.length){if((a=e[s])&&!(131072&a.__u)&&r==a.key&&l===a.type)return s;s++}}return-1}d(Kr,"Vr");h(Kr,"L");function Qi(t,e,i){e[0]==="-"?t.setProperty(e,i??""):t[e]=i==null?"":typeof i!="number"||rs.test(e)?i:i+"px"}d(Qi,"jn");h(Qi,"T");function Me(t,e,i,o,r){var l;t:if(e==="style")if(typeof i=="string")t.style.cssText=i;else{if(typeof o=="string"&&(t.style.cssText=o=""),o)for(e in o)i&&e in i||Qi(t.style,e,"");if(i)for(e in i)o&&i[e]===o[e]||Qi(t.style,e,i[e])}else if(e[0]==="o"&&e[1]==="n")l=e!==(e=e.replace(/(PointerCapture)$|Capture$/i,"$1")),e=e.toLowerCase()in t||e==="onFocusOut"||e==="onFocusIn"?e.toLowerCase().slice(2):e.slice(2),t.l||(t.l={}),t.l[e+l]=i,i?o?i.u=o.u:(i.u=so,t.addEventListener(e,l?Zi:Ji,l)):t.removeEventListener(e,l?Zi:Ji,l);else{if(r=="http://www.w3.org/2000/svg")e=e.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if(e!="width"&&e!="height"&&e!="href"&&e!="list"&&e!="form"&&e!="tabIndex"&&e!="download"&&e!="rowSpan"&&e!="colSpan"&&e!="role"&&e!="popover"&&e in t)try{t[e]=i??"";break t}catch{}typeof i=="function"||(i==null||i===!1&&e[4]!=="-"?t.removeAttribute(e):t.setAttribute(e,e=="popover"&&i==1?"":i))}}d(Me,"yt");h(Me,"A");function to(t){return function(e){if(this.l){var i=this.l[e.type+t];if(e.t==null)e.t=so++;else if(e.t<i.u)return;return i(G.event?G.event(e):e)}}}d(to,"Kn");h(to,"F");function bi(t,e,i,o,r,l,n,s,a,c){var g,u,f,p,y,C,x,b,S,k,I,z,P,m,_,B,R=e.type;if(e.constructor!==void 0)return null;128&i.__u&&(a=!!(32&i.__u),l=[s=e.__e=i.__e]),(g=G.__b)&&g(e);t:if(typeof R=="function")try{if(b=e.props,S="prototype"in R&&R.prototype.render,k=(g=R.contextType)&&o[g.__c],I=g?k?k.props.value:g.__:o,i.__c?x=(u=e.__c=i.__c).__=u.__E:(S?e.__c=u=new R(b,I):(e.__c=u=new Pt(b,I),u.constructor=R,u.render=Jr),k&&k.sub(u),u.props=b,u.state||(u.state={}),u.context=I,u.__n=o,f=u.__d=!0,u.__h=[],u._sb=[]),S&&u.__s==null&&(u.__s=u.state),S&&R.getDerivedStateFromProps!=null&&(u.__s==u.state&&(u.__s=Mt({},u.__s)),Mt(u.__s,R.getDerivedStateFromProps(b,u.__s))),p=u.props,y=u.state,u.__v=e,f)S&&R.getDerivedStateFromProps==null&&u.componentWillMount!=null&&u.componentWillMount(),S&&u.componentDidMount!=null&&u.__h.push(u.componentDidMount);else{if(S&&R.getDerivedStateFromProps==null&&b!==p&&u.componentWillReceiveProps!=null&&u.componentWillReceiveProps(b,I),!u.__e&&(u.shouldComponentUpdate!=null&&u.shouldComponentUpdate(b,u.__s,I)===!1||e.__v===i.__v)){for(e.__v!==i.__v&&(u.props=b,u.state=u.__s,u.__d=!1),e.__e=i.__e,e.__k=i.__k,e.__k.some(function(F){F&&(F.__=e)}),z=0;z<u._sb.length;z++)u.__h.push(u._sb[z]);u._sb=[],u.__h.length&&n.push(u);break t}u.componentWillUpdate!=null&&u.componentWillUpdate(b,u.__s,I),S&&u.componentDidUpdate!=null&&u.__h.push(function(){u.componentDidUpdate(p,y,C)})}if(u.context=I,u.props=b,u.__P=t,u.__e=!1,P=G.__r,m=0,S){for(u.state=u.__s,u.__d=!1,P&&P(e),g=u.render(u.props,u.state,u.context),_=0;_<u._sb.length;_++)u.__h.push(u._sb[_]);u._sb=[]}else do u.__d=!1,P&&P(e),g=u.render(u.props,u.state,u.context),u.state=u.__s;while(u.__d&&++m<25);u.state=u.__s,u.getChildContext!=null&&(o=Mt(Mt({},o),u.getChildContext())),S&&!f&&u.getSnapshotBeforeUpdate!=null&&(C=u.getSnapshotBeforeUpdate(p,y)),co(t,mi(B=g!=null&&g.type===zt&&g.key==null?g.props.children:g)?B:[B],e,i,o,r,l,n,s,a,c),u.base=e.__e,e.__u&=-161,u.__h.length&&n.push(u),x&&(u.__E=u.__=null)}catch(F){if(e.__v=null,a||l!=null){for(e.__u|=a?160:128;s&&s.nodeType===8&&s.nextSibling;)s=s.nextSibling;l[l.indexOf(s)]=null,e.__e=s}else e.__e=i.__e,e.__k=i.__k;G.__e(F,e,i)}else l==null&&e.__v===i.__v?(e.__k=i.__k,e.__e=i.__e):e.__e=qr(i.__e,e,i,o,r,l,n,a,c);(g=G.diffed)&&g(e)}d(bi,"Qt");h(bi,"O");function po(t,e,i){e.__d=void 0;for(var o=0;o<i.length;o++)wi(i[o],i[++o],i[++o]);G.__c&&G.__c(e,t),t.some(function(r){try{t=r.__h,r.__h=[],t.some(function(l){l.call(r)})}catch(l){G.__e(l,r.__v)}})}d(po,"to");h(po,"j");function qr(t,e,i,o,r,l,n,s,a){var c,g,u,f,p,y,C,x=i.props,b=e.props,S=e.type;if(S==="svg"?r="http://www.w3.org/2000/svg":S==="math"?r="http://www.w3.org/1998/Math/MathML":r||(r="http://www.w3.org/1999/xhtml"),l!=null){for(c=0;c<l.length;c++)if((p=l[c])&&"setAttribute"in p==!!S&&(S?p.localName===S:p.nodeType===3)){t=p,l[c]=null;break}}if(t==null){if(S===null)return document.createTextNode(b);t=document.createElementNS(r,S,b.is&&b),s&&(G.__m&&G.__m(e,l),s=!1),l=null}if(S===null)x===b||s&&t.data===b||(t.data=b);else{if(l=l&&yi.call(t.childNodes),x=i.props||Le,!s&&l!=null)for(x={},c=0;c<t.attributes.length;c++)x[(p=t.attributes[c]).name]=p.value;for(c in x)if(p=x[c],c!="children"){if(c=="dangerouslySetInnerHTML")u=p;else if(!(c in b)){if(c=="value"&&"defaultValue"in b||c=="checked"&&"defaultChecked"in b)continue;Me(t,c,null,p,r)}}for(c in b)p=b[c],c=="children"?f=p:c=="dangerouslySetInnerHTML"?g=p:c=="value"?y=p:c=="checked"?C=p:s&&typeof p!="function"||x[c]===p||Me(t,c,p,x[c],r);if(g)s||u&&(g.__html===u.__html||g.__html===t.innerHTML)||(t.innerHTML=g.__html),e.__k=[];else if(u&&(t.innerHTML=""),co(t,mi(f)?f:[f],e,i,o,S==="foreignObject"?"http://www.w3.org/1999/xhtml":r,l,n,l?l[0]:i.__k&&Kt(i,0),s,a),l!=null)for(c=l.length;c--;)ao(l[c]);s||(c="value",S==="progress"&&y==null?t.removeAttribute("value"):y!==void 0&&(y!==t[c]||S==="progress"&&!y||S==="option"&&y!==x[c])&&Me(t,c,y,x[c],r),c="checked",C!==void 0&&C!==t[c]&&Me(t,c,C,x[c],r))}return t}d(qr,"jr");h(qr,"z");function wi(t,e,i){try{if(typeof t=="function"){var o=typeof t.__u=="function";o&&t.__u(),o&&e==null||(t.__u=t(e))}else t.current=e}catch(r){G.__e(r,i)}}d(wi,"en");h(wi,"N");function go(t,e,i){var o,r;if(G.unmount&&G.unmount(t),(o=t.ref)&&(o.current&&o.current!==t.__e||wi(o,null,e)),(o=t.__c)!=null){if(o.componentWillUnmount)try{o.componentWillUnmount()}catch(l){G.__e(l,e)}o.base=o.__P=null}if(o=t.__k)for(r=0;r<o.length;r++)o[r]&&go(o[r],e,i||typeof t.type!="function");i||ao(t.__e),t.__c=t.__=t.__e=t.__d=void 0}d(go,"no");h(go,"V");function Jr(t,e,i){return this.constructor(t,i)}d(Jr,"Kr");h(Jr,"q");function _o(t,e,i){var o,r,l,n;G.__&&G.__(t,e),r=(o=typeof i=="function")?null:i&&i.__k||e.__k,l=[],n=[],bi(e,t=(!o&&i||e).__k=It(zt,null,[t]),r||Le,Le,e.namespaceURI,!o&&i?[i]:r?null:e.firstChild?yi.call(e.childNodes):null,l,!o&&i?i:r?r.__e:e.firstChild,o,n),po(l,t,n)}d(_o,"tn");h(_o,"B");function xe(t,e){var i={__c:e="__cC"+jr++,__:t,Consumer:h(function(o,r){return o.children(r)},"Consumer"),Provider:h(function(o){var r,l;return this.getChildContext||(r=new Set,(l={})[e]=this,this.getChildContext=function(){return l},this.componentWillUnmount=function(){r=null},this.shouldComponentUpdate=function(n){this.props.value!==n.value&&r.forEach(function(s){s.__e=!0,ci(s)})},this.sub=function(n){r.add(n);var s=n.componentWillUnmount;n.componentWillUnmount=function(){r&&r.delete(n),s&&s.call(n)}}),o.children},"Provider")};return i.Provider.__=i.Consumer.contextType=i}d(xe,"me");h(xe,"G");yi=Yr.slice,G={__e:h(function(t,e,i,o){for(var r,l,n;e=e.__;)if((r=e.__c)&&!r.__)try{if((l=r.constructor)&&l.getDerivedStateFromError!=null&&(r.setState(l.getDerivedStateFromError(t)),n=r.__d),r.componentDidCatch!=null&&(r.componentDidCatch(t,o||{}),n=r.__d),n)return r.__E=r}catch(s){t=s}throw t},"__e")},Vr=0,os=h(function(t){return t!=null&&t.constructor==null},"t"),Pt.prototype.setState=function(t,e){var i;i=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=Mt({},this.state),typeof t=="function"&&(t=t(Mt({},i),this.props)),t&&Mt(i,t),t!=null&&this.__v&&(e&&this._sb.push(e),ci(this))},Pt.prototype.forceUpdate=function(t){this.__v&&(this.__e=!0,t&&this.__h.push(t),ci(this))},Pt.prototype.render=zt,Xt=[],$r=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,qi=h(function(t,e){return t.__v.__b-e.__v.__b},"f"),Ge.__r=0,so=0,Ji=to(!1),Zi=to(!0),jr=0;var Lt,Y,Ki,Ir,ye=0,Zr=[],tt=G,Pr=tt.__b,zr=tt.__r,Br=tt.diffed,Ar=tt.__c,Rr=tt.unmount,Dr=tt.__;function qt(t,e){tt.__h&&tt.__h(Y,t,ye||e),ye=0;var i=Y.__H||(Y.__H={__:[],__h:[]});return t>=i.__.length&&i.__.push({}),i.__[t]}d(qt,"Oe");h(qt,"d");function et(t){return ye=1,Qr(yo,t)}d(et,"K");h(et,"h");function Qr(t,e,i){var o=qt(Lt++,2);if(o.t=t,!o.__c&&(o.__=[i?i(e):yo(void 0,e),function(s){var a=o.__N?o.__N[0]:o.__[0],c=o.t(a,s);a!==c&&(o.__N=[c,o.__[1]],o.__c.setState({}))}],o.__c=Y,!Y.u)){var r=h(function(s,a,c){if(!o.__c.__H)return!0;var g=o.__c.__H.__.filter(function(f){return!!f.__c});if(g.every(function(f){return!f.__N}))return!l||l.call(this,s,a,c);var u=!1;return g.forEach(function(f){if(f.__N){var p=f.__[0];f.__=f.__N,f.__N=void 0,p!==f.__[0]&&(u=!0)}}),!(!u&&o.__c.props===s)&&(!l||l.call(this,s,a,c))},"f");Y.u=!0;var l=Y.shouldComponentUpdate,n=Y.componentWillUpdate;Y.componentWillUpdate=function(s,a,c){if(this.__e){var g=l;l=void 0,r(s,a,c),l=g}n&&n.call(this,s,a,c)},Y.shouldComponentUpdate=r}return o.__N||o.__}d(Qr,"_o");h(Qr,"p");function me(t,e){var i=qt(Lt++,3);!tt.__s&&xi(i.__H,e)&&(i.__=t,i.i=e,Y.__H.__h.push(i))}d(me,"be");h(me,"y");function fo(t,e){var i=qt(Lt++,4);!tt.__s&&xi(i.__H,e)&&(i.__=t,i.i=e,Y.__h.push(i))}d(fo,"Rt");h(fo,"_");function vt(t){return ye=5,ut(function(){return{current:t}},[])}d(vt,"re");h(vt,"A");function tl(t,e,i){ye=6,fo(function(){return typeof t=="function"?(t(e()),function(){return t(null)}):t?(t.current=e(),function(){return t.current=null}):void 0},i==null?i:i.concat(t))}d(tl,"rn");h(tl,"F");function ut(t,e){var i=qt(Lt++,7);return xi(i.__H,e)&&(i.__=t(),i.__H=e,i.__h=t),i.__}d(ut,"Y");h(ut,"T");function Ot(t,e){return ye=8,ut(function(){return t},e)}d(Ot,"de");h(Ot,"q");function be(t){var e=Y.context[t.__c],i=qt(Lt++,9);return i.c=t,e?(i.__==null&&(i.__=!0,e.sub(Y)),e.props.value):t.__}d(be,"xe");h(be,"x");function el(){var t=qt(Lt++,11);if(!t.__){for(var e=Y.__v;e!==null&&!e.__m&&e.__!==null;)e=e.__;var i=e.__m||(e.__m=[0,0]);t.__="P"+i[0]+"-"+i[1]++}return t.__}d(el,"ln");h(el,"g");function il(){for(var t;t=Zr.shift();)if(t.__P&&t.__H)try{t.__H.__h.forEach(Fe),t.__H.__h.forEach(ui),t.__H.__h=[]}catch(e){t.__H.__h=[],tt.__e(e,t.__v)}}d(il,"Br");h(il,"j");tt.__b=function(t){Y=null,Pr&&Pr(t)},tt.__=function(t,e){t&&e.__k&&e.__k.__m&&(t.__m=e.__k.__m),Dr&&Dr(t,e)},tt.__r=function(t){zr&&zr(t),Lt=0;var e=(Y=t.__c).__H;e&&(Ki===Y?(e.__h=[],Y.__h=[],e.__.forEach(function(i){i.__N&&(i.__=i.__N),i.i=i.__N=void 0})):(e.__h.forEach(Fe),e.__h.forEach(ui),e.__h=[],Lt=0)),Ki=Y},tt.diffed=function(t){Br&&Br(t);var e=t.__c;e&&e.__H&&(e.__H.__h.length&&(Zr.push(e)!==1&&Ir===tt.requestAnimationFrame||((Ir=tt.requestAnimationFrame)||ol)(il)),e.__H.__.forEach(function(i){i.i&&(i.__H=i.i),i.i=void 0})),Ki=Y=null},tt.__c=function(t,e){e.some(function(i){try{i.__h.forEach(Fe),i.__h=i.__h.filter(function(o){return!o.__||ui(o)})}catch(o){e.some(function(r){r.__h&&(r.__h=[])}),e=[],tt.__e(o,i.__v)}}),Ar&&Ar(t,e)},tt.unmount=function(t){Rr&&Rr(t);var e,i=t.__c;i&&i.__H&&(i.__H.__.forEach(function(o){try{Fe(o)}catch(r){e=r}}),i.__H=void 0,e&&tt.__e(e,i.__v))};var Wr=typeof requestAnimationFrame=="function";function ol(t){var e,i=h(function(){clearTimeout(o),Wr&&cancelAnimationFrame(e),setTimeout(t)},"r"),o=setTimeout(i,100);Wr&&(e=requestAnimationFrame(i))}d(ol,"qr");h(ol,"w");function Fe(t){var e=Y,i=t.__c;typeof i=="function"&&(t.__c=void 0,i()),Y=e}d(Fe,"xt");h(Fe,"z");function ui(t){var e=Y;t.__c=t.__(),Y=e}d(ui,"on");h(ui,"B");function xi(t,e){return!t||t.length!==e.length||e.some(function(i,o){return i!==t[o]})}d(xi,"sn");h(xi,"C");function yo(t,e){return typeof e=="function"?e(t):e}d(yo,"po");h(yo,"D");function pi(t,e){for(var i in t)if(i!=="__source"&&!(i in e))return!0;for(var o in e)if(o!=="__source"&&t[o]!==e[o])return!0;return!1}d(pi,"cn");h(pi,"g");function eo(t,e){this.props=t,this.context=e}d(eo,"ho");h(eo,"E");function Jt(t,e){function i(r){var l=this.props.ref,n=l==r.ref;return!n&&l&&(l.call?l(null):l.current=null),e?!e(this.props,r)||!n:pi(this.props,r)}d(i,"n"),h(i,"r");function o(r){return this.shouldComponentUpdate=i,It(t,r)}return d(o,"o"),h(o,"u"),o.displayName="Memo("+(t.displayName||t.name)+")",o.prototype.isReactComponent=!0,o.__f=!0,o}d(Jt,"Re");h(Jt,"C");(eo.prototype=new Pt).isPureReactComponent=!0,eo.prototype.shouldComponentUpdate=function(t,e){return pi(this.props,t)||pi(this.state,e)};var Mr=G.__b;G.__b=function(t){t.type&&t.type.__f&&t.ref&&(t.props.ref=t.ref,t.ref=null),Mr&&Mr(t)};var ls=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function mo(t){function e(i){if(!("ref"in i))return t(i,null);var o=i.ref;delete i.ref;var r=t(i,o);return i.ref=o,r}return d(e,"t"),h(e,"t"),e.$$typeof=ls,e.render=e,e.prototype.isReactComponent=e.__f=!0,e.displayName="ForwardRef("+(t.displayName||t.name)+")",e}d(mo,"dn");h(mo,"w");var ns=G.__e;G.__e=function(t,e,i,o){if(t.then){for(var r,l=e;l=l.__;)if((r=l.__c)&&r.__c)return e.__e==null&&(e.__e=i.__e,e.__k=i.__k),r.__c(t,e)}ns(t,e,i,o)};var Er=G.unmount;function bo(t,e,i){return t&&(t.__c&&t.__c.__H&&(t.__c.__H.__.forEach(function(o){typeof o.__c=="function"&&o.__c()}),t.__c.__H=null),(t=function(o,r){for(var l in r)o[l]=r[l];return o}({},t)).__c!=null&&(t.__c.__P===i&&(t.__c.__P=e),t.__c=null),t.__k=t.__k&&t.__k.map(function(o){return bo(o,e,i)})),t}d(bo,"xo");h(bo,"T");function wo(t,e,i){return t&&i&&(t.__v=null,t.__k=t.__k&&t.__k.map(function(o){return wo(o,e,i)}),t.__c&&t.__c.__P===e&&(t.__e&&i.appendChild(t.__e),t.__c.__e=!0,t.__c.__P=i)),t}d(wo,"Ro");h(wo,"A");function ai(){this.__u=0,this.t=null,this.__b=null}d(ai,"an");h(ai,"D");function xo(t){var e=t.__.__c;return e&&e.__a&&e.__a(t)}d(xo,"ko");h(xo,"L");function Ee(){this.u=null,this.o=null}d(Ee,"kt");h(Ee,"F");G.unmount=function(t){var e=t.__c;e&&e.__R&&e.__R(),e&&32&t.__u&&(t.type=null),Er&&Er(t)},(ai.prototype=new Pt).__c=function(t,e){var i=e.__c,o=this;o.t==null&&(o.t=[]),o.t.push(i);var r=xo(o.__v),l=!1,n=h(function(){l||(l=!0,i.__R=null,r?r(s):s())},"i");i.__R=n;var s=h(function(){if(!--o.__u){if(o.state.__a){var a=o.state.__a;o.__v.__k[0]=wo(a,a.__c.__P,a.__c.__O)}var c;for(o.setState({__a:o.__b=null});c=o.t.pop();)c.forceUpdate()}},"c");o.__u++||32&e.__u||o.setState({__a:o.__b=o.__v.__k[0]}),t.then(n,n)},ai.prototype.componentWillUnmount=function(){this.t=[]},ai.prototype.render=function(t,e){if(this.__b){if(this.__v.__k){var i=document.createElement("div"),o=this.__v.__k[0].__c;this.__v.__k[0]=bo(this.__b,i,o.__O=o.__P)}this.__b=null}var r=e.__a&&It(zt,null,t.fallback);return r&&(r.__u&=-33),[It(zt,null,e.__a?null:t.children),r]};var Hr=h(function(t,e,i){if(++i[1]===i[0]&&t.o.delete(e),t.props.revealOrder&&(t.props.revealOrder[0]!=="t"||!t.o.size))for(i=t.u;i;){for(;i.length>3;)i.pop()();if(i[1]<i[0])break;t.u=i=i[2]}},"U");(Ee.prototype=new Pt).__a=function(t){var e=this,i=xo(e.__v),o=e.o.get(t);return o[0]++,function(r){var l=h(function(){e.props.revealOrder?(o.push(r),Hr(e,t,o)):r()},"o");i?i(l):l()}},Ee.prototype.render=function(t){this.u=null,this.o=new Map;var e=Ne(t.children);t.revealOrder&&t.revealOrder[0]==="b"&&e.reverse();for(var i=e.length;i--;)this.o.set(e[i],this.u=[1,0,this.u]);return t.children},Ee.prototype.componentDidUpdate=Ee.prototype.componentDidMount=function(){var t=this;this.o.forEach(function(e,i){Hr(t,i,e)})};var ss=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.element")||60103,as=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image(!S)|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,ds=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,hs=/[A-Z0-9]/g,cs=typeof document<"u",us=h(function(t){return(typeof Symbol<"u"&&typeof Symbol()=="symbol"?/fil|che|rad/:/fil|che|ra/).test(t)},"Y");function rl(t,e,i){return e.__k==null&&(e.textContent=""),_o(t,e),typeof i=="function"&&i(),t?t.__c:null}d(rl,"So");h(rl,"$");Pt.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(t){Object.defineProperty(Pt.prototype,t,{configurable:!0,get:h(function(){return this["UNSAFE_"+t]},"get"),set:h(function(e){Object.defineProperty(this,t,{configurable:!0,writable:!0,value:e})},"set")})});var Fr=G.event;function ll(){}d(ll,"rl");h(ll,"J");function nl(){return this.cancelBubble}d(nl,"ll");h(nl,"K");function sl(){return this.defaultPrevented}d(sl,"il");h(sl,"Q");G.event=function(t){return Fr&&(t=Fr(t)),t.persist=ll,t.isPropagationStopped=nl,t.isDefaultPrevented=sl,t.nativeEvent=t};var al,ps={enumerable:!1,configurable:!0,get:h(function(){return this.class},"get")},Or=G.vnode;G.vnode=function(t){typeof t.type=="string"&&function(e){var i=e.props,o=e.type,r={},l=o.indexOf("-")===-1;for(var n in i){var s=i[n];if(!(n==="value"&&"defaultValue"in i&&s==null||cs&&n==="children"&&o==="noscript"||n==="class"||n==="className")){var a=n.toLowerCase();n==="defaultValue"&&"value"in i&&i.value==null?n="value":n==="download"&&s===!0?s="":a==="translate"&&s==="no"?s=!1:a[0]==="o"&&a[1]==="n"?a==="ondoubleclick"?n="ondblclick":a!=="onchange"||o!=="input"&&o!=="textarea"||us(i.type)?a==="onfocus"?n="onfocusin":a==="onblur"?n="onfocusout":ds.test(n)&&(n=a):a=n="oninput":l&&as.test(n)?n=n.replace(hs,"-$&").toLowerCase():s===null&&(s=void 0),a==="oninput"&&r[n=a]&&(n="oninputCapture"),r[n]=s}}o=="select"&&r.multiple&&Array.isArray(r.value)&&(r.value=Ne(i.children).forEach(function(c){c.props.selected=r.value.indexOf(c.props.value)!=-1})),o=="select"&&r.defaultValue!=null&&(r.value=Ne(i.children).forEach(function(c){c.props.selected=r.multiple?r.defaultValue.indexOf(c.props.value)!=-1:r.defaultValue==c.props.value})),i.class&&!i.className?(r.class=i.class,Object.defineProperty(r,"className",ps)):(i.className&&!i.class||i.class&&i.className)&&(r.class=r.className=i.className),e.props=r}(t),t.$$typeof=ss,Or&&Or(t)};var Lr=G.__r;G.__r=function(t){Lr&&Lr(t),al=t.__c};var Gr=G.diffed;G.diffed=function(t){Gr&&Gr(t);var e=t.props,i=t.__e;i!=null&&t.type==="textarea"&&"value"in e&&e.value!==i.value&&(i.value=e.value==null?"":e.value),al=null};function dl(t){return!!t.__k&&(_o(null,t),!0)}d(dl,"Io");h(dl,"hn");var gi=h(function(t,e){return t(e)},"pn");function vo(t){var e,i,o="";if(typeof t=="string"||typeof t=="number")o+=t;else if(typeof t=="object")if(Array.isArray(t)){var r=t.length;for(e=0;e<r;e++)t[e]&&(i=vo(t[e]))&&(o&&(o+=" "),o+=i)}else for(i in t)t[i]&&(o&&(o+=" "),o+=i);return o}d(vo,"Do");h(vo,"r");function hl(){for(var t,e,i=0,o="",r=arguments.length;i<r;i++)(t=arguments[i])&&(e=vo(t))&&(o&&(o+=" "),o+=e);return o}d(hl,"al");h(hl,"clsx");var Gt=hl,_s=0,xh=Array.isArray;function M(t,e,i,o,r,l){e||(e={});var n,s,a=e;"ref"in e&&(n=e.ref,delete e.ref);var c={type:t,props:a,key:i,ref:n,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:--_s,__i:-1,__u:0,__source:r,__self:l};if(typeof t=="function"&&(n=t.defaultProps))for(s in n)a[s]===void 0&&(a[s]=n[s]);return G.vnode&&G.vnode(c),c}d(M,"H");h(M,"u");function ft(t,e,i){let o=typeof t.colSpan=="function"?t.colSpan(i):1;if(Number.isInteger(o)&&o>1&&(!t.frozen||t.idx+o-1<=e))return o}d(ft,"le");h(ft,"getColSpan");function cl(t){t.stopPropagation()}d(cl,"dl");h(cl,"stopPropagation");function Oe(t){t?.scrollIntoView({inline:"nearest",block:"nearest"})}d(Oe,"St");h(Oe,"scrollIntoView");function fe(t){let e=!1,i={...t,preventGridDefault(){e=!0},isGridDefaultPrevented(){return e}};return Object.setPrototypeOf(i,Object.getPrototypeOf(t)),i}d(fe,"tt");h(fe,"createCellEvent");var fs=new Set(["Unidentified","Alt","AltGraph","CapsLock","Control","Fn","FnLock","Meta","NumLock","ScrollLock","Shift","Tab","ArrowDown","ArrowLeft","ArrowRight","ArrowUp","End","Home","PageDown","PageUp","Insert","ContextMenu","Escape","Pause","Play","PrintScreen","F1","F3","F4","F5","F6","F7","F8","F9","F10","F11","F12"]);function _i(t){return(t.ctrlKey||t.metaKey)&&t.key!=="Control"}d(_i,"pn");h(_i,"isCtrlKeyHeldDown");function ul(t){return _i(t)&&t.keyCode!==86?!1:!fs.has(t.key)}d(ul,"fl");h(ul,"isDefaultCellInput");function pl({key:t,target:e}){return t==="Tab"&&(e instanceof HTMLInputElement||e instanceof HTMLTextAreaElement||e instanceof HTMLSelectElement)?e.closest(".rdg-editor-container")?.querySelectorAll("input, textarea, select").length===1:!1}d(pl,"_l");h(pl,"onEditorNavigation");var ys="mlln6zg7-0-0-beta-47";function gl(t){return t.map(({key:e,idx:i,minWidth:o,maxWidth:r})=>M("div",{className:ys,style:{gridColumnStart:i+1,minWidth:o,maxWidth:r},"data-measuring-cell-key":e},e))}d(gl,"hl");h(gl,"renderMeasuringCells");function _l({selectedPosition:t,columns:e,rows:i}){let o=e[t.idx],r=i[t.rowIdx];return Co(o,r)}d(_l,"gl");h(_l,"isSelectedCellEditable");function Co(t,e){return t.renderEditCell!=null&&(typeof t.editable=="function"?t.editable(e):t.editable)!==!1}d(Co,"Lo");h(Co,"isCellEditableUtil");function fl({rows:t,topSummaryRows:e,bottomSummaryRows:i,rowIdx:o,mainHeaderRowIdx:r,lastFrozenColumnIndex:l,column:n}){let s=e?.length??0;if(o===r)return ft(n,l,{type:"HEADER"});if(e&&o>r&&o<=s+r)return ft(n,l,{type:"SUMMARY",row:e[o+s]});if(o>=0&&o<t.length){let a=t[o];return ft(n,l,{type:"ROW",row:a})}if(i)return ft(n,l,{type:"SUMMARY",row:i[o-t.length]})}d(fl,"ml");h(fl,"getSelectedCellColSpan");function yl({moveUp:t,moveNext:e,cellNavigationMode:i,columns:o,colSpanColumns:r,rows:l,topSummaryRows:n,bottomSummaryRows:s,minRowIdx:a,mainHeaderRowIdx:c,maxRowIdx:g,currentPosition:{idx:u,rowIdx:f},nextPosition:p,lastFrozenColumnIndex:y,isCellWithinBounds:C}){let{idx:x,rowIdx:b}=p,S=o.length,k=h(P=>{for(let m of r){let _=m.idx;if(_>x)break;let B=fl({rows:l,topSummaryRows:n,bottomSummaryRows:s,rowIdx:b,mainHeaderRowIdx:c,lastFrozenColumnIndex:y,column:m});if(B&&x>_&&x<B+_){x=_+(P?B:0);break}}},"setColSpan"),I=h(P=>P.level+c,"getParentRowIdx"),z=h(()=>{if(e){let P=o[x].parent;for(;P!==void 0;){let m=I(P);if(b===m){x=P.idx+P.colSpan;break}P=P.parent}}else if(t){let P=o[x].parent,m=!1;for(;P!==void 0;){let _=I(P);if(b>=_){x=P.idx,b=_,m=!0;break}P=P.parent}m||(x=u,b=f)}},"setHeaderGroupColAndRowSpan");if(C(p)&&(k(e),b<c&&z()),i==="CHANGE_ROW"&&(x===S?b===g||(x=0,b+=1):x===-1&&(b===a||(b-=1,x=S-1),k(!1))),b<c){let P=o[x].parent,m=b;for(b=c;P!==void 0;){let _=I(P);_>=m&&(b=_,x=P.idx),P=P.parent}}return{idx:x,rowIdx:b}}d(yl,"yl");h(yl,"getNextSelectedCellPosition");function ml({maxColIdx:t,minRowIdx:e,maxRowIdx:i,selectedPosition:{rowIdx:o,idx:r},shiftKey:l}){return l?r===0&&o===e:r===t&&o===i}d(ml,"bl");h(ml,"canExitGrid");var ms="cj343x07-0-0-beta-47",bl=`rdg-cell ${ms}`,bs="csofj7r7-0-0-beta-47",ws=`rdg-cell-frozen ${bs}`;function So(t){return{"--rdg-grid-row-start":t}}d(So,"Mo");h(So,"getRowStyle");function To(t,e,i){let o=e+1,r=`calc(${i-1} * var(--rdg-header-row-height))`;return t.parent===void 0?{insetBlockStart:0,gridRowStart:1,gridRowEnd:o,paddingBlockStart:r}:{insetBlockStart:`calc(${e-i} * var(--rdg-header-row-height))`,gridRowStart:o-i,gridRowEnd:o,paddingBlockStart:r}}d(To,"Ao");h(To,"getHeaderCellStyle");function ve(t,e=1){let i=t.idx+1;return{gridColumnStart:i,gridColumnEnd:i+e,insetInlineStart:t.frozen?`var(--rdg-frozen-left-${t.idx})`:void 0}}d(ve,"ot");h(ve,"getCellStyle");function Ve(t,...e){return Gt(bl,...e,t.frozen&&ws)}d(Ve,"It");h(Ve,"getCellClassname");var{min:Ue,max:fi,floor:Nr,sign:xs,abs:vs}=Math;function di(t){if(typeof t!="function")throw new Error("Please specify the rowKeyGetter prop to use selection")}d(di,"fn");h(di,"assertIsValidKeyGetter");function ko(t,{minWidth:e,maxWidth:i}){return t=fi(t,e),typeof i=="number"&&i>=e?Ue(t,i):t}d(ko,"Oo");h(ko,"clampColumnWidth");function Io(t,e){return t.parent===void 0?e:t.level-t.parent.level}d(Io,"$o");h(Io,"getHeaderCellRowSpan");var Cs="c1bn88vv7-0-0-beta-47",Ss=`rdg-checkbox-input ${Cs}`;function wl({onChange:t,indeterminate:e,...i}){function o(r){t(r.target.checked,r.nativeEvent.shiftKey)}return d(o,"o"),h(o,"handleChange"),M("input",{ref:h(r=>{r&&(r.indeterminate=e===!0)},"ref"),type:"checkbox",className:Ss,onChange:o,...i})}d(wl,"El");h(wl,"renderCheckbox");var Ts="g1s9ylgp7-0-0-beta-47",vh=`rdg-group-cell-content ${Ts}`,ks="cz54e4y7-0-0-beta-47",Ch=`rdg-caret ${ks}`;function xl(t){try{return t.row[t.column.key]}catch{return null}}d(xl,"Tl");h(xl,"renderValue");var vl=xe(void 0),Is=vl.Provider;function vi(){return be(vl)}d(vi,"gn");h(vi,"useDefaultRenderers");function Ci({value:t,tabIndex:e,indeterminate:i,disabled:o,onChange:r,"aria-label":l,"aria-labelledby":n}){let s=vi().renderCheckbox;return s({"aria-label":l,"aria-labelledby":n,tabIndex:e,indeterminate:i,disabled:o,checked:t,onChange:r})}d(Ci,"mn");h(Ci,"SelectCellFormatter");var Cl=xe(void 0),Ps=Cl.Provider,Sl=xe(void 0),zs=Sl.Provider;function Po(){let t=be(Cl),e=be(Sl);if(t===void 0||e===void 0)throw new Error("useRowSelection must be used within DataGrid cells");return{isRowSelectionDisabled:t.isRowSelectionDisabled,isRowSelected:t.isRowSelected,onRowSelectionChange:e}}d(Po,"Vo");h(Po,"useRowSelection");var Tl=xe(void 0),Bs=Tl.Provider,kl=xe(void 0),As=kl.Provider;function Il(){let t=be(Tl),e=be(kl);if(t===void 0||e===void 0)throw new Error("useHeaderRowSelection must be used within DataGrid cells");return{isIndeterminate:t.isIndeterminate,isRowSelected:t.isRowSelected,onRowSelectionChange:e}}d(Il,"Nl");h(Il,"useHeaderRowSelection");var io="rdg-select-column";function Pl(t){let{isIndeterminate:e,isRowSelected:i,onRowSelectionChange:o}=Il();return M(Ci,{"aria-label":"Select All",tabIndex:t.tabIndex,indeterminate:e,value:i,onChange:h(r=>{o({checked:e?!1:r})},"onChange")})}d(Pl,"Ml");h(Pl,"HeaderRenderer");function zl(t){let{isRowSelectionDisabled:e,isRowSelected:i,onRowSelectionChange:o}=Po();return M(Ci,{"aria-label":"Select",tabIndex:t.tabIndex,disabled:e,value:i,onChange:h((r,l)=>{o({row:t.row,checked:r,isShiftClick:l})},"onChange")})}d(zl,"Al");h(zl,"SelectFormatter");function Bl(t){let{isRowSelected:e,onRowSelectionChange:i}=Po();return M(Ci,{"aria-label":"Select Group",tabIndex:t.tabIndex,value:e,onChange:h(o=>{i({row:t.row,checked:o,isShiftClick:!1})},"onChange")})}d(Bl,"Ol");h(Bl,"SelectGroupFormatter");var Rs={key:io,name:"",width:35,minWidth:35,maxWidth:35,resizable:!1,sortable:!1,frozen:!0,renderHeaderCell(t){return M(Pl,{...t})},renderCell(t){return M(zl,{...t})},renderGroupCell(t){return M(Bl,{...t})}},Ds="auto",Ws=50;function Al({rawColumns:t,defaultColumnOptions:e,getColumnWidth:i,viewportWidth:o,scrollLeft:r,enableVirtualization:l}){let n=e?.width??Ds,s=e?.minWidth??Ws,a=e?.maxWidth??void 0,c=e?.renderCell??xl,g=e?.sortable??!1,u=e?.resizable??!1,f=e?.draggable??!1,{columns:p,colSpanColumns:y,lastFrozenColumnIndex:C,headerRowsCount:x}=ut(()=>{let m=-1,_=1,B=[];R(t,1);function R(N,O,nt){for(let $ of N){if("children"in $){let St={name:$.name,parent:nt,idx:-1,colSpan:0,level:0,headerCellClass:$.headerCellClass};R($.children,O+1,St);continue}let K=$.frozen??!1,Ct={...$,parent:nt,idx:0,level:0,frozen:K,width:$.width??n,minWidth:$.minWidth??s,maxWidth:$.maxWidth??a,sortable:$.sortable??g,resizable:$.resizable??u,draggable:$.draggable??f,renderCell:$.renderCell??c};B.push(Ct),K&&m++,O>_&&(_=O)}}d(R,"I"),h(R,"collectColumns"),B.sort(({key:N,frozen:O},{key:nt,frozen:$})=>N===io?-1:nt===io?1:O?$?0:-1:$?1:0);let F=[];return B.forEach((N,O)=>{N.idx=O,zo(N,O,0),N.colSpan!=null&&F.push(N)}),{columns:B,colSpanColumns:F,lastFrozenColumnIndex:m,headerRowsCount:_}},[t,n,s,a,c,u,g,f]),{templateColumns:b,layoutCssVars:S,totalFrozenColumnWidth:k,columnMetrics:I}=ut(()=>{let m=new Map,_=0,B=0,R=[];for(let N of p){let O=i(N);typeof O=="number"?O=ko(O,N):O=N.minWidth,R.push(`${O}px`),m.set(N,{width:O,left:_}),_+=O}if(C!==-1){let N=m.get(p[C]);B=N.left+N.width}let F={};for(let N=0;N<=C;N++){let O=p[N];F[`--rdg-frozen-left-${O.idx}`]=`${m.get(O).left}px`}return{templateColumns:R,layoutCssVars:F,totalFrozenColumnWidth:B,columnMetrics:m}},[i,p,C]),[z,P]=ut(()=>{if(!l)return[0,p.length-1];let m=r+k,_=r+o,B=p.length-1,R=Ue(C+1,B);if(m>=_)return[R,R];let F=R;for(;F<B;){let{left:$,width:K}=I.get(p[F]);if($+K>m)break;F++}let N=F;for(;N<B;){let{left:$,width:K}=I.get(p[N]);if($+K>=_)break;N++}let O=fi(R,F-1),nt=Ue(B,N+1);return[O,nt]},[I,p,C,r,k,o,l]);return{columns:p,colSpanColumns:y,colOverscanStartIdx:z,colOverscanEndIdx:P,templateColumns:b,layoutCssVars:S,headerRowsCount:x,lastFrozenColumnIndex:C,totalFrozenColumnWidth:k}}d(Al,"Ul");h(Al,"useCalculatedColumns");function zo(t,e,i){if(i<t.level&&(t.level=i),t.parent!==void 0){let{parent:o}=t;o.idx===-1&&(o.idx=e),o.colSpan+=1,zo(o,e,i-1)}}d(zo,"qo");h(zo,"updateColumnParent");var we=typeof window>"u"?me:fo;function Rl(t,e,i,o,r,l,n,s,a,c){let g=vt(r),u=t.length===e.length,f=u&&r!==g.current,p=[...i],y=[];for(let{key:S,idx:k,width:I}of e)typeof I=="string"&&(f||!n.has(S))&&!l.has(S)&&(p[k]=I,y.push(S));let C=p.join(" ");we(()=>{g.current=r,x(y)});function x(S){S.length!==0&&a(k=>{let I=new Map(k),z=!1;for(let P of S){let m=oo(o,P);z||=m!==k.get(P),m===void 0?I.delete(P):I.set(P,m)}return z?I:k})}d(x,"m"),h(x,"updateMeasuredWidths");function b(S,k){let{key:I}=S,z=[...i],P=[];for(let{key:_,idx:B,width:R}of e)if(I===_){let F=typeof k=="number"?`${k}px`:k;z[B]=F}else u&&typeof R=="string"&&!l.has(_)&&(z[B]=R,P.push(_));o.current.style.gridTemplateColumns=z.join(" ");let m=typeof k=="number"?k:oo(o,I);gi(()=>{s(_=>{let B=new Map(_);return B.set(I,m),B}),x(P)}),c?.(S.idx,m)}return d(b,"h"),h(b,"handleColumnResize"),{gridTemplateColumns:C,handleColumnResize:b}}d(Rl,"Gl");h(Rl,"useColumnWidths");function oo(t,e){let i=`[data-measuring-cell-key="${CSS.escape(e)}"]`;return t.current?.querySelector(i)?.getBoundingClientRect().width}d(oo,"Po");h(oo,"measureColumnWidth");function Dl(){let t=vt(null),[e,i]=et(1),[o,r]=et(1),[l,n]=et(0);return we(()=>{let{ResizeObserver:s}=window;if(s==null)return;let{clientWidth:a,clientHeight:c,offsetWidth:g,offsetHeight:u}=t.current,{width:f,height:p}=t.current.getBoundingClientRect(),y=u-c,C=f-g+a,x=p-y;i(C),r(x),n(y);let b=new s(S=>{let k=S[0].contentBoxSize[0],{clientHeight:I,offsetHeight:z}=t.current;gi(()=>{i(k.inlineSize),r(k.blockSize),n(z-I)})});return b.observe(t.current),()=>{b.disconnect()}},[]),[t,e,o,l]}d(Dl,"Vl");h(Dl,"useGridDimensions");function ct(t){let e=vt(t);me(()=>{e.current=t});let i=Ot((...o)=>{e.current(...o)},[]);return t&&i}d(ct,"te");h(ct,"useLatestFunc");function $e(t){let[e,i]=et(!1);e&&!t&&i(!1);function o(r){r.target!==r.currentTarget&&i(!0)}return d(o,"o"),h(o,"onFocus"),{tabIndex:t&&!e?0:-1,childTabIndex:t?0:-1,onFocus:t?o:void 0}}d($e,"Dt");h($e,"useRovingTabIndex");function Wl({columns:t,colSpanColumns:e,rows:i,topSummaryRows:o,bottomSummaryRows:r,colOverscanStartIdx:l,colOverscanEndIdx:n,lastFrozenColumnIndex:s,rowOverscanStartIdx:a,rowOverscanEndIdx:c}){let g=ut(()=>{if(l===0)return 0;let u=l,f=h((p,y)=>y!==void 0&&p+y>l?(u=p,!0):!1,"updateStartIdx");for(let p of e){let y=p.idx;if(y>=u||f(y,ft(p,s,{type:"HEADER"})))break;for(let C=a;C<=c;C++){let x=i[C];if(f(y,ft(p,s,{type:"ROW",row:x})))break}if(o!=null){for(let C of o)if(f(y,ft(p,s,{type:"SUMMARY",row:C})))break}if(r!=null){for(let C of r)if(f(y,ft(p,s,{type:"SUMMARY",row:C})))break}}return u},[a,c,i,o,r,l,s,e]);return ut(()=>{let u=[];for(let f=0;f<=n;f++){let p=t[f];f<g&&!p.frozen||u.push(p)}return u},[g,n,t])}d(Wl,"jl");h(Wl,"useViewportColumns");function Ml({rows:t,rowHeight:e,clientHeight:i,scrollTop:o,enableVirtualization:r}){let{totalRowHeight:l,gridTemplateRows:n,getRowTop:s,getRowHeight:a,findRowIdx:c}=ut(()=>{if(typeof e=="number")return{totalRowHeight:e*t.length,gridTemplateRows:` repeat(${t.length}, ${e}px)`,getRowTop:h(x=>x*e,"getRowTop"),getRowHeight:h(()=>e,"getRowHeight"),findRowIdx:h(x=>Nr(x/e),"findRowIdx")};let f=0,p=" ",y=t.map(x=>{let b=e(x),S={top:f,height:b};return p+=`${b}px `,f+=b,S}),C=h(x=>fi(0,Ue(t.length-1,x)),"validateRowIdx");return{totalRowHeight:f,gridTemplateRows:p,getRowTop:h(x=>y[C(x)].top,"getRowTop"),getRowHeight:h(x=>y[C(x)].height,"getRowHeight"),findRowIdx(x){let b=0,S=y.length-1;for(;b<=S;){let k=b+Nr((S-b)/2),I=y[k].top;if(I===x)return k;if(I<x?b=k+1:I>x&&(S=k-1),b>S)return S}return 0}}},[e,t]),g=0,u=t.length-1;if(r){let f=c(o),p=c(o+i);g=fi(0,f-4),u=Ue(t.length-1,p+4)}return{rowOverscanStartIdx:g,rowOverscanEndIdx:u,totalRowHeight:l,gridTemplateRows:n,getRowTop:s,getRowHeight:a,findRowIdx:c}}d(Ml,"Kl");h(Ml,"useViewportRows");var Ms="c1w9bbhr7-0-0-beta-47",Es="c1creorc7-0-0-beta-47",Hs=`rdg-cell-drag-handle ${Ms}`;function El({gridRowStart:t,rows:e,column:i,columnWidth:o,maxColIdx:r,isLastRow:l,selectedPosition:n,latestDraggedOverRowIdx:s,isCellEditable:a,onRowsChange:c,onFill:g,onClick:u,setDragging:f,setDraggedOverRowIdx:p}){let{idx:y,rowIdx:C}=n;function x(z){if(z.preventDefault(),z.buttons!==1)return;f(!0),window.addEventListener("mouseover",P),window.addEventListener("mouseup",m);function P(_){_.buttons!==1&&m()}d(P,"P"),h(P,"onMouseOver");function m(){window.removeEventListener("mouseover",P),window.removeEventListener("mouseup",m),f(!1),b()}d(m,"b"),h(m,"onMouseUp")}d(x,"m"),h(x,"handleMouseDown");function b(){let z=s.current;if(z===void 0)return;let P=C<z?C+1:z,m=C<z?z+1:C;k(P,m),p(void 0)}d(b,"h"),h(b,"handleDragEnd");function S(z){z.stopPropagation(),k(C+1,e.length)}d(S,"w"),h(S,"handleDoubleClick");function k(z,P){let m=e[C],_=[...e],B=[];for(let R=z;R<P;R++)if(a({rowIdx:R,idx:y})){let F=g({columnKey:i.key,sourceRow:m,targetRow:e[R]});F!==e[R]&&(_[R]=F,B.push(R))}B.length>0&&c?.(_,{indexes:B,column:i})}d(k,"z"),h(k,"updateRows");function I(){let z=i.colSpan?.({type:"ROW",row:e[C]})??1,{insetInlineStart:P,...m}=ve(i,z),_="calc(var(--rdg-drag-handle-size) * -0.5 + 1px)",B=i.idx+z-1===r;return{...m,gridRowStart:t,marginInlineEnd:B?void 0:_,marginBlockEnd:l?void 0:_,insetInlineStart:P?`calc(${P} + ${o}px + var(--rdg-drag-handle-size) * -0.5 - 1px)`:void 0}}return d(I,"v"),h(I,"getStyle"),M("div",{style:I(),className:Gt(Hs,i.frozen&&Es),onClick:u,onMouseDown:x,onDoubleClick:S})}d(El,"Xl");h(El,"DragHandle");var Fs="cis5rrm7-0-0-beta-47";function Hl({column:t,colSpan:e,row:i,rowIdx:o,onRowChange:r,closeEditor:l,onKeyDown:n,navigate:s}){let a=vt(void 0),c=t.editorOptions?.commitOnOutsideClick!==!1,g=ct(()=>{p(!0,!1)});me(()=>{if(!c)return;function b(){a.current=requestAnimationFrame(g)}return d(b,"h"),h(b,"onWindowCaptureMouseDown"),addEventListener("mousedown",b,{capture:!0}),()=>{removeEventListener("mousedown",b,{capture:!0}),u()}},[c,g]);function u(){cancelAnimationFrame(a.current)}d(u,"s"),h(u,"cancelFrameRequest");function f(b){if(n){let S=fe(b);if(n({mode:"EDIT",row:i,column:t,rowIdx:o,navigate(){s(b)},onClose:p},S),S.isGridDefaultPrevented())return}b.key==="Escape"?p():b.key==="Enter"?p(!0):pl(b)&&s(b)}d(f,"g"),h(f,"handleKeyDown");function p(b=!1,S=!0){b?r(i,!0,S):l(S)}d(p,"f"),h(p,"onClose");function y(b,S=!1){r(b,S,S)}d(y,"x"),h(y,"onEditorRowChange");let{cellClass:C}=t,x=Ve(t,"rdg-editor-container",typeof C=="function"?C(i):C,!t.editorOptions?.displayCellContent&&Fs);return M("div",{role:"gridcell","aria-colindex":t.idx+1,"aria-colspan":e,"aria-selected":!0,className:x,style:ve(t,e),onKeyDown:f,onMouseDownCapture:u,children:t.renderEditCell!=null&&M(zt,{children:[t.renderEditCell({column:t,row:i,rowIdx:o,onRowChange:y,onClose:p}),t.editorOptions?.displayCellContent&&t.renderCell({column:t,row:i,rowIdx:o,isCellEditable:!0,tabIndex:-1,onRowChange:y})]})})}d(Hl,"Jl");h(Hl,"EditCell");function Fl({column:t,rowIdx:e,isCellSelected:i,selectCell:o}){let{tabIndex:r,onFocus:l}=$e(i),{colSpan:n}=t,s=Io(t,e),a=t.idx+1;function c(){o({idx:t.idx,rowIdx:e})}return d(c,"d"),h(c,"onClick"),M("div",{role:"columnheader","aria-colindex":a,"aria-colspan":n,"aria-rowspan":s,"aria-selected":i,tabIndex:r,className:Gt(bl,t.headerCellClass),style:{...To(t,e,s),gridColumnStart:a,gridColumnEnd:a+n},onFocus:l,onClick:c,children:t.name})}d(Fl,"Ql");h(Fl,"GroupedColumnHeaderCell");var Os="h44jtk67-0-0-beta-47",Ls="hcgkhxz7-0-0-beta-47",Gs=`rdg-header-sort-name ${Ls}`;function Ol({column:t,sortDirection:e,priority:i}){return t.sortable?M(Ll,{sortDirection:e,priority:i,children:t.name}):t.name}d(Ol,"oi");h(Ol,"renderHeaderCell");function Ll({sortDirection:t,priority:e,children:i}){let o=vi().renderSortStatus;return M("span",{className:Os,children:[M("span",{className:Gs,children:i}),M("span",{children:o({sortDirection:t,priority:e})})]})}d(Ll,"ri");h(Ll,"SortableHeaderCell");var Ns="c6l2wv17-0-0-beta-47",Us="c1kqdw7y7-0-0-beta-47",Vs=`rdg-cell-resizable ${Us}`,$s="r1y6ywlx7-0-0-beta-47",js="rdg-cell-draggable",Ys="c1bezg5o7-0-0-beta-47",Xs=`rdg-cell-dragging ${Ys}`,Ks="c1vc96037-0-0-beta-47",qs=`rdg-cell-drag-over ${Ks}`;function Gl({column:t,colSpan:e,rowIdx:i,isCellSelected:o,onColumnResize:r,onColumnsReorder:l,sortColumns:n,onSortColumnsChange:s,selectCell:a,shouldFocusGrid:c,direction:g,dragDropKey:u}){let[f,p]=et(!1),[y,C]=et(!1),x=g==="rtl",b=Io(t,i),{tabIndex:S,childTabIndex:k,onFocus:I}=$e(o),z=n?.findIndex(L=>L.columnKey===t.key),P=z!==void 0&&z>-1?n[z]:void 0,m=P?.direction,_=P!==void 0&&n.length>1?z+1:void 0,B=m&&!_?m==="ASC"?"ascending":"descending":void 0,{sortable:R,resizable:F,draggable:N}=t,O=Ve(t,t.headerCellClass,R&&Ns,F&&Vs,N&&js,f&&Xs,y&&qs),nt=t.renderHeaderCell??Ol;function $(L){if(L.pointerType==="mouse"&&L.buttons!==1)return;L.preventDefault();let{currentTarget:X,pointerId:mt}=L,Wt=X.parentElement,{right:Ze,left:Qe}=Wt.getBoundingClientRect(),Te=x?L.clientX-Qe:Ze-L.clientX,oe=!1;function re(le){let{width:ne,right:Bi,left:Pe}=Wt.getBoundingClientRect(),se=x?Bi+Te-le.clientX:le.clientX+Te-Pe;se=ko(se,t),ne>0&&se!==ne&&r(t,se)}d(re,"Ve"),h(re,"onPointerMove");function ke(){oe=!0,r(t,"max-content")}d(ke,"st"),h(ke,"onDoubleClick");function Ie(le){oe||re(le),X.removeEventListener("pointermove",re),X.removeEventListener("dblclick",ke),X.removeEventListener("lostpointercapture",Ie)}d(Ie,"at"),h(Ie,"onLostPointerCapture"),X.setPointerCapture(mt),X.addEventListener("pointermove",re),X.addEventListener("dblclick",ke),X.addEventListener("lostpointercapture",Ie)}d($,"U"),h($,"onPointerDown");function K(L){if(s==null)return;let{sortDescendingFirst:X}=t;if(P===void 0){let mt={columnKey:t.key,direction:X?"DESC":"ASC"};s(n&&L?[...n,mt]:[mt])}else{let mt;if((X===!0&&m==="DESC"||X!==!0&&m==="ASC")&&(mt={columnKey:t.key,direction:m==="ASC"?"DESC":"ASC"}),L){let Wt=[...n];mt?Wt[z]=mt:Wt.splice(z,1),s(Wt)}else s(mt?[mt]:[])}}d(K,"ie"),h(K,"onSort");function Ct(L){a({idx:t.idx,rowIdx:i}),R&&K(L.ctrlKey||L.metaKey)}d(Ct,"We"),h(Ct,"onClick");function St(L){I?.(L),c&&a({idx:0,rowIdx:i})}d(St,"Ue"),h(St,"handleFocus");function ee(L){(L.key===" "||L.key==="Enter")&&(L.preventDefault(),K(L.ctrlKey||L.metaKey))}d(ee,"Tt"),h(ee,"onKeyDown");function dt(L){L.dataTransfer.setData(u,t.key),L.dataTransfer.dropEffect="move",p(!0)}d(dt,"Pt"),h(dt,"onDragStart");function st(){p(!1)}d(st,"zt"),h(st,"onDragEnd");function ht(L){L.preventDefault(),L.dataTransfer.dropEffect="move"}d(ht,"Ht"),h(ht,"onDragOver");function ie(L){if(C(!1),L.dataTransfer.types.includes(u.toLowerCase())){let X=L.dataTransfer.getData(u.toLowerCase());X!==t.key&&(L.preventDefault(),l?.(X,t.key))}}d(ie,"Ft"),h(ie,"onDrop");function Vt(L){ro(L)&&C(!0)}d(Vt,"ke"),h(Vt,"onDragEnter");function Se(L){ro(L)&&C(!1)}d(Se,"rt"),h(Se,"onDragLeave");let Ht;return N&&(Ht={draggable:!0,onDragStart:dt,onDragEnd:st,onDragOver:ht,onDragEnter:Vt,onDragLeave:Se,onDrop:ie}),M("div",{role:"columnheader","aria-colindex":t.idx+1,"aria-colspan":e,"aria-rowspan":b,"aria-selected":o,"aria-sort":B,tabIndex:c?0:S,className:O,style:{...To(t,i,b),...ve(t,e)},onFocus:St,onClick:Ct,onKeyDown:R?ee:void 0,...Ht,children:[nt({column:t,sortDirection:m,priority:_,tabIndex:k}),F&&M("div",{className:$s,onClick:cl,onPointerDown:$})]})}d(Gl,"pi");h(Gl,"HeaderCell");function ro(t){let e=t.relatedTarget;return!t.currentTarget.contains(e)}d(ro,"zo");h(ro,"isEventPertinent");var Js="r1upfr807-0-0-beta-47",Nl=`rdg-row ${Js}`,Zs="r190mhd37-0-0-beta-47",Bo="rdg-row-selected",Qs="r139qu9m7-0-0-beta-47",ta="rdg-top-summary-row",ea="rdg-bottom-summary-row",ia="h10tskcx7-0-0-beta-47",Ul=`rdg-header-row ${ia}`;function Vl({rowIdx:t,columns:e,onColumnResize:i,onColumnsReorder:o,sortColumns:r,onSortColumnsChange:l,lastFrozenColumnIndex:n,selectedCellIdx:s,selectCell:a,shouldFocusGrid:c,direction:g}){let u=el(),f=[];for(let p=0;p<e.length;p++){let y=e[p],C=ft(y,n,{type:"HEADER"});C!==void 0&&(p+=C-1),f.push(M(Gl,{column:y,colSpan:C,rowIdx:t,isCellSelected:s===y.idx,onColumnResize:i,onColumnsReorder:o,onSortColumnsChange:l,sortColumns:r,selectCell:a,shouldFocusGrid:c&&p===0,direction:g,dragDropKey:u},y.key))}return M("div",{role:"row","aria-rowindex":t,className:Gt(Ul,s===-1&&Bo),children:f})}d(Vl,"wi");h(Vl,"HeaderRow");var oa=Jt(Vl);function $l({rowIdx:t,level:e,columns:i,selectedCellIdx:o,selectCell:r}){let l=[],n=new Set;for(let s of i){let{parent:a}=s;if(a!==void 0){for(;a.level>e&&a.parent!==void 0;)a=a.parent;if(a.level===e&&!n.has(a)){n.add(a);let{idx:c}=a;l.push(M(Fl,{column:a,rowIdx:t,isCellSelected:o===c,selectCell:r},c))}}}return M("div",{role:"row","aria-rowindex":t,className:Ul,children:l})}d($l,"xi");h($l,"GroupedColumnHeaderRow");var ra=Jt($l),la="c6ra8a37-0-0-beta-47",na=`rdg-cell-copied ${la}`,sa="cq910m07-0-0-beta-47",aa=`rdg-cell-dragged-over ${sa}`;function jl({column:t,colSpan:e,isCellSelected:i,isCopied:o,isDraggedOver:r,row:l,rowIdx:n,onClick:s,onDoubleClick:a,onContextMenu:c,onRowChange:g,selectCell:u,...f}){let{tabIndex:p,childTabIndex:y,onFocus:C}=$e(i),{cellClass:x}=t,b=Ve(t,typeof x=="function"?x(l):x,o&&na,r&&aa),S=Co(t,l);function k(_){u({rowIdx:n,idx:t.idx},_)}d(k,"z"),h(k,"selectCellWrapper");function I(_){if(s){let B=fe(_);if(s({row:l,column:t,selectCell:k},B),B.isGridDefaultPrevented())return}k()}d(I,"v"),h(I,"handleClick");function z(_){if(c){let B=fe(_);if(c({row:l,column:t,selectCell:k},B),B.isGridDefaultPrevented())return}k()}d(z,"S"),h(z,"handleContextMenu");function P(_){if(a){let B=fe(_);if(a({row:l,column:t,selectCell:k},B),B.isGridDefaultPrevented())return}k(!0)}d(P,"P"),h(P,"handleDoubleClick");function m(_){g(t,_)}return d(m,"b"),h(m,"handleRowChange"),M("div",{role:"gridcell","aria-colindex":t.idx+1,"aria-colspan":e,"aria-selected":i,"aria-readonly":!S||void 0,tabIndex:p,className:b,style:ve(t,e),onClick:I,onDoubleClick:P,onContextMenu:z,onFocus:C,...f,children:t.renderCell({column:t,row:l,rowIdx:n,isCellEditable:S,tabIndex:y,onRowChange:m})})}d(jl,"Di");h(jl,"Cell");var da=Jt(jl);function Yl({className:t,rowIdx:e,gridRowStart:i,selectedCellIdx:o,isRowSelectionDisabled:r,isRowSelected:l,copiedCellIdx:n,draggedOverCellIdx:s,lastFrozenColumnIndex:a,row:c,viewportColumns:g,selectedCellEditor:u,onCellClick:f,onCellDoubleClick:p,onCellContextMenu:y,rowClass:C,setDraggedOverRowIdx:x,onMouseEnter:b,onRowChange:S,selectCell:k,...I},z){let P=ct((R,F)=>{S(R,e,F)});function m(R){x?.(e),b?.(R)}d(m,"b"),h(m,"handleDragEnter"),t=Gt(Nl,`rdg-row-${e%2===0?"even":"odd"}`,C?.(c,e),t,o===-1&&Bo);let _=[];for(let R=0;R<g.length;R++){let F=g[R],{idx:N}=F,O=ft(F,a,{type:"ROW",row:c});O!==void 0&&(R+=O-1);let nt=o===N;nt&&u?_.push(u):_.push(M(da,{column:F,colSpan:O,row:c,rowIdx:e,isCopied:n===N,isDraggedOver:s===N,isCellSelected:nt,onClick:f,onDoubleClick:p,onContextMenu:y,onRowChange:P,selectCell:k},F.key))}let B=ut(()=>({isRowSelected:l,isRowSelectionDisabled:r}),[r,l]);return M(Ps,{value:B,children:M("div",{role:"row",ref:z,className:t,onMouseEnter:m,style:So(i),...I,children:_})})}d(Yl,"Pi");h(Yl,"Row");var ha=Jt(mo(Yl));function Xl(t,e){return M(ha,{...e},t)}d(Xl,"Hi");h(Xl,"defaultRenderRow");function Kl({scrollToPosition:{idx:t,rowIdx:e},gridElement:i,setScrollToCellPosition:o}){let r=vt(null);return we(()=>{Oe(r.current)}),we(()=>{function l(){o(null)}d(l,"i"),h(l,"removeScrollToCell");let n=new IntersectionObserver(l,{root:i,threshold:1});return n.observe(r.current),()=>{n.disconnect()}},[i,o]),M("div",{ref:r,style:{gridColumn:t===void 0?"1/-1":t+1,gridRow:e===void 0?"1/-1":e+2}})}d(Kl,"Fi");h(Kl,"ScrollToCell");var ca="a3ejtar7-0-0-beta-47",ua=`rdg-sort-arrow ${ca}`;function ql({sortDirection:t,priority:e}){return M(zt,{children:[Jl({sortDirection:t}),Zl({priority:e})]})}d(ql,"Mi");h(ql,"renderSortStatus");function Jl({sortDirection:t}){return t===void 0?null:M("svg",{viewBox:"0 0 12 8",width:"12",height:"8",className:ua,"aria-hidden":!0,children:M("path",{d:t==="ASC"?"M0 8 6 0 12 8":"M0 0 6 8 12 0"})})}d(Jl,"Ai");h(Jl,"renderSortIcon");function Zl({priority:t}){return t}d(Zl,"Oi");h(Zl,"renderSortPriority");var pa="rnvodz57-0-0-beta-47",ga=`rdg ${pa}`,_a="vlqv91k7-0-0-beta-47",fa=`rdg-viewport-dragging ${_a}`,ya="f1lsfrzw7-0-0-beta-47",ma="f1cte0lg7-0-0-beta-47",ba="s8wc6fl7-0-0-beta-47";function Ql({column:t,colSpan:e,row:i,rowIdx:o,isCellSelected:r,selectCell:l}){let{tabIndex:n,childTabIndex:s,onFocus:a}=$e(r),{summaryCellClass:c}=t,g=Ve(t,ba,typeof c=="function"?c(i):c);function u(){l({rowIdx:o,idx:t.idx})}return d(u,"s"),h(u,"onClick"),M("div",{role:"gridcell","aria-colindex":t.idx+1,"aria-colspan":e,"aria-selected":r,tabIndex:n,className:g,style:ve(t,e),onClick:u,onFocus:a,children:t.renderSummaryCell?.({column:t,row:i,tabIndex:s})})}d(Ql,"Bi");h(Ql,"SummaryCell");var wa=Jt(Ql),xa="skuhp557-0-0-beta-47",va="tf8l5ub7-0-0-beta-47",Ca=`rdg-summary-row ${xa}`;function tn({rowIdx:t,gridRowStart:e,row:i,viewportColumns:o,top:r,bottom:l,lastFrozenColumnIndex:n,selectedCellIdx:s,isTop:a,selectCell:c,"aria-rowindex":g}){let u=[];for(let f=0;f<o.length;f++){let p=o[f],y=ft(p,n,{type:"SUMMARY",row:i});y!==void 0&&(f+=y-1);let C=s===p.idx;u.push(M(wa,{column:p,colSpan:y,row:i,rowIdx:t,isCellSelected:C,selectCell:c},p.key))}return M("div",{role:"row","aria-rowindex":g,className:Gt(Nl,`rdg-row-${t%2===0?"even":"odd"}`,Ca,a?`${ta} ${va}`:ea,s===-1&&Bo),style:{...So(e),"--rdg-summary-row-top":r!==void 0?`${r}px`:void 0,"--rdg-summary-row-bottom":l!==void 0?`${l}px`:void 0},children:u})}d(tn,"Ji");h(tn,"SummaryRow");var Ur=Jt(tn);function en(t,e){let{columns:i,rows:o,topSummaryRows:r,bottomSummaryRows:l,rowKeyGetter:n,onRowsChange:s,rowHeight:a,headerRowHeight:c,summaryRowHeight:g,selectedRows:u,isRowSelectionDisabled:f,onSelectedRowsChange:p,sortColumns:y,onSortColumnsChange:C,defaultColumnOptions:x,onCellClick:b,onCellDoubleClick:S,onCellContextMenu:k,onCellKeyDown:I,onSelectedCellChange:z,onScroll:P,onColumnResize:m,onColumnsReorder:_,onFill:B,onCopy:R,onPaste:F,enableVirtualization:N,renderers:O,className:nt,style:$,rowClass:K,direction:Ct,role:St,"aria-label":ee,"aria-labelledby":dt,"aria-describedby":st,"aria-rowcount":ht,"data-testid":ie}=t,Vt=vi(),Se=St??"grid",Ht=a??35,L=c??(typeof Ht=="number"?Ht:35),X=g??(typeof Ht=="number"?Ht:35),mt=O?.renderRow??Vt?.renderRow??Xl,Wt=O?.renderSortStatus??Vt?.renderSortStatus??ql,Ze=O?.renderCheckbox??Vt?.renderCheckbox??wl,Qe=O?.noRowsFallback??Vt?.noRowsFallback,Te=N??!0,oe=Ct??"ltr",[re,ke]=et(0),[Ie,le]=et(0),[ne,Bi]=et(()=>new Map),[Pe,se]=et(()=>new Map),[ae,Yo]=et(null),[Xo,zn]=et(!1),[ze,Bn]=et(void 0),[ti,Ko]=et(null),qo=Ot(v=>ne.get(v.key)??Pe.get(v.key)??v.width,[Pe,ne]),[de,Jo,Zo,An]=Dl(),{columns:lt,colSpanColumns:Qo,lastFrozenColumnIndex:bt,headerRowsCount:$t,colOverscanStartIdx:Rn,colOverscanEndIdx:tr,templateColumns:Dn,layoutCssVars:Wn,totalFrozenColumnWidth:Mn}=Al({rawColumns:i,defaultColumnOptions:x,getColumnWidth:qo,scrollLeft:Ie,viewportWidth:Jo,enableVirtualization:Te}),Be=r?.length??0,he=l?.length??0,er=Be+he,ce=$t+Be,Ai=$t-1,gt=-ce,ei=gt+Ai,jt=o.length+he-1,[A,ue]=et(()=>({idx:-1,rowIdx:gt-1,mode:"SELECT"})),Ri=vt(A),ir=vt(ze),or=vt(-1),ii=vt(null),oi=vt(!1),Di=Se==="treegrid",Wi=$t*L,rr=er*X,ri=Zo-Wi-rr,Mi=u!=null&&p!=null,lr=oe==="rtl",En=lr?"ArrowRight":"ArrowLeft",nr=lr?"ArrowLeft":"ArrowRight",sr=ht??$t+o.length+er,Hn=ut(()=>({renderCheckbox:Ze,renderSortStatus:Wt}),[Ze,Wt]),Fn=ut(()=>{let v=!1,T=!1;if(n!=null&&u!=null&&u.size>0){for(let D of o)if(u.has(n(D))?v=!0:T=!0,v&&T)break}return{isRowSelected:v&&!T,isIndeterminate:v&&T}},[o,u,n]),{rowOverscanStartIdx:Ae,rowOverscanEndIdx:Re,totalRowHeight:Ei,gridTemplateRows:On,getRowTop:ar,getRowHeight:Ln,findRowIdx:dr}=Ml({rows:o,rowHeight:Ht,clientHeight:ri,scrollTop:re,enableVirtualization:Te}),Ft=Wl({columns:lt,colSpanColumns:Qo,colOverscanStartIdx:Rn,colOverscanEndIdx:tr,lastFrozenColumnIndex:bt,rowOverscanStartIdx:Ae,rowOverscanEndIdx:Re,rows:o,topSummaryRows:r,bottomSummaryRows:l}),{gridTemplateColumns:Gn,handleColumnResize:Nn}=Rl(lt,Ft,Dn,de,Jo,ne,Pe,Bi,se,m),Un=Di?-1:0,pe=lt.length-1,Hi=ni(A),li=Ui(A),Vn=L+Ei+rr+An,$n=ct(Nn),jn=ct(_),Yn=ct(C),Xn=ct(b),Kn=ct(S),qn=ct(k),Jn=ct(cr),Zn=ct(Li),Qn=ct(De),Fi=ct(ge),hr=ct(({idx:v,rowIdx:T})=>{ge({rowIdx:gt+T-1,idx:v})});we(()=>{if(!Hi||hi(A,Ri.current)){Ri.current=A;return}Ri.current=A,A.idx===-1&&(ii.current.focus({preventScroll:!0}),Oe(ii.current))}),we(()=>{oi.current&&(oi.current=!1,$i())}),tl(e,()=>({element:de.current,scrollToCell({idx:v,rowIdx:T}){let D=v!==void 0&&v>bt&&v<lt.length?v:void 0,W=T!==void 0&&Yt(T)?T:void 0;(D!==void 0||W!==void 0)&&Ko({idx:D,rowIdx:W})},selectCell:ge}));let Oi=Ot(v=>{Bn(v),ir.current=v},[]);function cr(v){if(!p)return;di(n);let T=new Set(u);for(let D of o){if(f?.(D)===!0)continue;let W=n(D);v.checked?T.add(W):T.delete(W)}p(T)}d(cr,"Sr"),h(cr,"selectHeaderRow");function Li(v){if(!p)return;di(n);let{row:T,checked:D,isShiftClick:W}=v;if(f?.(T)===!0)return;let U=new Set(u),j=n(T),q=or.current,Q=o.indexOf(T);if(or.current=Q,D?U.add(j):U.delete(j),W&&q!==-1&&q!==Q&&q<o.length){let _t=xs(Q-q);for(let Tt=q+_t;Tt!==Q;Tt+=_t){let kt=o[Tt];f?.(kt)!==!0&&(D?U.add(n(kt)):U.delete(n(kt)))}}p(U)}d(Li,"Mn"),h(Li,"selectRow");function ur(v){let{idx:T,rowIdx:D,mode:W}=A;if(W==="EDIT")return;if(I&&Yt(D)){let Q=o[D],_t=fe(v);if(I({mode:"SELECT",row:Q,column:lt[T],rowIdx:D,selectCell:ge},_t),_t.isGridDefaultPrevented())return}if(!(v.target instanceof Element))return;let U=v.target.closest(".rdg-cell")!==null,j=Di&&v.target===ii.current;if(!U&&!j)return;let{keyCode:q}=v;if(li&&(F!=null||R!=null)&&_i(v)){if(q===67){if(window.getSelection()?.isCollapsed===!1)return;gr();return}if(q===86){_r();return}}switch(v.key){case"Escape":Yo(null);return;case"ArrowUp":case"ArrowDown":case"ArrowLeft":case"ArrowRight":case"Tab":case"Home":case"End":case"PageUp":case"PageDown":Vi(v);break;default:fr(v);break}}d(ur,"Er"),h(ur,"handleKeyDown");function pr(v){let{scrollTop:T,scrollLeft:D}=v.currentTarget;gi(()=>{ke(T),le(vs(D))}),P?.(v)}d(pr,"Ir"),h(pr,"handleScroll");function De(v,T,D){if(typeof s!="function"||D===o[T])return;let W=[...o];W[T]=D,s(W,{indexes:[T],column:v})}d(De,"ht"),h(De,"updateRow");function Gi(){A.mode==="EDIT"&&De(lt[A.idx],A.rowIdx,A.row)}d(Gi,"An"),h(Gi,"commitEditorChanges");function gr(){let{idx:v,rowIdx:T}=A,D=o[T],W=lt[v].key;Yo({row:D,columnKey:W}),R?.({sourceRow:D,sourceColumnKey:W})}d(gr,"Dr"),h(gr,"handleCopy");function _r(){if(!F||!s||ae===null||!We(A))return;let{idx:v,rowIdx:T}=A,D=lt[v],W=o[T],U=F({sourceRow:ae.row,sourceColumnKey:ae.columnKey,targetRow:W,targetColumnKey:D.key});De(D,T,U)}d(_r,"Tr"),h(_r,"handlePaste");function fr(v){if(!li)return;let T=o[A.rowIdx],{key:D,shiftKey:W}=v;if(Mi&&W&&D===" "){di(n);let U=n(T);Li({row:T,checked:!u.has(U),isShiftClick:!1}),v.preventDefault();return}We(A)&&ul(v)&&ue(({idx:U,rowIdx:j})=>({idx:U,rowIdx:j,mode:"EDIT",row:T,originalRow:T}))}d(fr,"Pr"),h(fr,"handleCellInput");function Ni(v){return v>=Un&&v<=pe}d(Ni,"On"),h(Ni,"isColIdxWithinSelectionBounds");function Yt(v){return v>=0&&v<o.length}d(Yt,"Ne"),h(Yt,"isRowIdxWithinViewportBounds");function ni({idx:v,rowIdx:T}){return T>=gt&&T<=jt&&Ni(v)}d(ni,"jt"),h(ni,"isCellWithinSelectionBounds");function yr({idx:v,rowIdx:T}){return Yt(T)&&v>=0&&v<=pe}d(yr,"zr"),h(yr,"isCellWithinEditBounds");function Ui({idx:v,rowIdx:T}){return Yt(T)&&Ni(v)}d(Ui,"$n"),h(Ui,"isCellWithinViewportBounds");function We(v){return yr(v)&&_l({columns:lt,rows:o,selectedPosition:v})}d(We,"gt"),h(We,"isCellEditable");function ge(v,T){if(!ni(v))return;Gi();let D=o[v.rowIdx],W=hi(A,v);T&&We(v)?ue({...v,mode:"EDIT",row:D,originalRow:D}):W?Oe(lo(de.current)):(oi.current=!0,ue({...v,mode:"SELECT"})),z&&!W&&z({rowIdx:v.rowIdx,row:D,column:lt[v.idx]})}d(ge,"Xe"),h(ge,"selectCell");function mr(v,T,D){let{idx:W,rowIdx:U}=A,j=Hi&&W===-1;switch(v){case"ArrowUp":return{idx:W,rowIdx:U-1};case"ArrowDown":return{idx:W,rowIdx:U+1};case En:return{idx:W-1,rowIdx:U};case nr:return{idx:W+1,rowIdx:U};case"Tab":return{idx:W+(D?-1:1),rowIdx:U};case"Home":return j?{idx:W,rowIdx:gt}:{idx:0,rowIdx:T?gt:U};case"End":return j?{idx:W,rowIdx:jt}:{idx:pe,rowIdx:T?jt:U};case"PageUp":{if(A.rowIdx===gt)return A;let q=ar(U)+Ln(U)-ri;return{idx:W,rowIdx:q>0?dr(q):0}}case"PageDown":{if(A.rowIdx>=o.length)return A;let q=ar(U)+ri;return{idx:W,rowIdx:q<Ei?dr(q):o.length-1}}default:return A}}d(mr,"Hr"),h(mr,"getNextPosition");function Vi(v){let{key:T,shiftKey:D}=v,W="NONE";if(T==="Tab"){if(ml({shiftKey:D,maxColIdx:pe,minRowIdx:gt,maxRowIdx:jt,selectedPosition:A})){Gi();return}W="CHANGE_ROW"}v.preventDefault();let U=_i(v),j=mr(T,U,D);if(hi(A,j))return;let q=yl({moveUp:T==="ArrowUp",moveNext:T===nr||T==="Tab"&&!D,columns:lt,colSpanColumns:Qo,rows:o,topSummaryRows:r,bottomSummaryRows:l,minRowIdx:gt,mainHeaderRowIdx:ei,maxRowIdx:jt,lastFrozenColumnIndex:bt,cellNavigationMode:W,currentPosition:A,nextPosition:j,isCellWithinBounds:ni});ge(q)}d(Vi,"Wn"),h(Vi,"navigate");function br(v){if(ze===void 0)return;let{rowIdx:T}=A;return(T<ze?T<v&&v<=ze:T>v&&v>=ze)?A.idx:void 0}d(br,"Fr"),h(br,"getDraggedOverCellIdx");function $i(){let v=lo(de.current);v!==null&&(Oe(v),(v.querySelector('[tabindex="0"]')??v).focus({preventScroll:!0}))}d($i,"Un"),h($i,"focusCellOrCellContent");function wr(){if(B==null||A.mode==="EDIT"||!Ui(A))return;let{idx:v,rowIdx:T}=A,D=lt[v];if(D.renderEditCell==null||D.editable===!1)return;let W=qo(D);return M(El,{gridRowStart:ce+T+1,rows:o,column:D,columnWidth:W,maxColIdx:pe,isLastRow:T===jt,selectedPosition:A,isCellEditable:We,latestDraggedOverRowIdx:ir,onRowsChange:s,onClick:$i,onFill:B,setDragging:zn,setDraggedOverRowIdx:Oi})}d(wr,"Lr"),h(wr,"renderDragHandle");function xr(v){if(A.rowIdx!==v||A.mode==="SELECT")return;let{idx:T,row:D}=A,W=lt[T],U=ft(W,bt,{type:"ROW",row:D}),j=h(Q=>{oi.current=Q,ue(({idx:_t,rowIdx:Tt})=>({idx:_t,rowIdx:Tt,mode:"SELECT"}))},"closeEditor"),q=h((Q,_t,Tt)=>{_t?gi(()=>{De(W,A.rowIdx,Q),j(Tt)}):ue(kt=>({...kt,row:Q}))},"onRowChange");return o[A.rowIdx]!==A.originalRow&&j(!1),M(Hl,{column:W,colSpan:U,row:D,rowIdx:v,onRowChange:q,closeEditor:j,onKeyDown:I,navigate:Vi},W.key)}d(xr,"Nr"),h(xr,"getCellEditor");function _e(v){let T=A.idx===-1?void 0:lt[A.idx];return T!==void 0&&A.rowIdx===v&&!Ft.includes(T)?A.idx>tr?[...Ft,T]:[...Ft.slice(0,bt+1),T,...Ft.slice(bt+1)]:Ft}d(_e,"Ze"),h(_e,"getRowViewportColumns");function vr(){let v=[],{idx:T,rowIdx:D}=A,W=li&&D<Ae?Ae-1:Ae,U=li&&D>Re?Re+1:Re;for(let j=W;j<=U;j++){let q=j===Ae-1||j===Re+1,Q=q?D:j,_t=Ft,Tt=T===-1?void 0:lt[T];Tt!==void 0&&(q?_t=[Tt]:_t=_e(Q));let kt=o[Q],ts=ce+Q+1,ji=Q,Yi=!1;typeof n=="function"&&(ji=n(kt),Yi=u?.has(ji)??!1),v.push(mt(ji,{"aria-rowindex":ce+Q+1,"aria-selected":Mi?Yi:void 0,rowIdx:Q,row:kt,viewportColumns:_t,isRowSelectionDisabled:f?.(kt)??!1,isRowSelected:Yi,onCellClick:Xn,onCellDoubleClick:Kn,onCellContextMenu:qn,rowClass:K,gridRowStart:ts,copiedCellIdx:ae!==null&&ae.row===kt?lt.findIndex(es=>es.key===ae.columnKey):void 0,selectedCellIdx:D===Q?T:void 0,draggedOverCellIdx:br(Q),setDraggedOverRowIdx:Xo?Oi:void 0,lastFrozenColumnIndex:bt,onRowChange:Qn,selectCell:Fi,selectedCellEditor:xr(Q)}))}return v}d(vr,"Mr"),h(vr,"getViewportRows"),(A.idx>pe||A.rowIdx>jt)&&(ue({idx:-1,rowIdx:gt-1,mode:"SELECT"}),Oi(void 0));let si=`repeat(${$t}, ${L}px)`;Be>0&&(si+=` repeat(${Be}, ${X}px)`),o.length>0&&(si+=On),he>0&&(si+=` repeat(${he}, ${X}px)`);let Cr=A.idx===-1&&A.rowIdx!==gt-1;return M("div",{role:Se,"aria-label":ee,"aria-labelledby":dt,"aria-describedby":st,"aria-multiselectable":Mi?!0:void 0,"aria-colcount":lt.length,"aria-rowcount":sr,className:Gt(ga,nt,Xo&&fa),style:{...$,scrollPaddingInlineStart:A.idx>bt||ti?.idx!==void 0?`${Mn}px`:void 0,scrollPaddingBlock:Yt(A.rowIdx)||ti?.rowIdx!==void 0?`${Wi+Be*X}px ${he*X}px`:void 0,gridTemplateColumns:Gn,gridTemplateRows:si,"--rdg-header-row-height":`${L}px`,"--rdg-scroll-height":`${Vn}px`,...Wn},dir:oe,ref:de,onScroll:pr,onKeyDown:ur,"data-testid":ie,children:[M(Is,{value:Hn,children:[M(As,{value:Jn,children:M(Bs,{value:Fn,children:[Array.from({length:Ai},(v,T)=>M(ra,{rowIdx:T+1,level:-Ai+T,columns:_e(gt+T),selectedCellIdx:A.rowIdx===gt+T?A.idx:void 0,selectCell:hr},T)),M(oa,{rowIdx:$t,columns:_e(ei),onColumnResize:$n,onColumnsReorder:jn,sortColumns:y,onSortColumnsChange:Yn,lastFrozenColumnIndex:bt,selectedCellIdx:A.rowIdx===ei?A.idx:void 0,selectCell:hr,shouldFocusGrid:!Hi,direction:oe})]})}),o.length===0&&Qe?Qe:M(zt,{children:[r?.map((v,T)=>{let D=$t+1+T,W=ei+1+T,U=A.rowIdx===W,j=Wi+X*T;return M(Ur,{"aria-rowindex":D,rowIdx:W,gridRowStart:D,row:v,top:j,bottom:void 0,viewportColumns:_e(W),lastFrozenColumnIndex:bt,selectedCellIdx:U?A.idx:void 0,isTop:!0,selectCell:Fi},T)}),M(zs,{value:Zn,children:vr()}),l?.map((v,T)=>{let D=ce+o.length+T+1,W=o.length+T,U=A.rowIdx===W,j=ri>Ei?Zo-X*(l.length-T):void 0,q=j===void 0?X*(l.length-1-T):void 0;return M(Ur,{"aria-rowindex":sr-he+T+1,rowIdx:W,gridRowStart:D,row:v,top:j,bottom:q,viewportColumns:_e(W),lastFrozenColumnIndex:bt,selectedCellIdx:U?A.idx:void 0,isTop:!1,selectCell:Fi},T)})]})]}),wr(),gl(Ft),Di&&M("div",{ref:ii,tabIndex:Cr?0:-1,className:Gt(ya,Cr&&[Zs,bt!==-1&&Qs],!Yt(A.rowIdx)&&ma),style:{gridRowStart:A.rowIdx+ce+1}}),ti!==null&&M(Kl,{scrollToPosition:ti,setScrollToCellPosition:Ko,gridElement:de.current})]})}d(en,"Qi");h(en,"DataGrid");function lo(t){return t.querySelector(':scope > [role="row"] > [tabindex="0"]')}d(lo,"Fo");h(lo,"getCellToScroll");function hi(t,e){return t.idx===e.idx&&t.rowIdx===e.rowIdx}d(hi,"_n");h(hi,"isSamePosition");var Sa=mo(en),Ta="g1yxluv37-0-0-beta-47",Sh=`rdg-group-row ${Ta}`,ka="t7vyx3i7-0-0-beta-47",Th=`rdg-text-editor ${ka}`;function on(t){let e=ut(()=>t.columns(),[t,t.dataChecksum()]),i=ut(()=>t.data(),[t,t.dataChecksum()]);return[e,i]}d(on,"Jo");h(on,"useData");(function(){if(!document.getElementById("acd94ec7")){var t=document.createElement("style");t.id="acd94ec7",t.textContent=`@layer rdg {
|
|
2
|
+
@layer Defaults,
|
|
3
|
+
FocusSink,
|
|
4
|
+
CheckboxInput,
|
|
5
|
+
CheckboxIcon,
|
|
6
|
+
CheckboxLabel,
|
|
7
|
+
Cell,
|
|
8
|
+
HeaderCell,
|
|
9
|
+
SummaryCell,
|
|
10
|
+
EditCell,
|
|
11
|
+
Row,
|
|
12
|
+
HeaderRow,
|
|
13
|
+
SummaryRow,
|
|
14
|
+
GroupedRow,
|
|
15
|
+
Root;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.mlln6zg7-0-0-beta-47 {
|
|
19
|
+
@layer rdg.MeasuringCell {
|
|
20
|
+
contain: strict;
|
|
21
|
+
grid-row: 1;
|
|
22
|
+
visibility: hidden;
|
|
40
23
|
}
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
.cj343x07-0-0-beta-47 {
|
|
28
|
+
@layer rdg.Cell {
|
|
29
|
+
/* max-content does not work with size containment
|
|
30
|
+
* dynamically switching between different containment styles incurs a heavy relayout penalty
|
|
31
|
+
* Chromium bug: at odd zoom levels or subpixel positioning,
|
|
32
|
+
* layout/paint/style containment can make cell borders disappear
|
|
33
|
+
* https://bugs.chromium.org/p/chromium/issues/detail?id=1326946
|
|
34
|
+
*/
|
|
35
|
+
position: relative; /* needed for absolute positioning to work */
|
|
36
|
+
padding-block: 0;
|
|
37
|
+
padding-inline: 8px;
|
|
38
|
+
border-inline-end: 1px solid var(--rdg-border-color);
|
|
39
|
+
border-block-end: 1px solid var(--rdg-border-color);
|
|
40
|
+
grid-row-start: var(--rdg-grid-row-start);
|
|
41
|
+
align-content: center;
|
|
42
|
+
background-color: inherit;
|
|
41
43
|
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
require([parsedClassID.package], function (Package) {
|
|
52
|
-
var Widget = null;
|
|
53
|
-
if (Package && Package[parsedClassID.widgetID]) {
|
|
54
|
-
Widget = Package[parsedClassID.widgetID];
|
|
55
|
-
}
|
|
56
|
-
resolve(parsedClassID.memberWidgetID ? (Widget.prototype ? Widget.prototype[parsedClassID.memberWidgetID] : Widget[parsedClassID.memberWidgetID]) : Widget);
|
|
57
|
-
});
|
|
58
|
-
}
|
|
59
|
-
});
|
|
44
|
+
white-space: nowrap;
|
|
45
|
+
overflow: clip;
|
|
46
|
+
text-overflow: ellipsis;
|
|
47
|
+
outline: none;
|
|
48
|
+
|
|
49
|
+
&[aria-selected='true'] {
|
|
50
|
+
outline: 2px solid var(--rdg-selection-color);
|
|
51
|
+
outline-offset: -2px;
|
|
52
|
+
}
|
|
60
53
|
}
|
|
61
|
-
|
|
62
|
-
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
.csofj7r7-0-0-beta-47 {
|
|
57
|
+
@layer rdg.Cell {
|
|
58
|
+
position: sticky;
|
|
59
|
+
/* Should have a higher value than 0 to show up above unfrozen cells */
|
|
60
|
+
z-index: 1;
|
|
61
|
+
|
|
62
|
+
/* Add box-shadow on the last frozen cell */
|
|
63
|
+
&:nth-last-child(1 of &) {
|
|
64
|
+
box-shadow: var(--rdg-cell-frozen-box-shadow);
|
|
65
|
+
}
|
|
63
66
|
}
|
|
67
|
+
}
|
|
64
68
|
|
|
65
|
-
var Utility = /*#__PURE__*/Object.freeze({
|
|
66
|
-
__proto__: null,
|
|
67
|
-
requireWidget: requireWidget,
|
|
68
|
-
requireWidgets: requireWidgets
|
|
69
|
-
});
|
|
70
|
-
|
|
71
|
-
var MultiChart = /** @class */ (function (_super) {
|
|
72
|
-
__extends(MultiChart, _super);
|
|
73
|
-
function MultiChart() {
|
|
74
|
-
var _this = _super.call(this) || this;
|
|
75
|
-
_this._allCharts = {};
|
|
76
|
-
api.INDChart.call(_this);
|
|
77
|
-
api.IGraph.call(_this);
|
|
78
|
-
_this._tag = "div";
|
|
79
|
-
_this._allCharts = {};
|
|
80
|
-
_this._allChartTypes.forEach(function (item) {
|
|
81
|
-
var newItem = JSON.parse(JSON.stringify(item));
|
|
82
|
-
newItem.widget = null;
|
|
83
|
-
this._allCharts[item.id] = newItem;
|
|
84
|
-
this._allCharts[item.display] = newItem;
|
|
85
|
-
this._allCharts[item.widgetClass] = newItem;
|
|
86
|
-
}, _this);
|
|
87
|
-
_this._chartTypeDefaults = {};
|
|
88
|
-
_this._chartTypeProperties = {};
|
|
89
|
-
return _this;
|
|
90
|
-
}
|
|
91
|
-
MultiChart.prototype.fields = function (_) {
|
|
92
|
-
var retVal = _super.prototype.fields.apply(this, arguments);
|
|
93
|
-
if (this.chart()) {
|
|
94
|
-
if (!arguments.length)
|
|
95
|
-
return this.chart().fields();
|
|
96
|
-
this.chart().fields(_);
|
|
97
|
-
}
|
|
98
|
-
return retVal;
|
|
99
|
-
};
|
|
100
|
-
MultiChart.prototype.columns = function (_, asDefault) {
|
|
101
|
-
var retVal = common.HTMLWidget.prototype.columns.apply(this, arguments);
|
|
102
|
-
if (this.chart()) {
|
|
103
|
-
if (!arguments.length)
|
|
104
|
-
return this.chart().columns();
|
|
105
|
-
this.chart().columns(_, asDefault);
|
|
106
|
-
}
|
|
107
|
-
return retVal;
|
|
108
|
-
};
|
|
109
|
-
MultiChart.prototype.data = function (_) {
|
|
110
|
-
var retVal = common.HTMLWidget.prototype.data.apply(this, arguments);
|
|
111
|
-
if (this.chart()) {
|
|
112
|
-
if (!arguments.length)
|
|
113
|
-
return this.chart().data();
|
|
114
|
-
this.chart().data(_);
|
|
115
|
-
}
|
|
116
|
-
return retVal;
|
|
117
|
-
};
|
|
118
|
-
MultiChart.prototype.hasOverlay = function () {
|
|
119
|
-
return this.chart() && this.chart().hasOverlay();
|
|
120
|
-
};
|
|
121
|
-
MultiChart.prototype.visible = function (_) {
|
|
122
|
-
if (!arguments.length)
|
|
123
|
-
return this.chart() && this.chart().visible();
|
|
124
|
-
if (this.chart()) {
|
|
125
|
-
this.chart().visible(_);
|
|
126
|
-
}
|
|
127
|
-
return this;
|
|
128
|
-
};
|
|
129
|
-
MultiChart.prototype.chartTypeDefaults = function (_) {
|
|
130
|
-
if (!arguments.length)
|
|
131
|
-
return this._chartTypeDefaults;
|
|
132
|
-
this._chartTypeDefaults = _;
|
|
133
|
-
return this;
|
|
134
|
-
};
|
|
135
|
-
MultiChart.prototype.chartTypeProperties = function (_) {
|
|
136
|
-
if (!arguments.length)
|
|
137
|
-
return this._chartTypeProperties;
|
|
138
|
-
this._chartTypeProperties = _;
|
|
139
|
-
return this;
|
|
140
|
-
};
|
|
141
|
-
MultiChart.prototype.getChartDataFamily = function () {
|
|
142
|
-
return this._allCharts[this.chartType()].family;
|
|
143
|
-
};
|
|
144
|
-
MultiChart.prototype.requireContent = function (chartType, callback) {
|
|
145
|
-
var classInfo = common.Utility.parseClassID(this._allCharts[chartType].widgetClass);
|
|
146
|
-
switch (classInfo.package) {
|
|
147
|
-
case "@hpcc-js/chart":
|
|
148
|
-
require(["@hpcc-js/chart"], function (mod) {
|
|
149
|
-
callback(new mod[classInfo.widgetID]());
|
|
150
|
-
});
|
|
151
|
-
break;
|
|
152
|
-
case "@hpcc-js/dgrid":
|
|
153
|
-
require(["@hpcc-js/dgrid"], function (mod) {
|
|
154
|
-
callback(new mod[classInfo.widgetID]());
|
|
155
|
-
});
|
|
156
|
-
break;
|
|
157
|
-
default:
|
|
158
|
-
requireWidget(this._allCharts[chartType].widgetClass).then(function (WidgetClass) {
|
|
159
|
-
callback(new WidgetClass());
|
|
160
|
-
});
|
|
161
|
-
}
|
|
162
|
-
};
|
|
163
|
-
MultiChart.prototype.switchChart = function (callback) {
|
|
164
|
-
if (this._switchingTo === this.chartType()) {
|
|
165
|
-
if (callback) {
|
|
166
|
-
callback(this);
|
|
167
|
-
}
|
|
168
|
-
return;
|
|
169
|
-
}
|
|
170
|
-
else if (this._switchingTo) {
|
|
171
|
-
console.warn("Attempting switch to: " + this.chartType() + ", before previous switch is complete (" + this._switchingTo + ")");
|
|
172
|
-
}
|
|
173
|
-
this._switchingTo = this.chartType();
|
|
174
|
-
var oldContent = this.chart();
|
|
175
|
-
var context = this;
|
|
176
|
-
this.requireContent(this.chartType(), function (newContent) {
|
|
177
|
-
if (newContent !== oldContent) {
|
|
178
|
-
var size = context.size();
|
|
179
|
-
newContent
|
|
180
|
-
.fields(context.fields())
|
|
181
|
-
.data(context.data())
|
|
182
|
-
.size(size);
|
|
183
|
-
context.chart(newContent);
|
|
184
|
-
if (oldContent) {
|
|
185
|
-
oldContent
|
|
186
|
-
.size({ width: 1, height: 1 })
|
|
187
|
-
.render();
|
|
188
|
-
}
|
|
189
|
-
}
|
|
190
|
-
delete context._switchingTo;
|
|
191
|
-
if (callback) {
|
|
192
|
-
callback(this);
|
|
193
|
-
}
|
|
194
|
-
});
|
|
195
|
-
};
|
|
196
|
-
MultiChart.prototype.update = function (domNode, element) {
|
|
197
|
-
_super.prototype.update.call(this, domNode, element);
|
|
198
|
-
var content = element.selectAll(".multiChart").data(this.chart() ? [this.chart()] : [], function (d) { return d._id; });
|
|
199
|
-
content.enter().append("div")
|
|
200
|
-
.attr("class", "multiChart")
|
|
201
|
-
.each(function (d) {
|
|
202
|
-
d.target(this);
|
|
203
|
-
});
|
|
204
|
-
var currChart = this.chart();
|
|
205
|
-
if (currChart) {
|
|
206
|
-
for (var key in this._chartTypeDefaults) {
|
|
207
|
-
if (currChart[key + "_default"]) {
|
|
208
|
-
try {
|
|
209
|
-
currChart[key + "_default"](this._chartTypeDefaults[key]);
|
|
210
|
-
}
|
|
211
|
-
catch (e) {
|
|
212
|
-
console.warn("Exception Setting Default: " + key);
|
|
213
|
-
}
|
|
214
|
-
}
|
|
215
|
-
else {
|
|
216
|
-
console.warn("Unknown Default: " + key);
|
|
217
|
-
}
|
|
218
|
-
}
|
|
219
|
-
this._chartTypeDefaults = {};
|
|
220
|
-
for (var propKey in this._chartTypeProperties) {
|
|
221
|
-
if (currChart[propKey]) {
|
|
222
|
-
try {
|
|
223
|
-
currChart[propKey](this._chartTypeProperties[propKey]);
|
|
224
|
-
}
|
|
225
|
-
catch (e) {
|
|
226
|
-
console.warn("Exception Setting Property: " + propKey);
|
|
227
|
-
}
|
|
228
|
-
}
|
|
229
|
-
else {
|
|
230
|
-
console.warn("Unknown Property: " + propKey);
|
|
231
|
-
}
|
|
232
|
-
}
|
|
233
|
-
this._chartTypeProperties = {};
|
|
234
|
-
}
|
|
235
|
-
var context = this;
|
|
236
|
-
content
|
|
237
|
-
.each(function (d) { d.resize(context.size()); });
|
|
238
|
-
content.exit().transition()
|
|
239
|
-
.each(function (d) { d.target(null); })
|
|
240
|
-
.remove();
|
|
241
|
-
};
|
|
242
|
-
MultiChart.prototype.exit = function (domNode, element) {
|
|
243
|
-
if (this._chartMonitor) {
|
|
244
|
-
this._chartMonitor.remove();
|
|
245
|
-
delete this._chartMonitor;
|
|
246
|
-
}
|
|
247
|
-
if (this.chart()) {
|
|
248
|
-
this.chart().target(null);
|
|
249
|
-
}
|
|
250
|
-
_super.prototype.exit.call(this, domNode, element);
|
|
251
|
-
};
|
|
252
|
-
MultiChart.prototype.render = function (_callback) {
|
|
253
|
-
if (this.chartType() && (!this.chart() || (this.chart().classID() !== this._allCharts[this.chartType()].widgetClass))) {
|
|
254
|
-
var context_1 = this;
|
|
255
|
-
var args_1 = arguments;
|
|
256
|
-
this.switchChart(function () {
|
|
257
|
-
common.HTMLWidget.prototype.render.apply(context_1, args_1);
|
|
258
|
-
});
|
|
259
|
-
return this;
|
|
260
|
-
}
|
|
261
|
-
return common.HTMLWidget.prototype.render.apply(this, arguments);
|
|
262
|
-
};
|
|
263
|
-
return MultiChart;
|
|
264
|
-
}(common.HTMLWidget));
|
|
265
|
-
MultiChart.prototype._class += " composite_MultiChart";
|
|
266
|
-
MultiChart.prototype.implements(api.INDChart.prototype);
|
|
267
|
-
MultiChart.prototype.implements(api.IGraph.prototype);
|
|
268
|
-
MultiChart.prototype._otherChartTypes = [
|
|
269
|
-
{ id: "FORM", display: "Form", widgetClass: "form_FieldForm" }
|
|
270
|
-
].map(function (item) { item.family = "other"; return item; });
|
|
271
|
-
MultiChart.prototype._graphChartTypes = [
|
|
272
|
-
{ id: "GRAPH", display: "Graph", widgetClass: "graph_Graph" },
|
|
273
|
-
{ id: "ADJACENCY_GRAPH", display: "Graph", widgetClass: "graph_AdjacencyGraph" },
|
|
274
|
-
{ id: "GRAPHC", display: "GraphC", widgetClass: "graph_GraphC" }
|
|
275
|
-
].map(function (item) { item.family = "GRAPH"; return item; });
|
|
276
|
-
MultiChart.prototype._1DChartTypes = [].map(function (item) { item.family = "1D"; return item; });
|
|
277
|
-
MultiChart.prototype._2DChartTypes = [
|
|
278
|
-
{ id: "SUMMARY", display: "Summary", widgetClass: "chart_Summary" },
|
|
279
|
-
{ id: "BUBBLE", display: "Bubble", widgetClass: "chart_Bubble" },
|
|
280
|
-
{ id: "PIE", display: "Pie", widgetClass: "chart_Pie" },
|
|
281
|
-
{ id: "WORD_CLOUD", display: "Word Cloud", widgetClass: "other_WordCloud" }
|
|
282
|
-
].map(function (item) { item.family = "2D"; return item; });
|
|
283
|
-
MultiChart.prototype._NDChartTypes = [
|
|
284
|
-
{ id: "COLUMN", display: "Column", widgetClass: "chart_Column" },
|
|
285
|
-
{ id: "BAR", display: "Bar", widgetClass: "chart_Bar" },
|
|
286
|
-
{ id: "LINE", display: "Line", widgetClass: "chart_Line" },
|
|
287
|
-
{ id: "AREA", display: "Area", widgetClass: "chart_Area" },
|
|
288
|
-
{ id: "STEP", display: "Step", widgetClass: "chart_Step" },
|
|
289
|
-
{ id: "SCATTER", display: "Scatter", widgetClass: "chart_Scatter" },
|
|
290
|
-
{ id: "HEXBIN", display: "Hex Bin", widgetClass: "chart_HexBin" }
|
|
291
|
-
].map(function (item) { item.family = "ND"; return item; });
|
|
292
|
-
MultiChart.prototype._mapChartTypes = [
|
|
293
|
-
{ id: "CHORO_USSTATES", display: "US State Choropleth", widgetClass: "map_ChoroplethStates" },
|
|
294
|
-
{ id: "CHORO_USCOUNTIES", display: "US County Choropleth", widgetClass: "map_ChoroplethCounties" },
|
|
295
|
-
{ id: "CHORO_COUNTRIES", display: "Country Choropleth", widgetClass: "map_ChoroplethCountries" },
|
|
296
|
-
{ id: "GMAP_CHORO_USCOUNTIES", display: "Google Map US County Choropleth", widgetClass: "map_GMapCounties" },
|
|
297
|
-
{ id: "GOOGLE_MAP", display: "Google Map", widgetClass: "map_GMapLayered" },
|
|
298
|
-
{ id: "OPENSTREET", display: "Open Street Map", widgetClass: "map_OpenStreet" }
|
|
299
|
-
].map(function (item) { item.family = "map"; return item; });
|
|
300
|
-
MultiChart.prototype._anyChartTypes = [
|
|
301
|
-
{ id: "TABLE", display: "Table", widgetClass: "dgrid_Table" },
|
|
302
|
-
{ id: "TABLE_LEGACY", display: "Table (legacy)", widgetClass: "other_Table" },
|
|
303
|
-
{ id: "TABLE_NESTED", display: "Nested Table", widgetClass: "other_NestedTable" },
|
|
304
|
-
{ id: "TABLE_CALENDAR", display: "Table driven Calendar Heat Map", widgetClass: "other_CalendarHeatMap" },
|
|
305
|
-
{ id: "TABLE_BULLET", display: "Table driven bullet chart", widgetClass: "chart_Bullet" },
|
|
306
|
-
{ id: "TABLE_SELECT", display: "Table driven select", widgetClass: "other_Select" },
|
|
307
|
-
{ id: "TABLE_AUTOCOMPLETE", display: "Table driven auto complete", widgetClass: "other_AutoCompleteText" },
|
|
308
|
-
{ id: "TABLE_OPPORTUNITY", display: "Table driven opportunity widget", widgetClass: "graph_Opportunity" },
|
|
309
|
-
{ id: "TABLE_TREE", display: "Table driven tree", widgetClass: "tree_Dendrogram" },
|
|
310
|
-
{ id: "TABLE_TREEMAP", display: "Table driven Treemap", widgetClass: "tree_Treemap" },
|
|
311
|
-
{ id: "TABLE_SANKEY", display: "Table driven Sankey", widgetClass: "graph_Sankey" },
|
|
312
|
-
{ id: "TABLE_GMAP_PIN", display: "Table driven Google Map (pins)", widgetClass: "map_GMapPin" },
|
|
313
|
-
{ id: "TABLE_GMAP_PINLINE", display: "Table driven Google Map (pins/lines)", widgetClass: "map_GMapPinLine" },
|
|
314
|
-
{ id: "TABLE_XML_TREE", display: "Table driven XML Tree", widgetClass: "tree_Indented" }
|
|
315
|
-
].map(function (item) { item.family = "any"; return item; });
|
|
316
|
-
MultiChart.prototype._allChartTypes =
|
|
317
|
-
MultiChart.prototype._otherChartTypes.concat(MultiChart.prototype._graphChartTypes.concat(MultiChart.prototype._1DChartTypes.concat(MultiChart.prototype._2DChartTypes.concat(MultiChart.prototype._NDChartTypes.concat(MultiChart.prototype._mapChartTypes.concat(MultiChart.prototype._anyChartTypes))))));
|
|
318
|
-
MultiChart.prototype._allMap = common.map(MultiChart.prototype._allChartTypes, function (item) { return item.family; });
|
|
319
|
-
MultiChart.prototype._allFamilies = MultiChart.prototype._allMap.keys();
|
|
320
|
-
MultiChart.prototype._allChartTypesMap = {};
|
|
321
|
-
MultiChart.prototype._allChartTypesByClass = {};
|
|
322
|
-
MultiChart.prototype._allChartTypes.forEach(function (item) {
|
|
323
|
-
item.widgetPath = common.Utility.widgetPath(item.widgetClass);
|
|
324
|
-
MultiChart.prototype._allChartTypesMap[item.id] = item;
|
|
325
|
-
MultiChart.prototype._allChartTypesByClass[item.widgetClass] = item;
|
|
326
|
-
});
|
|
327
|
-
MultiChart.prototype.publishReset();
|
|
328
|
-
MultiChart.prototype.publish("hideRowOnLegendClick", false, "boolean", "Enable/Disable hiding row on legend clicks", null, { tags: ["Basic"] });
|
|
329
|
-
MultiChart.prototype.publish("chartType", "BUBBLE", "set", "Chart Type", MultiChart.prototype._allChartTypes.map(function (item) { return item.id; }), { tags: ["Basic"] });
|
|
330
|
-
MultiChart.prototype.publish("chart", null, "widget", "Chart", null, { tags: ["Basic"] });
|
|
331
|
-
var _origChart = MultiChart.prototype.chart;
|
|
332
|
-
MultiChart.prototype.chart = function (_) {
|
|
333
|
-
var retVal = _origChart.apply(this, arguments);
|
|
334
|
-
if (arguments.length) {
|
|
335
|
-
var context_2 = this;
|
|
336
|
-
if (this._allChartTypesByClass[_.classID()]) {
|
|
337
|
-
this.chartType(this._allChartTypesByClass[_.classID()].id);
|
|
338
|
-
}
|
|
339
|
-
else {
|
|
340
|
-
console.warn("Unknown Class ID: " + _.classID());
|
|
341
|
-
}
|
|
342
|
-
_.click = function (_row, _column, _selected) {
|
|
343
|
-
context_2.click.apply(context_2, arguments);
|
|
344
|
-
};
|
|
345
|
-
_.dblclick = function (_row, _column, _selected) {
|
|
346
|
-
context_2.dblclick.apply(context_2, arguments);
|
|
347
|
-
};
|
|
348
|
-
_.vertex_click = function (row, column, selected, more) {
|
|
349
|
-
context_2.vertex_click.apply(context_2, arguments);
|
|
350
|
-
};
|
|
351
|
-
_.vertex_dblclick = function (row, column, selected, more) {
|
|
352
|
-
context_2.vertex_dblclick.apply(context_2, arguments);
|
|
353
|
-
};
|
|
354
|
-
_.edge_click = function (row, column, selected, more) {
|
|
355
|
-
context_2.edge_click.apply(context_2, arguments);
|
|
356
|
-
};
|
|
357
|
-
_.edge_dblclick = function (row, column, selected, more) {
|
|
358
|
-
context_2.edge_dblclick.apply(context_2, arguments);
|
|
359
|
-
};
|
|
360
|
-
if (this._chartMonitor) {
|
|
361
|
-
this._chartMonitor.remove();
|
|
362
|
-
delete this._chartMonitor;
|
|
363
|
-
}
|
|
364
|
-
this._chartMonitor = _.monitor(function (key, newVal, oldVal) {
|
|
365
|
-
context_2.broadcast(key, newVal, oldVal, _);
|
|
366
|
-
});
|
|
367
|
-
}
|
|
368
|
-
return retVal;
|
|
369
|
-
};
|
|
370
69
|
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
70
|
+
.c1bn88vv7-0-0-beta-47 {
|
|
71
|
+
@layer rdg.CheckboxInput {
|
|
72
|
+
display: block;
|
|
73
|
+
margin: auto;
|
|
74
|
+
inline-size: 20px;
|
|
75
|
+
block-size: 20px;
|
|
374
76
|
|
|
375
|
-
|
|
77
|
+
&:focus-visible {
|
|
78
|
+
outline: 2px solid var(--rdg-checkbox-focus-color);
|
|
79
|
+
outline-offset: -3px;
|
|
80
|
+
}
|
|
376
81
|
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
82
|
+
&:enabled {
|
|
83
|
+
cursor: pointer;
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
}
|
|
380
87
|
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
88
|
+
|
|
89
|
+
.g1s9ylgp7-0-0-beta-47 {
|
|
90
|
+
@layer rdg.GroupCellContent {
|
|
91
|
+
outline: none;
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
.cz54e4y7-0-0-beta-47 {
|
|
96
|
+
@layer rdg.GroupCellCaret {
|
|
97
|
+
margin-inline-start: 4px;
|
|
98
|
+
stroke: currentColor;
|
|
99
|
+
stroke-width: 1.5px;
|
|
100
|
+
fill: transparent;
|
|
101
|
+
vertical-align: middle;
|
|
102
|
+
|
|
103
|
+
> path {
|
|
104
|
+
transition: d 0.1s;
|
|
389
105
|
}
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
|
|
110
|
+
.c1w9bbhr7-0-0-beta-47 {
|
|
111
|
+
@layer rdg.DragHandle {
|
|
112
|
+
--rdg-drag-handle-size: 8px;
|
|
113
|
+
z-index: 0;
|
|
114
|
+
cursor: move;
|
|
115
|
+
inline-size: var(--rdg-drag-handle-size);
|
|
116
|
+
block-size: var(--rdg-drag-handle-size);
|
|
117
|
+
background-color: var(--rdg-selection-color);
|
|
118
|
+
place-self: end;
|
|
390
119
|
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
120
|
+
&:hover {
|
|
121
|
+
--rdg-drag-handle-size: 16px;
|
|
122
|
+
border: 2px solid var(--rdg-selection-color);
|
|
123
|
+
background-color: var(--rdg-background-color);
|
|
395
124
|
}
|
|
396
125
|
}
|
|
126
|
+
}
|
|
397
127
|
|
|
398
|
-
|
|
399
|
-
|
|
128
|
+
.c1creorc7-0-0-beta-47 {
|
|
129
|
+
@layer rdg.DragHandle {
|
|
130
|
+
z-index: 1;
|
|
131
|
+
position: sticky;
|
|
132
|
+
}
|
|
133
|
+
}
|
|
400
134
|
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
.title("Dermatology");
|
|
471
|
-
_this._propEditor = new other.PropertyEditor()
|
|
472
|
-
.show_settings(true);
|
|
473
|
-
return _this;
|
|
135
|
+
|
|
136
|
+
.cis5rrm7-0-0-beta-47 {
|
|
137
|
+
@layer rdg.EditCell {
|
|
138
|
+
padding: 0;
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
|
|
143
|
+
.h44jtk67-0-0-beta-47 {
|
|
144
|
+
@layer rdg.SortableHeaderCell {
|
|
145
|
+
display: flex;
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
.hcgkhxz7-0-0-beta-47 {
|
|
150
|
+
@layer rdg.SortableHeaderCellName {
|
|
151
|
+
flex-grow: 1;
|
|
152
|
+
overflow: clip;
|
|
153
|
+
text-overflow: ellipsis;
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
|
|
158
|
+
.c6l2wv17-0-0-beta-47 {
|
|
159
|
+
@layer rdg.HeaderCell {
|
|
160
|
+
cursor: pointer;
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
.c1kqdw7y7-0-0-beta-47 {
|
|
165
|
+
@layer rdg.HeaderCell {
|
|
166
|
+
touch-action: none;
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
.r1y6ywlx7-0-0-beta-47 {
|
|
171
|
+
@layer rdg.HeaderCell {
|
|
172
|
+
cursor: col-resize;
|
|
173
|
+
position: absolute;
|
|
174
|
+
inset-block-start: 0;
|
|
175
|
+
inset-inline-end: 0;
|
|
176
|
+
inset-block-end: 0;
|
|
177
|
+
inline-size: 10px;
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
.c1bezg5o7-0-0-beta-47 {
|
|
182
|
+
opacity: 0.5;
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
.c1vc96037-0-0-beta-47 {
|
|
186
|
+
background-color: var(--rdg-header-draggable-background-color);
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
|
|
190
|
+
.r1upfr807-0-0-beta-47 {
|
|
191
|
+
@layer rdg.Row {
|
|
192
|
+
display: contents;
|
|
193
|
+
background-color: var(--rdg-background-color);
|
|
194
|
+
|
|
195
|
+
&:hover {
|
|
196
|
+
background-color: var(--rdg-row-hover-background-color);
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
&[aria-selected='true'] {
|
|
200
|
+
background-color: var(--rdg-row-selected-background-color);
|
|
201
|
+
|
|
202
|
+
&:hover {
|
|
203
|
+
background-color: var(--rdg-row-selected-hover-background-color);
|
|
474
204
|
}
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
205
|
+
}
|
|
206
|
+
}
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
.r190mhd37-0-0-beta-47 {
|
|
210
|
+
@layer rdg.FocusSink {
|
|
211
|
+
outline: 2px solid var(--rdg-selection-color);
|
|
212
|
+
outline-offset: -2px;
|
|
213
|
+
}
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
.r139qu9m7-0-0-beta-47 {
|
|
217
|
+
@layer rdg.FocusSink {
|
|
218
|
+
&::before {
|
|
219
|
+
content: '';
|
|
220
|
+
display: inline-block;
|
|
221
|
+
block-size: 100%;
|
|
222
|
+
position: sticky;
|
|
223
|
+
inset-inline-start: 0;
|
|
224
|
+
border-inline-start: 2px solid var(--rdg-selection-color);
|
|
225
|
+
}
|
|
226
|
+
}
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
|
|
230
|
+
.h10tskcx7-0-0-beta-47 {
|
|
231
|
+
@layer rdg.HeaderRow {
|
|
232
|
+
display: contents;
|
|
233
|
+
background-color: var(--rdg-header-background-color);
|
|
234
|
+
font-weight: bold;
|
|
235
|
+
|
|
236
|
+
& > .cj343x07-0-0-beta-47 {
|
|
237
|
+
/* Should have a higher value than 1 to show up above regular cells and the focus sink */
|
|
238
|
+
z-index: 2;
|
|
239
|
+
position: sticky;
|
|
240
|
+
}
|
|
241
|
+
|
|
242
|
+
& > .csofj7r7-0-0-beta-47 {
|
|
243
|
+
z-index: 3;
|
|
244
|
+
}
|
|
245
|
+
}
|
|
246
|
+
}
|
|
247
|
+
|
|
248
|
+
|
|
249
|
+
.c6ra8a37-0-0-beta-47 {
|
|
250
|
+
@layer rdg.Cell {
|
|
251
|
+
background-color: #ccccff;
|
|
252
|
+
}
|
|
253
|
+
}
|
|
254
|
+
|
|
255
|
+
.cq910m07-0-0-beta-47 {
|
|
256
|
+
@layer rdg.Cell {
|
|
257
|
+
background-color: #ccccff;
|
|
258
|
+
|
|
259
|
+
&.c6ra8a37-0-0-beta-47 {
|
|
260
|
+
background-color: #9999ff;
|
|
261
|
+
}
|
|
262
|
+
}
|
|
263
|
+
}
|
|
264
|
+
|
|
265
|
+
|
|
266
|
+
.a3ejtar7-0-0-beta-47 {
|
|
267
|
+
@layer rdg.SortIcon {
|
|
268
|
+
fill: currentColor;
|
|
269
|
+
|
|
270
|
+
> path {
|
|
271
|
+
transition: d 0.1s;
|
|
272
|
+
}
|
|
273
|
+
}
|
|
274
|
+
}
|
|
275
|
+
|
|
276
|
+
|
|
277
|
+
.rnvodz57-0-0-beta-47 {
|
|
278
|
+
@layer rdg.Defaults {
|
|
279
|
+
*,
|
|
280
|
+
*::before,
|
|
281
|
+
*::after {
|
|
282
|
+
box-sizing: inherit;
|
|
283
|
+
}
|
|
284
|
+
}
|
|
285
|
+
|
|
286
|
+
@layer rdg.Root {
|
|
287
|
+
--rdg-color: #000; --rdg-border-color: #ddd; --rdg-summary-border-color: #aaa; --rdg-background-color: hsl(0deg 0% 100%); --rdg-header-background-color: hsl(0deg 0% 97.5%); --rdg-header-draggable-background-color: hsl(0deg 0% 90.5%); --rdg-row-hover-background-color: hsl(0deg 0% 96%); --rdg-row-selected-background-color: hsl(207deg 76% 92%); --rdg-row-selected-hover-background-color: hsl(207deg 76% 88%); --rdg-checkbox-focus-color: hsl(207deg 100% 69%);
|
|
288
|
+
--rdg-selection-color: #66afe9;
|
|
289
|
+
--rdg-font-size: 14px;
|
|
290
|
+
--rdg-cell-frozen-box-shadow: 2px 0 5px -2px rgba(136, 136, 136, 0.3);
|
|
291
|
+
|
|
292
|
+
&:dir(rtl) {
|
|
293
|
+
--rdg-cell-frozen-box-shadow: -2px 0 5px -2px rgba(136, 136, 136, 0.3);
|
|
294
|
+
}
|
|
295
|
+
|
|
296
|
+
display: grid;
|
|
297
|
+
|
|
298
|
+
color-scheme: var(--rdg-color-scheme, light dark);
|
|
299
|
+
accent-color: light-dark(hsl(207deg 100% 29%), hsl(207deg 100% 79%));
|
|
300
|
+
|
|
301
|
+
/* https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Positioning/Understanding_z_index/The_stacking_context */
|
|
302
|
+
/* We set a stacking context so internal elements don't render on top of external elements. */
|
|
303
|
+
/* size containment is not used as it could break "width: min-content" for example, and the grid would infinitely resize on Chromium browsers */
|
|
304
|
+
contain: content;
|
|
305
|
+
content-visibility: auto;
|
|
306
|
+
block-size: 350px;
|
|
307
|
+
border: 1px solid var(--rdg-border-color);
|
|
308
|
+
box-sizing: border-box;
|
|
309
|
+
overflow: auto;
|
|
310
|
+
background-color: var(--rdg-background-color);
|
|
311
|
+
color: var(--rdg-color);
|
|
312
|
+
font-size: var(--rdg-font-size);
|
|
313
|
+
|
|
314
|
+
/* needed on Firefox to fix scrollbars */
|
|
315
|
+
&::before {
|
|
316
|
+
content: '';
|
|
317
|
+
grid-column: 1/-1;
|
|
318
|
+
grid-row: 1/-1;
|
|
319
|
+
}
|
|
320
|
+
|
|
321
|
+
&.rdg-dark {
|
|
322
|
+
--rdg-color-scheme: dark;
|
|
323
|
+
--rdg-color: #ddd; --rdg-border-color: #444; --rdg-summary-border-color: #555; --rdg-background-color: hsl(0deg 0% 13%); --rdg-header-background-color: hsl(0deg 0% 10.5%); --rdg-header-draggable-background-color: hsl(0deg 0% 17.5%); --rdg-row-hover-background-color: hsl(0deg 0% 9%); --rdg-row-selected-background-color: hsl(207deg 76% 42%); --rdg-row-selected-hover-background-color: hsl(207deg 76% 38%); --rdg-checkbox-focus-color: hsl(207deg 100% 89%);
|
|
324
|
+
}
|
|
325
|
+
|
|
326
|
+
&.rdg-light {
|
|
327
|
+
--rdg-color-scheme: light;
|
|
328
|
+
}
|
|
329
|
+
|
|
330
|
+
@media (prefers-color-scheme: dark) {
|
|
331
|
+
&:not(.rdg-light) {
|
|
332
|
+
--rdg-color: #ddd; --rdg-border-color: #444; --rdg-summary-border-color: #555; --rdg-background-color: hsl(0deg 0% 13%); --rdg-header-background-color: hsl(0deg 0% 10.5%); --rdg-header-draggable-background-color: hsl(0deg 0% 17.5%); --rdg-row-hover-background-color: hsl(0deg 0% 9%); --rdg-row-selected-background-color: hsl(207deg 76% 42%); --rdg-row-selected-hover-background-color: hsl(207deg 76% 38%); --rdg-checkbox-focus-color: hsl(207deg 100% 89%);
|
|
569
333
|
}
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
};
|
|
576
|
-
MegaChart.prototype.chartTypeDefaults = function (_) {
|
|
577
|
-
if (!arguments.length)
|
|
578
|
-
return this._chart.chartTypeDefaults();
|
|
579
|
-
this._chart.chartTypeDefaults(_);
|
|
580
|
-
return this;
|
|
581
|
-
};
|
|
582
|
-
MegaChart.prototype.chartTypeProperties = function (_) {
|
|
583
|
-
if (!arguments.length)
|
|
584
|
-
return this._chart.chartTypeProperties();
|
|
585
|
-
this._chart.chartTypeProperties(_);
|
|
586
|
-
return this;
|
|
587
|
-
};
|
|
588
|
-
MegaChart.prototype.fields = function (_) {
|
|
589
|
-
if (!arguments.length)
|
|
590
|
-
return this._chart.fields();
|
|
591
|
-
this._chart.fields(_);
|
|
592
|
-
return this;
|
|
593
|
-
};
|
|
594
|
-
MegaChart.prototype.columns = function (_, asDefault) {
|
|
595
|
-
if (!arguments.length)
|
|
596
|
-
return this._chart.columns();
|
|
597
|
-
this._chart.columns(_, asDefault);
|
|
598
|
-
return this;
|
|
599
|
-
};
|
|
600
|
-
MegaChart.prototype.data = function (_) {
|
|
601
|
-
if (!arguments.length)
|
|
602
|
-
return this._chart.data();
|
|
603
|
-
this._chart.data(_);
|
|
604
|
-
return this;
|
|
605
|
-
};
|
|
606
|
-
MegaChart.prototype.downloadCSV = function () {
|
|
607
|
-
common.Utility.downloadString("CSV", this._chart.export("CSV"));
|
|
608
|
-
return this;
|
|
609
|
-
};
|
|
610
|
-
MegaChart.prototype.enter = function (domNode, element) {
|
|
611
|
-
_super.prototype.enter.call(this, domNode, element);
|
|
612
|
-
var context = this;
|
|
613
|
-
this.topShrinkWrap(false).topPercentage(0).topSize(30);
|
|
614
|
-
this._dataCount = new other.Html()
|
|
615
|
-
.classed({ "composite_MegaChart-dataCount": true })
|
|
616
|
-
.id(this.id() + "_dataCount")
|
|
617
|
-
.html('<span class="MegaChart-dataCount-label">Count:</span> <span class="MegaChart-dataCount-value">' + (this.data() ? this.data().length : "0") + "</span>")
|
|
618
|
-
.overflowX("visible")
|
|
619
|
-
.overflowY("visible");
|
|
620
|
-
this._csvButton = new form.Button()
|
|
621
|
-
.classed({ "composite_MegaChart-CSV": true })
|
|
622
|
-
.id(this.id() + "_csv")
|
|
623
|
-
.value("CSV");
|
|
624
|
-
this._csvButton.click = function (a) {
|
|
625
|
-
context.downloadCSV();
|
|
626
|
-
};
|
|
627
|
-
this._infoButton = new form.Button()
|
|
628
|
-
.classed({ "composite_MegaChart-Info": true })
|
|
629
|
-
.id(this.id() + "_info")
|
|
630
|
-
.value(this.infoIcon());
|
|
631
|
-
this._maximizeButton = new form.Button()
|
|
632
|
-
.classed({ "composite_MegaChart-Maximize": true })
|
|
633
|
-
.id(this.id() + "_maximize")
|
|
634
|
-
.value("\uf2d0");
|
|
635
|
-
this._maximizeButton.click = function (buttonWidget) {
|
|
636
|
-
var target = context.target();
|
|
637
|
-
var node = target;
|
|
638
|
-
var isMaximized = common.select(target).classed("__hpccisMaximized");
|
|
639
|
-
// Find the layout_Grid ancestor
|
|
640
|
-
var parentGrid = context.locateAncestor("layout_Grid");
|
|
641
|
-
if (parentGrid) {
|
|
642
|
-
node = parentGrid.element().node();
|
|
643
|
-
}
|
|
644
|
-
else {
|
|
645
|
-
node = document.body;
|
|
646
|
-
}
|
|
647
|
-
var targetElement = common.select(context.target());
|
|
648
|
-
if (isMaximized) {
|
|
649
|
-
// Restore from maximized to natural size/position
|
|
650
|
-
var targetParentBox_1 = target.parentElement.getBoundingClientRect();
|
|
651
|
-
var targetPaddingTop_1 = parseInt(getComputedStyle(target, null).getPropertyValue("padding-top").replace("px", ""));
|
|
652
|
-
var targetPaddingLeft_1 = parseInt(getComputedStyle(target, null).getPropertyValue("padding-left").replace("px", ""));
|
|
653
|
-
var targetPaddingRight_1 = parseInt(getComputedStyle(target, null).getPropertyValue("padding-right").replace("px", ""));
|
|
654
|
-
var targetPaddingBottom_1 = parseInt(getComputedStyle(target, null).getPropertyValue("padding-bottom").replace("px", ""));
|
|
655
|
-
context.contentDiv.style("opacity", 0).transition(100);
|
|
656
|
-
targetElement.transition() // .duration(3000)
|
|
657
|
-
.style("top", targetParentBox_1.top + "px")
|
|
658
|
-
.style("left", targetParentBox_1.left + "px")
|
|
659
|
-
.style("width", (targetParentBox_1.width - targetPaddingLeft_1 - targetPaddingRight_1) + "px")
|
|
660
|
-
.style("height", (targetParentBox_1.height - targetPaddingTop_1 - targetPaddingBottom_1) + "px")
|
|
661
|
-
.each("end", function () {
|
|
662
|
-
targetElement.style("position", target.__old_position);
|
|
663
|
-
targetElement.style("z-index", target.__old_zindex);
|
|
664
|
-
targetElement.style("background-color", target.__old_backgroundColor);
|
|
665
|
-
targetElement.style("box-shadow", target.__old_boxshadow);
|
|
666
|
-
context
|
|
667
|
-
.resize({
|
|
668
|
-
width: targetParentBox_1.width - targetPaddingLeft_1 - targetPaddingRight_1,
|
|
669
|
-
height: targetParentBox_1.height - targetPaddingTop_1 - targetPaddingBottom_1
|
|
670
|
-
})
|
|
671
|
-
.render(function () {
|
|
672
|
-
context.contentDiv.transition()
|
|
673
|
-
.style("opacity", 1);
|
|
674
|
-
});
|
|
675
|
-
buttonWidget.value("\uf2d0").render();
|
|
676
|
-
});
|
|
677
|
-
}
|
|
678
|
-
else {
|
|
679
|
-
// Maximize this MegaChart
|
|
680
|
-
target.__old_position = target.style.position;
|
|
681
|
-
target.__old_zindex = target.style.zIndex;
|
|
682
|
-
target.__old_boxshadow = target.style.boxShadow;
|
|
683
|
-
target.__old_backgroundColor = context.element().style("background-color");
|
|
684
|
-
var grid = common.select(node).datum();
|
|
685
|
-
var gridTarget = grid.target();
|
|
686
|
-
var gridBox_1 = grid ? gridTarget.getBoundingClientRect() : node.getBoundingClientRect();
|
|
687
|
-
var gridPaddingTop_1 = parseInt(getComputedStyle(gridTarget, null).getPropertyValue("padding-top").replace("px", ""));
|
|
688
|
-
var gridPaddingLeft_1 = parseInt(getComputedStyle(gridTarget, null).getPropertyValue("padding-left").replace("px", ""));
|
|
689
|
-
var gridPaddingRight_1 = parseInt(getComputedStyle(gridTarget, null).getPropertyValue("padding-right").replace("px", ""));
|
|
690
|
-
var gridPaddingBottom_1 = parseInt(getComputedStyle(gridTarget, null).getPropertyValue("padding-bottom").replace("px", ""));
|
|
691
|
-
context.contentDiv.style("opacity", 0).transition(100);
|
|
692
|
-
targetElement
|
|
693
|
-
.style("position", "fixed")
|
|
694
|
-
.style("z-index", 999999)
|
|
695
|
-
.style("box-shadow", "0 8px 8px 0 rgba(0,0,0,.14),0 12px 4px -8px rgba(0,0,0,.2),0 4px 20px 0 rgba(0,0,0,.12)")
|
|
696
|
-
.style("background-color", target.__old_backgroundColor)
|
|
697
|
-
.transition() // .duration(3000)
|
|
698
|
-
.style("top", (gridBox_1.top + gridPaddingTop_1) + "px")
|
|
699
|
-
.style("left", (gridBox_1.left + gridPaddingLeft_1) + "px")
|
|
700
|
-
.style("width", (gridBox_1.width - gridPaddingLeft_1 - gridPaddingRight_1) + "px")
|
|
701
|
-
.style("height", (gridBox_1.height - gridPaddingTop_1 - gridPaddingBottom_1) + "px")
|
|
702
|
-
.each("end", function () {
|
|
703
|
-
targetElement.style("background-color", context.maximizedBackgroundColor());
|
|
704
|
-
context
|
|
705
|
-
.resize({
|
|
706
|
-
width: (gridBox_1.width - gridPaddingLeft_1 - gridPaddingRight_1),
|
|
707
|
-
height: (gridBox_1.height - gridPaddingTop_1 - gridPaddingBottom_1)
|
|
708
|
-
})
|
|
709
|
-
.render(function () {
|
|
710
|
-
context.contentDiv.transition()
|
|
711
|
-
.style("opacity", 1);
|
|
712
|
-
});
|
|
713
|
-
buttonWidget.value("\uf2d1").render();
|
|
714
|
-
});
|
|
715
|
-
}
|
|
716
|
-
common.select(target).classed("__hpccisMaximized", !isMaximized);
|
|
717
|
-
};
|
|
718
|
-
this._legendButton = new form.Input()
|
|
719
|
-
.classed({ "composite_MegaChart-legend": true })
|
|
720
|
-
.id(this.id() + "_legend")
|
|
721
|
-
.type("checkbox")
|
|
722
|
-
.inlineLabel("Legend: ");
|
|
723
|
-
this._legendButton.click = function (a) {
|
|
724
|
-
context.render();
|
|
725
|
-
};
|
|
726
|
-
this._chartTypeSelect = new form.Select()
|
|
727
|
-
.classed({ "composite_MegaChart-chartType": true })
|
|
728
|
-
.id(this.id() + "_chartType")
|
|
729
|
-
.selectOptions(this._allChartTypes.map(function (a) { return [a.id, a.display]; }))
|
|
730
|
-
.value(this.chartType());
|
|
731
|
-
this._chartTypeSelect.change = function (a) {
|
|
732
|
-
context.chartType(a.value()).render();
|
|
733
|
-
};
|
|
734
|
-
this.setContent("center", this._chart);
|
|
735
|
-
this._legend
|
|
736
|
-
.targetWidget(this._chart)
|
|
737
|
-
.orientation(["top", "bottom"].indexOf(this.legendPosition()) !== -1 ? "horizontal" : "vertical")
|
|
738
|
-
.fixedSize(true);
|
|
739
|
-
this._prevLegendPosition = this.legendPosition();
|
|
740
|
-
if (this.valueAxisTitle()) {
|
|
741
|
-
this.setContent("left", this._valueTitle.rotation(-90)).leftShrinkWrap(true);
|
|
742
|
-
}
|
|
743
|
-
if (this.domainAxisTitle()) {
|
|
744
|
-
this.setContent("bottom", this._domainTitle).bottomShrinkWrap(true);
|
|
745
|
-
}
|
|
746
|
-
if (this.legendPosition() !== "none") {
|
|
747
|
-
this.setContent(this.legendPosition(), this._legend)[this.legendPosition() + "ShrinkWrap"](true);
|
|
748
|
-
}
|
|
749
|
-
};
|
|
750
|
-
MegaChart.prototype.update = function (domNode, element) {
|
|
751
|
-
function showHideButton(twArr2, button, show) {
|
|
752
|
-
if (show && twArr2.indexOf(button) === -1) {
|
|
753
|
-
twArr2.push(button);
|
|
754
|
-
}
|
|
755
|
-
else if (!show) {
|
|
756
|
-
var idx = twArr2.indexOf(button);
|
|
757
|
-
if (idx >= 0) {
|
|
758
|
-
twArr2.splice(idx, 1);
|
|
759
|
-
}
|
|
760
|
-
}
|
|
761
|
-
}
|
|
762
|
-
if (this._chart && typeof this._chart.hideRowOnLegendClick === "function") {
|
|
763
|
-
this._chart.hideRowOnLegendClick(this.hideRowOnLegendClick());
|
|
764
|
-
}
|
|
765
|
-
this._dataCount.html('<span class="MegaChart-dataCount-label">Count:</span> <span class="MegaChart-dataCount-value">' + (this.data() ? this.data().length : "0") + "</span>");
|
|
766
|
-
this._chartTypeSelect.value(this.chartType());
|
|
767
|
-
var twArr = this.toolbarWidgets();
|
|
768
|
-
showHideButton(twArr, this._csvButton, this.showCSV());
|
|
769
|
-
showHideButton(twArr, this._maximizeButton, this.showMaximize());
|
|
770
|
-
showHideButton(twArr, this._legendButton, this.toolbarShowLegend());
|
|
771
|
-
showHideButton(twArr, this._chartTypeSelect, this.showChartSelect());
|
|
772
|
-
showHideButton(twArr, this._infoButton, this.showInfoButton());
|
|
773
|
-
showHideButton(twArr, this._dataCount, this.showCount());
|
|
774
|
-
this.toolbarWidgets(twArr);
|
|
775
|
-
if (this._prevShowToolbar !== this.showToolbar()) {
|
|
776
|
-
this.setContent("top", this.showToolbar() ? this._toolbar : null);
|
|
777
|
-
this._prevShowToolbar = this.showToolbar();
|
|
778
|
-
}
|
|
779
|
-
// TODO: Proxy + themes not working...
|
|
780
|
-
this._toolbar
|
|
781
|
-
.fontSize(this.titleFontSize())
|
|
782
|
-
.fontColor(this.titleFontColor())
|
|
783
|
-
.fontFamily(this.titleFontFamily())
|
|
784
|
-
.fontBold(this.titleFontBold())
|
|
785
|
-
.backgroundColor(this.titleBackgroundColor());
|
|
786
|
-
this._chart
|
|
787
|
-
.data(this.data());
|
|
788
|
-
if (this._chart.chartType() !== this.chartType()) {
|
|
789
|
-
this._chart.chartType(this.chartType());
|
|
790
|
-
}
|
|
791
|
-
var legendPosition = this.legendPosition();
|
|
792
|
-
if (this.toolbarShowLegend() && !this._legendButton.checked()) {
|
|
793
|
-
legendPosition = "none";
|
|
794
|
-
}
|
|
795
|
-
if (this._prevLegendPosition !== legendPosition) {
|
|
796
|
-
if (this._prevLegendPosition !== "none") {
|
|
797
|
-
this.clearContent(this._prevLegendPosition);
|
|
798
|
-
}
|
|
799
|
-
this._prevLegendPosition = legendPosition;
|
|
800
|
-
if (legendPosition !== "none") {
|
|
801
|
-
this._legend = new other.Legend().targetWidget(this.getContent("center").fixedSize(true));
|
|
802
|
-
this.setContent(legendPosition, this._legend);
|
|
803
|
-
this._legend.orientation(["top", "bottom"].indexOf(legendPosition) !== -1 ? "horizontal" : "vertical");
|
|
804
|
-
}
|
|
805
|
-
}
|
|
806
|
-
this._contentClasses = this.getContentClasses();
|
|
807
|
-
if (this.valueAxisTitle() && this._contentClasses.left !== "common_Text") {
|
|
808
|
-
if (legendPosition !== "left") {
|
|
809
|
-
this.setContent("left", this._valueTitle.rotation(-90));
|
|
810
|
-
}
|
|
811
|
-
}
|
|
812
|
-
if (this.domainAxisTitle() && this._contentClasses.bottom !== "common_Text") {
|
|
813
|
-
if (legendPosition !== "bottom") {
|
|
814
|
-
this.setContent("bottom", this._domainTitle).bottomShrinkWrap(true);
|
|
815
|
-
}
|
|
816
|
-
}
|
|
817
|
-
this._legend.dataFamily(this._chart.getChartDataFamily());
|
|
818
|
-
_super.prototype.update.call(this, domNode, element);
|
|
819
|
-
};
|
|
820
|
-
MegaChart.prototype.exit = function (domNode, element) {
|
|
821
|
-
_super.prototype.exit.call(this, domNode, element);
|
|
822
|
-
};
|
|
823
|
-
MegaChart.prototype.getContentClasses = function () {
|
|
824
|
-
var obj = {};
|
|
825
|
-
var t = this.getContent("top");
|
|
826
|
-
var r = this.getContent("right");
|
|
827
|
-
var b = this.getContent("bottom");
|
|
828
|
-
var l = this.getContent("left");
|
|
829
|
-
obj.top = t !== null ? t.classID() : undefined;
|
|
830
|
-
obj.right = r !== null ? r.classID() : undefined;
|
|
831
|
-
obj.bottom = b !== null ? b.classID() : undefined;
|
|
832
|
-
obj.left = l !== null ? l.classID() : undefined;
|
|
833
|
-
return obj;
|
|
834
|
-
};
|
|
835
|
-
MegaChart.prototype.serializeState = function () {
|
|
836
|
-
var state = {
|
|
837
|
-
title: this.title(),
|
|
838
|
-
data: this.data()
|
|
839
|
-
};
|
|
840
|
-
var chart = this.chart();
|
|
841
|
-
if (chart) {
|
|
842
|
-
if (chart.serializeState) {
|
|
843
|
-
state.chart = chart.serializeState();
|
|
844
|
-
delete state.chart.data;
|
|
845
|
-
}
|
|
846
|
-
}
|
|
847
|
-
return state;
|
|
848
|
-
};
|
|
849
|
-
MegaChart.prototype.deserializeState = function (state) {
|
|
850
|
-
if (state) {
|
|
851
|
-
this
|
|
852
|
-
.title(state.title)
|
|
853
|
-
.data(state.data);
|
|
854
|
-
var chart = this.chart();
|
|
855
|
-
if (chart && state.chart) {
|
|
856
|
-
if (chart.serializeState) {
|
|
857
|
-
chart.deserializeState(state.chart);
|
|
858
|
-
}
|
|
859
|
-
}
|
|
860
|
-
}
|
|
861
|
-
return this;
|
|
862
|
-
};
|
|
863
|
-
// Events ---
|
|
864
|
-
MegaChart.prototype.click = function (row, column, selected) {
|
|
865
|
-
};
|
|
866
|
-
MegaChart.prototype.dblclick = function (row, column, selected) {
|
|
867
|
-
};
|
|
868
|
-
MegaChart.prototype.vertex_click = function (row, col, sel, more) {
|
|
869
|
-
if (more && more.vertex) ;
|
|
870
|
-
};
|
|
871
|
-
MegaChart.prototype.vertex_dblclick = function (row, col, sel, more) {
|
|
872
|
-
if (more && more.vertex) ;
|
|
873
|
-
};
|
|
874
|
-
MegaChart.prototype.edge_click = function (row, col, sel, more) {
|
|
875
|
-
if (more && more.edge) ;
|
|
876
|
-
};
|
|
877
|
-
MegaChart.prototype.edge_dblclick = function (row, col, sel, more) {
|
|
878
|
-
if (more && more.edge) ;
|
|
879
|
-
};
|
|
880
|
-
return MegaChart;
|
|
881
|
-
}(layout.Border));
|
|
882
|
-
MegaChart.prototype._class += " composite_MegaChart";
|
|
883
|
-
MegaChart.prototype._1DChartTypes = MultiChart.prototype._1DChartTypes;
|
|
884
|
-
MegaChart.prototype._2DChartTypes = MultiChart.prototype._2DChartTypes;
|
|
885
|
-
MegaChart.prototype._NDChartTypes = MultiChart.prototype._NDChartTypes;
|
|
886
|
-
MegaChart.prototype._anyChartTypes = MultiChart.prototype._anyChartTypes;
|
|
887
|
-
MegaChart.prototype._allChartTypes = MultiChart.prototype._allChartTypes;
|
|
888
|
-
MegaChart.prototype.publishReset();
|
|
889
|
-
MegaChart.prototype.publish("hideRowOnLegendClick", false, "boolean", "Enable/Disable hiding row on legend clicks", null, { tags: ["Basic"] });
|
|
890
|
-
MegaChart.prototype.publish("showToolbar", true, "boolean", "Enable/Disable Toolbar widget", null, { tags: ["Basic"] });
|
|
891
|
-
MegaChart.prototype.publishProxy("title", "_toolbar", "title");
|
|
892
|
-
MegaChart.prototype.publish("ddlParamsFormat", "", "string", "DDL Param Format '{fname}, {lname}'", null, { tags: ["Advanced"], optional: true });
|
|
893
|
-
MegaChart.prototype.publish("titleFontSize", null, "number", "Title Font Size (px)", null, { tags: ["Advanced"], optional: true });
|
|
894
|
-
MegaChart.prototype.publish("titleFontColor", null, "html-color", "Title Font Color", null, { tags: ["Advanced"], optional: true });
|
|
895
|
-
MegaChart.prototype.publish("titleFontFamily", null, "string", "Title Font Family", null, { tags: ["Advanced"], optional: true });
|
|
896
|
-
MegaChart.prototype.publish("titleFontBold", true, "boolean", "Enable Bold Title Font", null, { tags: ["Advanced"], optional: true });
|
|
897
|
-
MegaChart.prototype.publish("titleBackgroundColor", null, "html-color", "Background Color", null, { tags: ["Intermediate"], optional: true });
|
|
898
|
-
MegaChart.prototype.publish("maximizedBackgroundColor", "#FFFFFF", "html-color", "Background Color while maximized", null, { tags: ["Intermediate"], optional: true });
|
|
899
|
-
MegaChart.prototype.publish("showChartSelect", true, "boolean", "Show/Hide the chartType dropdown in the toolbar", null, { tags: ["Basic"] });
|
|
900
|
-
MegaChart.prototype.publish("showCSV", true, "boolean", "Show/Hide CSV button", null, { tags: ["Basic"] });
|
|
901
|
-
MegaChart.prototype.publish("showCount", false, "boolean", "Show/Hide Data Count", null, { tags: ["Basic"] });
|
|
902
|
-
MegaChart.prototype.publish("showMaximize", false, "boolean", "Show/Hide Maximize button", null, { tags: ["Basic"] });
|
|
903
|
-
MegaChart.prototype.publish("toolbarShowLegend", false, "boolean", "Show/Hide Legend button", null, { tags: ["Basic"] });
|
|
904
|
-
MegaChart.prototype.publish("showInfoButton", false, "boolean", "Show/Hide Info button in toolbar", null, { tags: ["Basic"] });
|
|
905
|
-
MegaChart.prototype.publish("infoIcon", "\uf05a", "string", "Help Icon", null, { tags: ["Basic"] });
|
|
906
|
-
MegaChart.prototype.publish("legendPosition", "none", "set", "Position of the Legend widget", ["none", "top", "right", "bottom", "left"], { tags: ["Basic"] });
|
|
907
|
-
MegaChart.prototype.publishProxy("legendFormat", "_legend", "rainbowFormat");
|
|
908
|
-
MegaChart.prototype.publishProxy("legendBins", "_legend", "rainbowBins");
|
|
909
|
-
MegaChart.prototype.publishProxy("domainAxisTitle", "_domainTitle", "text");
|
|
910
|
-
MegaChart.prototype.publishProxy("valueAxisTitle", "_valueTitle", "text");
|
|
911
|
-
MegaChart.prototype.publishProxy("chartType", "_chart", "chartType");
|
|
912
|
-
MegaChart.prototype.publishProxy("chart", "_chart", "chart");
|
|
913
|
-
|
|
914
|
-
function retrofit_114_serialization(state, replacement_version) {
|
|
915
|
-
replacement_version = !replacement_version || replacement_version === "1.14.2-dev" ? "1.18.0" : replacement_version;
|
|
916
|
-
if (!state.__version)
|
|
917
|
-
return state;
|
|
918
|
-
var state_version_obj = common.Utility.parseVersionString(state.__version);
|
|
919
|
-
var target_version_obj = common.Utility.parseVersionString(replacement_version);
|
|
920
|
-
if (state_version_obj.major === 1 && state_version_obj.minor === 14) {
|
|
921
|
-
console.info("Upgrading old persist from " + state.__version + " to " + replacement_version);
|
|
922
|
-
var _json_str = JSON.stringify(state);
|
|
923
|
-
_json_str = _json_str.split('"' + state.__version).join('"' + replacement_version);
|
|
924
|
-
var ret_obj = JSON.parse(_json_str);
|
|
925
|
-
if (ret_obj.__properties && ret_obj.__properties.content) {
|
|
926
|
-
ret_obj.__properties.content.forEach(function (n) {
|
|
927
|
-
if (JSON.stringify(n).split("graph_Graph").length > 1 && target_version_obj.minor >= 16) {
|
|
928
|
-
n.__properties.widget.__id = n.__properties.widget.__properties.widget.__id;
|
|
929
|
-
n.__properties.widget.__class = "composite_MegaChart";
|
|
930
|
-
n.__properties.widget.__properties.showCSV = false;
|
|
931
|
-
n.__properties.widget.__properties.chartType = "GRAPH";
|
|
932
|
-
n.__properties.widget.__properties.chart = n.__properties.widget.__properties.widget;
|
|
933
|
-
delete n.__properties.widget.__properties.chart.__id;
|
|
934
|
-
delete n.__properties.widget.__properties.widget;
|
|
935
|
-
}
|
|
936
|
-
if ("undefined" === typeof n.__properties.fields) {
|
|
937
|
-
n.__properties.fields = [];
|
|
938
|
-
}
|
|
939
|
-
});
|
|
940
|
-
}
|
|
941
|
-
return ret_obj;
|
|
334
|
+
}
|
|
335
|
+
|
|
336
|
+
> :nth-last-child(1 of .rdg-top-summary-row) {
|
|
337
|
+
> .cj343x07-0-0-beta-47 {
|
|
338
|
+
border-block-end: 2px solid var(--rdg-summary-border-color);
|
|
942
339
|
}
|
|
943
|
-
|
|
944
|
-
|
|
340
|
+
}
|
|
341
|
+
|
|
342
|
+
> :nth-child(1 of .rdg-bottom-summary-row) {
|
|
343
|
+
> .cj343x07-0-0-beta-47 {
|
|
344
|
+
border-block-start: 2px solid var(--rdg-summary-border-color);
|
|
945
345
|
}
|
|
346
|
+
}
|
|
946
347
|
}
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
w2._owner = w;
|
|
957
|
-
w[widgetKey_1](w2);
|
|
958
|
-
return w2;
|
|
959
|
-
}));
|
|
960
|
-
break;
|
|
961
|
-
case "widgetArray":
|
|
962
|
-
case "propertyArray":
|
|
963
|
-
var widgetArrayKey_1 = item.id;
|
|
964
|
-
var widgetStateArray = state.__properties[item.id];
|
|
965
|
-
if (widgetStateArray.length) {
|
|
966
|
-
var arrPromises = [];
|
|
967
|
-
for (var _i = 0, widgetStateArray_1 = widgetStateArray; _i < widgetStateArray_1.length; _i++) {
|
|
968
|
-
var widgetState = widgetStateArray_1[_i];
|
|
969
|
-
arrPromises.push(create(widgetState).then(function (widgetItem) {
|
|
970
|
-
widgetItem._owner = w;
|
|
971
|
-
return widgetItem;
|
|
972
|
-
}));
|
|
973
|
-
}
|
|
974
|
-
promises.push(Promise.all(arrPromises).then(function (widgetArray) {
|
|
975
|
-
w[widgetArrayKey_1](widgetArray);
|
|
976
|
-
}));
|
|
977
|
-
}
|
|
978
|
-
break;
|
|
979
|
-
default:
|
|
980
|
-
w[item.id](state.__properties[item.id]);
|
|
981
|
-
break;
|
|
982
|
-
}
|
|
983
|
-
}
|
|
984
|
-
});
|
|
985
|
-
return Promise.all(promises).then(function (widgets) {
|
|
986
|
-
if (state.__data) {
|
|
987
|
-
for (var key in state.__data) {
|
|
988
|
-
if (state.__data.HasOwnProperty(key)) {
|
|
989
|
-
switch (key) {
|
|
990
|
-
case "data":
|
|
991
|
-
widget.data(state.__data[key]);
|
|
992
|
-
break;
|
|
993
|
-
default:
|
|
994
|
-
console.warn("Unexpected __data item: " + key);
|
|
995
|
-
widget[key](state.__data[key]);
|
|
996
|
-
break;
|
|
997
|
-
}
|
|
998
|
-
}
|
|
999
|
-
}
|
|
1000
|
-
}
|
|
1001
|
-
if (state.__state) {
|
|
1002
|
-
if (widget.deserializeState) {
|
|
1003
|
-
widget.deserializeState(state.__state);
|
|
1004
|
-
}
|
|
1005
|
-
else if (state.__state.data && widget.data) {
|
|
1006
|
-
widget.data(state.__state.data);
|
|
1007
|
-
}
|
|
1008
|
-
}
|
|
1009
|
-
return widget;
|
|
1010
|
-
});
|
|
348
|
+
}
|
|
349
|
+
|
|
350
|
+
.vlqv91k7-0-0-beta-47 {
|
|
351
|
+
@layer rdg.Root {
|
|
352
|
+
user-select: none;
|
|
353
|
+
|
|
354
|
+
& .r1upfr807-0-0-beta-47 {
|
|
355
|
+
cursor: move;
|
|
356
|
+
}
|
|
1011
357
|
}
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
|
|
358
|
+
}
|
|
359
|
+
|
|
360
|
+
.f1lsfrzw7-0-0-beta-47 {
|
|
361
|
+
@layer rdg.FocusSink {
|
|
362
|
+
grid-column: 1/-1;
|
|
363
|
+
pointer-events: none;
|
|
364
|
+
/* Should have a higher value than 1 to show up above regular frozen cells */
|
|
365
|
+
z-index: 1;
|
|
1020
366
|
}
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
|
|
367
|
+
}
|
|
368
|
+
|
|
369
|
+
.f1cte0lg7-0-0-beta-47 {
|
|
370
|
+
@layer rdg.FocusSink {
|
|
371
|
+
/* Should have a higher value than 3 to show up above header and summary rows */
|
|
372
|
+
z-index: 3;
|
|
373
|
+
}
|
|
374
|
+
}
|
|
375
|
+
|
|
376
|
+
|
|
377
|
+
.s8wc6fl7-0-0-beta-47 {
|
|
378
|
+
@layer rdg.SummaryCell {
|
|
379
|
+
inset-block-start: var(--rdg-summary-row-top);
|
|
380
|
+
inset-block-end: var(--rdg-summary-row-bottom);
|
|
381
|
+
}
|
|
382
|
+
}
|
|
383
|
+
|
|
384
|
+
|
|
385
|
+
.skuhp557-0-0-beta-47 {
|
|
386
|
+
@layer rdg.SummaryRow {
|
|
387
|
+
> .cj343x07-0-0-beta-47 {
|
|
388
|
+
position: sticky;
|
|
389
|
+
}
|
|
390
|
+
}
|
|
391
|
+
}
|
|
392
|
+
|
|
393
|
+
.tf8l5ub7-0-0-beta-47 {
|
|
394
|
+
@layer rdg.SummaryRow {
|
|
395
|
+
> .cj343x07-0-0-beta-47 {
|
|
396
|
+
z-index: 2;
|
|
397
|
+
}
|
|
398
|
+
|
|
399
|
+
> .csofj7r7-0-0-beta-47 {
|
|
400
|
+
z-index: 3;
|
|
401
|
+
}
|
|
402
|
+
}
|
|
403
|
+
}
|
|
404
|
+
|
|
405
|
+
|
|
406
|
+
.g1yxluv37-0-0-beta-47 {
|
|
407
|
+
@layer rdg.GroupedRow {
|
|
408
|
+
&:not([aria-selected='true']) {
|
|
409
|
+
background-color: var(--rdg-header-background-color);
|
|
410
|
+
}
|
|
411
|
+
|
|
412
|
+
> .cj343x07-0-0-beta-47:not(:last-child, .csofj7r7-0-0-beta-47),
|
|
413
|
+
> :nth-last-child(n + 2 of .csofj7r7-0-0-beta-47) {
|
|
414
|
+
border-inline-end: none;
|
|
415
|
+
}
|
|
1036
416
|
}
|
|
1037
|
-
|
|
1038
|
-
|
|
417
|
+
}
|
|
418
|
+
|
|
419
|
+
|
|
420
|
+
.t7vyx3i7-0-0-beta-47 {
|
|
421
|
+
@layer rdg.TextEditor {
|
|
422
|
+
appearance: none;
|
|
423
|
+
|
|
424
|
+
box-sizing: border-box;
|
|
425
|
+
inline-size: 100%;
|
|
426
|
+
block-size: 100%;
|
|
427
|
+
padding-block: 0;
|
|
428
|
+
padding-inline: 6px;
|
|
429
|
+
border: 2px solid #ccc;
|
|
430
|
+
vertical-align: top;
|
|
431
|
+
color: var(--rdg-color);
|
|
432
|
+
background-color: var(--rdg-background-color);
|
|
433
|
+
|
|
434
|
+
font-family: inherit;
|
|
435
|
+
font-size: var(--rdg-font-size);
|
|
436
|
+
|
|
437
|
+
&:focus {
|
|
438
|
+
border-color: var(--rdg-selection-color);
|
|
439
|
+
outline: none;
|
|
440
|
+
}
|
|
441
|
+
|
|
442
|
+
&::placeholder {
|
|
443
|
+
color: #999;
|
|
444
|
+
opacity: 1;
|
|
445
|
+
}
|
|
1039
446
|
}
|
|
447
|
+
}
|
|
448
|
+
|
|
449
|
+
`,document.head.appendChild(t)}})();function no(t,e,i){let o=e;return[...t].sort((r,l)=>r[o]<l[o]?i?1:-1:r[o]>l[o]?i?-1:1:0)}d(no,"Qo");h(no,"copyAndSort");var Ba=h(({message:t})=>It("div",{style:{textAlign:"center",gridColumn:"1/-1"}},t),"EmptyRowsRenderer"),Aa=h(({table:t,sort:e})=>{let[i,o]=on(t),r=t.multiSelect(),l=t.columnTypes(),n=t.columnPatterns(),s=t.columnFormats(),[a,c]=et([]),[g,u]=et(),[f,p]=et([]),[y,C]=et(new Set);me(()=>{c([...r?[Rs]:[],...i.map(I=>{let z=l[I]??"string",P,m,_;switch(z){case"time":m=n[I]!==void 0?za(n[I]):void 0,_=s[I]!==void 0?Pa(s[I]):void 0;break;case"number":P=h(B=>It("div",{style:{textAlign:"right"}},B.row[B.column.key]),"formatter");default:_=s[I]!==void 0?Ia(s[I]):void 0}return{key:I,name:I,resizable:!0,sortable:!0,minWidth:80,renderCell:P,__hpcc_pattern:m,__hpcc_format:_}})])},[s,n,l,i,r]);let x=Ot(I=>{let z=I.slice(-1)[0],P=z!==void 0,m=z?.direction==="DESC";u(z),p(no(f,P?z.columnKey:"key",P?m:!1))},[f]),b=Ot(I=>I.key,[]),S=Ot(I=>{C(I)},[]),k=Ot((I,z)=>{t.onRowClickCallback(I,z.key)},[t]);return me(()=>{let I=o.map((z,P)=>{let m={key:P};return a.forEach((_,B)=>{let R=z[B];_.__hpcc_pattern&&_.__hpcc_format?R=_.__hpcc_format(_.__hpcc_pattern(R)):_.__hpcc_pattern?R=_.__hpcc_pattern(R).toString():_.__hpcc_format&&(R=_.__hpcc_format(R)),m[_.key]=R}),m});e?.attribute&&(I=no(I,e.attribute,e.descending)),p(I)},[a,o,e]),It(Sa,{columns:a,headerRowHeight:24,rows:f,rowKeyGetter:b,rowHeight:20,renderers:{noRowsFallback:It(Ba,{message:t.noDataMessage()})},className:t.darkMode()?"rdg-dark":"rdg-light",sortColumns:g?[g]:[],onSortColumnsChange:x,selectedRows:y,onSelectedRowsChange:r?S:void 0,onCellClick:r?void 0:(I,z)=>k(I.row,I.column),"aria-describedby":"","aria-label":"","aria-labelledby":"",style:{height:"100%"}})},"ReactTable");(function(){if(!document.getElementById("c2b63dd3")){var t=document.createElement("style");t.id="c2b63dd3",t.textContent=`.dgrid2_Table .rdg {
|
|
450
|
+
font-family: monospace, 'Courier New', Courier;
|
|
451
|
+
}
|
|
452
|
+
|
|
453
|
+
.dgrid2_Table .rdg-checkbox-label .rdg-checkbox {
|
|
454
|
+
block-size: 16px;
|
|
455
|
+
inline-size: 16px;
|
|
456
|
+
border-width: 2px;
|
|
457
|
+
box-shadow: inset 0 0 0 3px var(--rdg-background-color);
|
|
458
|
+
}`,document.head.appendChild(t)}})();var Et=class extends gs{static{d(this,"_e")}static{h(this,"Table")}_div;constructor(){super()}columnType(t,e){return arguments.length===1?this.columnTypes()[t]:(this.columnTypes({...this.columnTypes(),[t]:e}),this)}columnPattern(t,e){return arguments.length===1?this.columnPatterns()[t]:(this.columnPatterns({...this.columnPatterns(),[t]:e}),this)}columnFormat(t,e){return arguments.length===1?this.columnFormats()[t]:(this.columnFormats({...this.columnFormats(),[t]:e}),this)}_prevRow;_prevColumn;onRowClickCallback(t,e){this._prevRow&&JSON.stringify(this._prevRow)!==JSON.stringify(t)&&this.click(this._prevRow,this._prevColumn??"",!1),t&&this.click(t,e,!0),this._prevRow=t,this._prevColumn=e}enter(t,e){super.enter(t,e),this._div=e.append("div").style("display","grid")}update(t,e){super.update(t,e),this._div.style("width",this.width()+"px"),this._div.style("height",this.height()+"px"),rl(It(Aa,{table:this}),this._div.node())}exit(t,e){dl(this._div.node()),this._div.remove(),super.exit(t,e)}click(t,e,i){}};Et.prototype._class+=" dgrid2_Table";Et.prototype.publish("noDataMessage","...empty...","string","No Data Message");Et.prototype.publish("darkMode",!1,"boolean","Dark Mode");Et.prototype.publish("multiSelect",!1,"boolean","Multiple Selection");Et.prototype.publish("columnTypes",{},"object",'Column Types ("boolean" | "number" | "string" | "time"');Et.prototype.publish("columnPatterns",{},"object","Column Patterns");Et.prototype.publish("columnFormats",{},"object","Column Formats");import{select as rd}from"@hpcc-js/common";import{instanceOfIHighlight as hn}from"@hpcc-js/api";import{Database as ld,Palette as Ti,SVGWidget as nd}from"@hpcc-js/common";import{format as sd}from"@hpcc-js/common";import{scaleOrdinal as ad}from"@hpcc-js/common";import{select as vd}from"@hpcc-js/common";import{format as Cd,formatLocale as Sd,formatPrefix as Td,formatSpecifier as kd}from"@hpcc-js/common";import{dispatch as Id}from"@hpcc-js/common";import{scaleLinear as Pd}from"@hpcc-js/common";import{sum as zd}from"@hpcc-js/common";import{HTMLWidget as Fd}from"@hpcc-js/common";import{HTMLWidget as Od}from"@hpcc-js/common";import{select as Ld}from"@hpcc-js/common";import{d3Event as Zt,drag as pn,HTMLWidget as Gd,Platform as Nd,select as gn,Utility as Ud}from"@hpcc-js/common";import{HTMLWidget as jd,Text as Yd}from"@hpcc-js/common";import{HTMLWidget as Xd}from"@hpcc-js/common";import{HTMLWidget as Kd,Text as qd}from"@hpcc-js/common";import{select as Jd}from"@hpcc-js/common";import{HTMLWidget as Zd}from"@hpcc-js/common";import{select as Qd}from"@hpcc-js/common";var Ra=Object.create,Lo=Object.defineProperty,Da=Object.getOwnPropertyDescriptor,Wa=Object.getOwnPropertyNames,Ma=Object.getPrototypeOf,Ea=Object.prototype.hasOwnProperty,w=d((t,e)=>Lo(t,"name",{value:e,configurable:!0}),"d"),Ha=d((t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),"le"),Fa=d((t,e,i,o)=>{if(e&&typeof e=="object"||typeof e=="function")for(let r of Wa(e))!Ea.call(t,r)&&r!==i&&Lo(t,r,{get:d(()=>e[r],"get"),enumerable:!(o=Da(e,r))||o.enumerable});return t},"ne"),Oa=d((t,e,i)=>(i=t!=null?Ra(Ma(t)):{},Fa(e||!t||!t.__esModule?Lo(i,"default",{value:t,enumerable:!0}):i,t)),"ae"),La=Ha((t,e)=>{(function(i,o){typeof define=="function"&&define.amd?define([],o):typeof t=="object"?e.exports=o():i.GridList=o()})(t,function(){var i=w(function(r,l){this._options=l;for(var n in this.defaults)this._options.hasOwnProperty(n)||(this._options[n]=this.defaults[n]);this.items=r,this._adjustSizeOfItems(),this.generateGrid()},"GridList");i.cloneItems=function(r,l){var n,s,a;for(l===void 0&&(l=[]),s=0;s<r.length;s++){l[s]||(l[s]={});for(a in r[s])l[s][a]=r[s][a]}return l},i.prototype={defaults:{lanes:5,direction:"horizontal"},toString:w(function(){var r=this.grid.length,l=`
|
|
459
|
+
#|`,n=`
|
|
460
|
+
--`,s,a,c;for(a=0;a<r;a++)l+=" "+this._padNumber(a," "),n+="---";for(l+=n,a=0;a<this._options.lanes;a++)for(l+=`
|
|
461
|
+
`+this._padNumber(a," ")+"|",c=0;c<r;c++)l+=" ",s=this.grid[c][a],l+=s?this._padNumber(this.items.indexOf(s),"0"):"--";return l+=`
|
|
462
|
+
`,l},"toString"),generateGrid:w(function(){var r;for(this._resetGrid(),r=0;r<this.items.length;r++)this._markItemPositionToGrid(this.items[r])},"generateGrid"),resizeGrid:w(function(r){var l=0;this._options.lanes=r,this._adjustSizeOfItems(),this._sortItemsByPosition(),this._resetGrid();for(var n=0;n<this.items.length;n++){var s=this.items[n],a=this._getItemPosition(s);this._updateItemPosition(s,this.findPositionForItem(s,{x:l,y:0})),l=Math.max(l,a.x)}this._pullItemsToLeft()},"resizeGrid"),findPositionForItem:w(function(r,l,n){var s,a,c;for(s=l.x;s<this.grid.length;s++)if(n!==void 0){if(c=[s,n],this._itemFitsAtPosition(r,c))return c}else for(a=l.y;a<this._options.lanes;a++)if(c=[s,a],this._itemFitsAtPosition(r,c))return c;var g=this.grid.length,u=0;return n!==void 0&&this._itemFitsAtPosition(r,[g,n])&&(u=n),[g,u]},"findPositionForItem"),moveItemToPosition:w(function(r,l){var n=this._getItemPosition({x:l[0],y:l[1],w:r.w,h:r.h});this._updateItemPosition(r,[n.x,n.y]),this._resolveCollisions(r)},"moveItemToPosition"),resizeItem:w(function(r,l){var n=l.w||r.w,s=l.h||r.h;this._updateItemSize(r,n,s),this._resolveCollisions(r),this._pullItemsToLeft()},"resizeItem"),getChangedItems:w(function(r,l){for(var n=[],s=0;s<r.length;s++){var a=this._getItemByAttribute(l,r[s][l]);(a.x!==r[s].x||a.y!==r[s].y||a.w!==r[s].w||a.h!==r[s].h)&&n.push(a)}return n},"getChangedItems"),_sortItemsByPosition:w(function(){this.items.sort(function(r,l){var n=this._getItemPosition(r),s=this._getItemPosition(l);return n.x!=s.x?n.x-s.x:n.y!=s.y?n.y-s.y:0}.bind(this))},"_sortItemsByPosition"),_adjustSizeOfItems:w(function(){for(var r=0;r<this.items.length;r++){var l=this.items[r];l.autoSize===void 0&&(l.autoSize=l.w===0||l.h===0),l.autoSize&&(this._options.direction==="horizontal"?l.h=this._options.lanes:l.w=this._options.lanes)}},"_adjustSizeOfItems"),_resetGrid:w(function(){this.grid=[]},"_resetGrid"),_itemFitsAtPosition:w(function(r,l){var n=this._getItemPosition(r),s,a,c;if(l[0]<0||l[1]<0||l[1]+n.h>this._options.lanes)return!1;for(s=l[0];s<l[0]+n.w;s++){var g=this.grid[s];if(g){for(a=l[1];a<l[1]+n.h;a++)if(g[a]&&g[a]!==r)return!1}}return!0},"_itemFitsAtPosition"),_updateItemPosition:w(function(r,l){r.x!==null&&r.y!==null&&this._deleteItemPositionFromGrid(r),this._setItemPosition(r,l),this._markItemPositionToGrid(r)},"_updateItemPosition"),_updateItemSize:w(function(r,l,n){r.x!==null&&r.y!==null&&this._deleteItemPositionFromGrid(r),r.w=l,r.h=n,this._markItemPositionToGrid(r)},"_updateItemSize"),_markItemPositionToGrid:w(function(r){var l=this._getItemPosition(r),n,s;for(this._ensureColumns(l.x+l.w),n=l.x;n<l.x+l.w;n++)for(s=l.y;s<l.y+l.h;s++)this.grid[n][s]=r},"_markItemPositionToGrid"),_deleteItemPositionFromGrid:w(function(r){var l=this._getItemPosition(r),n,s;for(n=l.x;n<l.x+l.w;n++)if(this.grid[n])for(s=l.y;s<l.y+l.h;s++)this.grid[n][s]==r&&(this.grid[n][s]=null)},"_deleteItemPositionFromGrid"),_ensureColumns:w(function(r){var l;for(l=0;l<r;l++)this.grid[l]||this.grid.push(new o(this._options.lanes))},"_ensureColumns"),_getItemsCollidingWithItem:w(function(r){for(var l=[],n=0;n<this.items.length;n++)r!=this.items[n]&&this._itemsAreColliding(r,this.items[n])&&l.push(n);return l},"_getItemsCollidingWithItem"),_itemsAreColliding:w(function(r,l){var n=this._getItemPosition(r),s=this._getItemPosition(l);return!(s.x>=n.x+n.w||s.x+s.w<=n.x||s.y>=n.y+n.h||s.y+s.h<=n.y)},"_itemsAreColliding"),_resolveCollisions:w(function(r){this._tryToResolveCollisionsLocally(r)||this._pullItemsToLeft(r),this._pullItemsToLeft()},"_resolveCollisions"),_tryToResolveCollisionsLocally:w(function(r){var l=this._getItemsCollidingWithItem(r);if(!l.length)return!0;var n=new i([],this._options),s,a,c,g;i.cloneItems(this.items,n.items),n.generateGrid();for(var u=0;u<l.length;u++){var f=n.items[l[u]],p=this._getItemPosition(f),y=this._getItemPosition(r);if(s=[y.x-p.w,p.y],a=[y.x+y.w,p.y],c=[p.x,y.y-p.h],g=[p.x,y.y+y.h],n._itemFitsAtPosition(f,s))n._updateItemPosition(f,s);else if(n._itemFitsAtPosition(f,c))n._updateItemPosition(f,c);else if(n._itemFitsAtPosition(f,g))n._updateItemPosition(f,g);else if(n._itemFitsAtPosition(f,a))n._updateItemPosition(f,a);else return!1}return i.cloneItems(n.items,this.items),this.generateGrid(),!0},"_tryToResolveCollisionsLocally"),_pullItemsToLeft:w(function(r){if(this._sortItemsByPosition(),this._resetGrid(),r){var l=this._getItemPosition(r);this._updateItemPosition(r,[l.x,l.y])}for(var n=0;n<this.items.length;n++){var s=this.items[n],a=this._getItemPosition(s);if(!(r&&s==r)){var c=this._findLeftMostPositionForItem(s),g=this.findPositionForItem(s,{x:c,y:0},a.y);this._updateItemPosition(s,g)}}},"_pullItemsToLeft"),_findLeftMostPositionForItem:w(function(r){for(var l=0,n=this._getItemPosition(r),s=0;s<this.grid.length;s++)for(var a=n.y;a<n.y+n.h;a++){var c=this.grid[s][a];if(c){var g=this._getItemPosition(c);this.items.indexOf(c)<this.items.indexOf(r)&&(l=g.x+g.w)}}return l},"_findLeftMostPositionForItem"),_getItemByAttribute:w(function(r,l){for(var n=0;n<this.items.length;n++)if(this.items[n][r]===l)return this.items[n];return null},"_getItemByAttribute"),_padNumber:w(function(r,l){return r>=10?r:l+r},"_padNumber"),_getItemPosition:w(function(r){return this._options.direction==="horizontal"?r:{x:r.y,y:r.x,w:r.h,h:r.w}},"_getItemPosition"),_setItemPosition:w(function(r,l){this._options.direction==="horizontal"?(r.x=l[0],r.y=l[1]):(r.x=l[1],r.y=l[0])},"_setItemPosition")};var o=w(function(r){for(var l=0;l<r;l++)this.push(null)},"GridCol");return o.prototype=[],i})});(function(){if(!document.getElementById("e4246716")){var t=document.createElement("style");t.id="e4246716",t.textContent=`.layout_AbsoluteSurface {
|
|
463
|
+
pointer-events: none !important;
|
|
464
|
+
}
|
|
465
|
+
|
|
466
|
+
.layout_AbsoluteSurface > .placeholder {
|
|
467
|
+
position: relative;
|
|
468
|
+
overflow: hidden;
|
|
469
|
+
pointer-events: all;
|
|
470
|
+
}
|
|
471
|
+
`,document.head.appendChild(t)}})();var Nt=class extends Ga{static{d(this,"G")}static{w(this,"AbsoluteSurface")}constructor(){super(),this._tag="div"}enter(t,e){super.enter(t,e)}update(t,e){super.update(t,e);let i=0,o=0,r=this.clientWidth(),l=this.clientHeight();switch(this.units()){case"pixels":i=this.widgetX(),o=this.widgetY(),r=this.widgetWidth()===""?r-i:Number(this.widgetWidth()),l=this.widgetHeight()===""?l-o:Number(this.widgetHeight());break;case"percent":i=this.widgetX()*r/100,o=this.widgetY()*l/100,r=this.widgetWidth()===""?r-i:Number(this.widgetWidth())*r/100,l=this.widgetHeight()===""?l-o:Number(this.widgetHeight())*l/100;break}e.style("opacity",this.opacity());let n=e.selectAll("#"+this._id+" > .placeholder").data(this.widget()?[this.widget()]:[],function(s){return s._id});n.enter().append("div").attr("class","placeholder").each(function(s){s.target(this)}).merge(n).style("left",i+"px").style("top",o+"px").style("width",r+"px").style("bottom",l+"px").each(function(s){s.resize({width:r,height:l})}),n.exit().each(function(s){s.target(null)}).remove()}exit(t,e){this.widget()&&this.widget().target(null),super.exit(t,e)}};Nt.prototype._class+=" layout_AbsoluteSurface";Nt.prototype.publish("units","percent","set","Units",["pixels","percent"]);Nt.prototype.publish("widgetX",0,"number","Widget XPos");Nt.prototype.publish("widgetY",0,"number","Widget YPos");Nt.prototype.publish("widgetWidth","100","string","Widget Width, omit for full");Nt.prototype.publish("widgetHeight","100","string","Widget Height, omit for full");Nt.prototype.publish("widget",null,"widget","Widget",null,{tags:["Private"]});Nt.prototype.publish("opacity",1,"number","Opacity");(function(){if(!document.getElementById("d5b8185a")){var t=document.createElement("style");t.id="d5b8185a",t.textContent=`.layout_Accordion > ul{
|
|
472
|
+
position:relative;
|
|
473
|
+
}
|
|
474
|
+
.layout_Accordion.open > span {
|
|
475
|
+
font-style:italic;
|
|
476
|
+
}
|
|
477
|
+
.layout_Accordion.closed > ul {
|
|
478
|
+
height: 0px;
|
|
479
|
+
overflow: hidden;
|
|
480
|
+
}
|
|
481
|
+
.layout_Accordion.open > ul{
|
|
482
|
+
display:block;
|
|
483
|
+
}
|
|
484
|
+
.layout_Accordion > .collapsible-icon,
|
|
485
|
+
.layout_Accordion > .collapsible-title{
|
|
486
|
+
cursor:pointer;
|
|
487
|
+
box-sizing: border-box;
|
|
488
|
+
}
|
|
489
|
+
.layout_Accordion > .collapsible-title{
|
|
490
|
+
display:block;
|
|
491
|
+
width:100%;
|
|
492
|
+
}
|
|
493
|
+
.layout_Accordion > .collapsible-title{
|
|
494
|
+
font-size: 13px;
|
|
495
|
+
color:#FFF;
|
|
496
|
+
padding:4px 8px;
|
|
497
|
+
height:26px;
|
|
498
|
+
-webkit-box-shadow: inset 0px -1px 1px 0px rgba(0,0,0,0.2);
|
|
499
|
+
-moz-box-shadow: inset 0px -1px 1px 0px rgba(0,0,0,0.2);
|
|
500
|
+
box-shadow: inset 0px -1px 1px 0px rgba(0,0,0,0.2);
|
|
501
|
+
}
|
|
502
|
+
.layout_Accordion li{
|
|
503
|
+
background-color:#FFFFFF;
|
|
504
|
+
}
|
|
505
|
+
.layout_Accordion > ul,
|
|
506
|
+
.layout_Accordion > .collapsible-title{
|
|
507
|
+
background-color:#333;
|
|
508
|
+
}
|
|
509
|
+
.layout_Accordion .layout_Accordion > ul,
|
|
510
|
+
.layout_Accordion .layout_Accordion > .collapsible-title{
|
|
511
|
+
background-color:#555;
|
|
512
|
+
}
|
|
513
|
+
.layout_Accordion .layout_Accordion .layout_Accordion > ul,
|
|
514
|
+
.layout_Accordion .layout_Accordion .layout_Accordion > .collapsible-title{
|
|
515
|
+
background-color:#777;
|
|
516
|
+
}
|
|
517
|
+
.layout_Accordion .layout_Accordion .layout_Accordion .layout_Accordion > ul,
|
|
518
|
+
.layout_Accordion .layout_Accordion .layout_Accordion .layout_Accordion > .collapsible-title{
|
|
519
|
+
background-color:#999;
|
|
520
|
+
}
|
|
521
|
+
.layout_Accordion .layout_Accordion .layout_Accordion .layout_Accordion .layout_Accordion > ul,
|
|
522
|
+
.layout_Accordion .layout_Accordion .layout_Accordion .layout_Accordion .layout_Accordion > .collapsible-title{
|
|
523
|
+
background-color:#BBB;
|
|
524
|
+
}
|
|
525
|
+
.layout_Accordion .layout_Accordion .layout_Accordion .layout_Accordion .layout_Accordion .layout_Accordion > ul,
|
|
526
|
+
.layout_Accordion .layout_Accordion .layout_Accordion .layout_Accordion .layout_Accordion .layout_Accordion > .collapsible-title{
|
|
527
|
+
background-color:#CCC;
|
|
528
|
+
}
|
|
529
|
+
.layout_Accordion .layout_Accordion .layout_Accordion .layout_Accordion .layout_Accordion .layout_Accordion .layout_Accordion > ul,
|
|
530
|
+
.layout_Accordion .layout_Accordion .layout_Accordion .layout_Accordion .layout_Accordion .layout_Accordion .layout_Accordion > .collapsible-title{
|
|
531
|
+
background-color:#DDD;
|
|
532
|
+
}
|
|
533
|
+
.layout_Accordion > ul,
|
|
534
|
+
.layout_Accordion > span{
|
|
535
|
+
padding-left:0px;
|
|
536
|
+
}
|
|
537
|
+
.layout_Accordion .layout_Accordion > ul,
|
|
538
|
+
.layout_Accordion .layout_Accordion > span{
|
|
539
|
+
padding-left: 12px;
|
|
540
|
+
}
|
|
541
|
+
|
|
542
|
+
.layout_Accordion > .collapsible-title:before{
|
|
543
|
+
padding: 4px 8px 4px 8px;
|
|
544
|
+
position: absolute;
|
|
545
|
+
left: 0;
|
|
546
|
+
top: 0;
|
|
547
|
+
}
|
|
548
|
+
.layout_Accordion > .collapsible-icon{
|
|
549
|
+
position:absolute;
|
|
550
|
+
top:0px;
|
|
551
|
+
right:0px;
|
|
552
|
+
width:24px;
|
|
553
|
+
height:24px;
|
|
554
|
+
color:#FFF;
|
|
555
|
+
}`,document.head.appendChild(t)}})();var Ut=class extends Ua{static{d(this,"Y")}static{w(this,"Accordion")}_isClosed;titleSpan;iconDiv;ul;icon;constructor(){super(),this._tag="div",this._isClosed=!1}pushListItem(t,e=!1,i=!1){let o=this.content();return t._protected=i,e?o.unshift(t):o.push(t),this.content(o),this}clearListItems(){let t=[];for(let e in this.content())this.content()[e]._protected&&t.push(this.content()[e]);return this.content(t),this}collapseClick(t){t.classed("closed")?(this._isClosed=!1,t.classed("open",!0),t.classed("closed",!1)):(this._isClosed=!0,t.classed("open",!1),t.classed("closed",!0))}enter(t,e){super.enter(t,e);let i=this;this._isClosed=this.defaultCollapsed(),e.classed(this._isClosed?"closed":"open",!0),this.titleSpan=e.append("span").classed("collapsible-title",!0),this.iconDiv=e.append("div").classed("collapsible-icon",!0),this.ul=e.append("ul"),this.icon=new Na().size({height:24,width:24}).target(this.iconDiv.node()),this.iconDiv.on("click",function(){i.collapseClick(e),i.render()}),this.titleSpan.on("click",function(){i.collapseClick(e),i.render()})}update(t,e){super.update(t,e);let i=this,o="";this.titleSpan.text(i.title().length>0?i.title()+o:"Accordion ["+i._id+"]"+o);let r=this.ul.selectAll("#"+i._id+" > ul > li").data(this.content(),function(l){return l._id});r.enter().append(function(l){let n=document.createElement("li");if(l._target===null){let s=l.size();if(s.width===0||s.height===0){let a=i.size();l.size({width:a.width,height:a.width})}l.target(n)}else return l._target;return n}),r.exit().remove(),this.icon.text_colorFill(this.titleFontColor()).char(this._isClosed?this.closedIcon():this.openIcon()).render()}exit(t,e){super.exit(t,e)}};Ut.prototype._class+=" layout_Accordion";Ut.prototype.publish("content",[],"widgetArray","Array of widgets",null,{tags:["Basic"]});Ut.prototype.publish("title","","string","Title of collapsible section",null,{tags:["Private"]});Ut.prototype.publish("openIcon","\uF147","string","Icon to display when list is open",null,{tags:["Private"]});Ut.prototype.publish("closedIcon","\uF196","string","Icon to display when list is closed",null,{tags:["Private"]});Ut.prototype.publish("titleFontColor","#FFFFFF","html-color","Title font color",null,{tags:["Private"]});Ut.prototype.publish("titleBackgroundColor","#333333","html-color","Title background color",null,{tags:["Private"]});Ut.prototype.publish("defaultCollapsed",!1,"boolean","Collapsed by default if true",null,{tags:["Private"]});(function(){if(!document.getElementById("41033346")){var t=document.createElement("style");t.id="41033346",t.textContent=`.layout_Surface {
|
|
556
|
+
box-sizing: border-box;
|
|
557
|
+
margin: 0px;
|
|
558
|
+
border: 1px solid #e5e5e5;
|
|
559
|
+
overflow:hidden;
|
|
560
|
+
height: 100%;
|
|
561
|
+
width: 100%;
|
|
562
|
+
}
|
|
563
|
+
|
|
564
|
+
.layout_Surface.shadow2 {
|
|
565
|
+
box-shadow: 0 2px 2px 0 rgba(0,0,0,.14),0 3px 1px -2px rgba(0,0,0,.2),0 1px 5px 0 rgba(0,0,0,.12)
|
|
566
|
+
}
|
|
567
|
+
|
|
568
|
+
.layout_Surface > h3 {
|
|
569
|
+
margin: 0px;
|
|
570
|
+
padding: 2px;
|
|
571
|
+
background-color: #e5e5e5;
|
|
572
|
+
}
|
|
573
|
+
.layout_Surface .html-button-container {
|
|
574
|
+
position: absolute;
|
|
575
|
+
right: 0px;
|
|
576
|
+
top:3px;
|
|
577
|
+
}
|
|
578
|
+
|
|
579
|
+
.layout_Surface > div {
|
|
580
|
+
padding: 8px;
|
|
581
|
+
}
|
|
582
|
+
|
|
583
|
+
.layout_Surface .html-button-container .surface-button {
|
|
584
|
+
margin-right: 5px;
|
|
585
|
+
}
|
|
586
|
+
.layout_Surface .html-button-container .surface-button i {
|
|
587
|
+
opacity: 0.8;
|
|
588
|
+
}
|
|
589
|
+
|
|
590
|
+
.layout_Surface .html-button-container .surface-button:hover { opacity: 1; }
|
|
591
|
+
.layout_Surface .html-button-container .surface-button:active { opacity: 0.5; }
|
|
592
|
+
|
|
593
|
+
div[draggable=true].hideDragCellContent.content-icon:before{
|
|
594
|
+
content: "\f080";
|
|
595
|
+
font-family: FontAwesome;
|
|
596
|
+
position: absolute;
|
|
597
|
+
top: calc(50% - 74px);
|
|
598
|
+
left: calc(50% - 56px);
|
|
599
|
+
font-size: 100px;
|
|
600
|
+
}
|
|
601
|
+
div[draggable=true].hideDragCellContent.content-icon-Line:before{
|
|
602
|
+
content:"\f201";
|
|
603
|
+
}
|
|
604
|
+
div[draggable=true].hideDragCellContent.content-icon-Pie:before{
|
|
605
|
+
top: calc(50% - 72px);
|
|
606
|
+
left: calc(50% - 45px);
|
|
607
|
+
content:"\f200";
|
|
608
|
+
}
|
|
609
|
+
div[draggable=true].hideDragCellContent.content-icon-Area:before{
|
|
610
|
+
content:"\f1fe";
|
|
611
|
+
}
|
|
612
|
+
div[draggable=true].hideDragCellContent.content-icon-Gauge:before{
|
|
613
|
+
content:"\f0e4";
|
|
614
|
+
}
|
|
615
|
+
div[draggable=true].hideDragCellContent.content-icon-Table:before{
|
|
616
|
+
content:"\f0ce";
|
|
617
|
+
}
|
|
618
|
+
div[draggable=true].hideDragCellContent.content-icon-Form:before{
|
|
619
|
+
content:"\f11c";
|
|
620
|
+
}
|
|
621
|
+
div[draggable=true].hideDragCellContent.content-icon-Grid:before,
|
|
622
|
+
div[draggable=true].hideDragCellContent.content-icon-Graph:before,
|
|
623
|
+
div[draggable=true].hideDragCellContent.content-icon-Border:before,
|
|
624
|
+
div[draggable=true].hideDragCellContent.content-icon-Tabbed:before,
|
|
625
|
+
div[draggable=true].hideDragCellContent.content-icon-Accordion:before,
|
|
626
|
+
div[draggable=true].hideDragCellContent.content-icon-MultiChart:before,
|
|
627
|
+
div[draggable=true].hideDragCellContent.content-icon-MultiChartSurface:before{
|
|
628
|
+
content:"\f247";
|
|
629
|
+
}
|
|
630
|
+
div[draggable=true].hideDragCellContent.content-icon-ChoroplethStates:before,
|
|
631
|
+
div[draggable=true].hideDragCellContent.content-icon-ChoroplethStatesHeat:before,
|
|
632
|
+
div[draggable=true].hideDragCellContent.content-icon-ChoroplethCounties:before,
|
|
633
|
+
div[draggable=true].hideDragCellContent.content-icon-ChoroplethCountries:before,
|
|
634
|
+
div[draggable=true].hideDragCellContent.content-icon-GMap:before,
|
|
635
|
+
div[draggable=true].hideDragCellContent.content-icon-GMapHeat:before,
|
|
636
|
+
div[draggable=true].hideDragCellContent.content-icon-GMapGraph:before{
|
|
637
|
+
content:"\f278";
|
|
638
|
+
}
|
|
639
|
+
div[draggable=true].hideDragCellContent.content-icon-Text:before,
|
|
640
|
+
div[draggable=true].hideDragCellContent.content-icon-TextBox:before,
|
|
641
|
+
div[draggable=true].hideDragCellContent.content-icon-FAChar:before{
|
|
642
|
+
content:"\f278";
|
|
643
|
+
}
|
|
644
|
+
`,document.head.appendChild(t)}})();var it=class extends qa{static{d(this,"v")}static{w(this,"Surface")}_surfaceButtons;constructor(){super(),this._tag="div",this._surfaceButtons=[]}widgetSize(t,e){let i=this.clientWidth(),o=this.clientHeight();return this.title()&&(o-=this.calcHeight(t)),o-=this.calcFrameHeight(e),i-=this.calcFrameWidth(e),{width:i,height:o}}enter(t,e){super.enter(t,e)}update(t,e){super.update(t,e);let i=this;e.classed("shadow2",this.surfaceShadow()).style("border-width",this.surfaceBorderWidth_exists()?this.surfaceBorderWidth()+"px":null).style("border-color",this.surfaceBorderColor()).style("border-radius",this.surfaceBorderRadius_exists()?this.surfaceBorderRadius()+"px":null).style("background-color",this.surfaceBackgroundColor());let o=e.selectAll(".surfaceTitle").data(this.title()?[this.title()]:[]);o.enter().insert("h3","div").attr("class","surfaceTitle").merge(o).text(function(n){return n}).style("text-align",this.surfaceTitleAlignment()).style("color",this.surfaceTitleFontColor()).style("font-size",this.surfaceTitleFontSize_exists()?this.surfaceTitleFontSize()+"px":null).style("font-family",this.surfaceTitleFontFamily()).style("font-weight",this.surfaceTitleFontBold()?"bold":"normal").style("background-color",this.surfaceTitleBackgroundColor()).style("padding",this.surfaceTitlePadding_exists()?this.surfaceTitlePadding()+"px":null).style("title",this.altText_exists()?this.altText():null),o.exit().remove();let r=e.select(".surfaceTitle").append("div").attr("class","html-button-container").selectAll(".surface-button").data(this.buttonAnnotations());r.enter().append("button").classed("surface-button",!0).each(function(n,s){let a=i._surfaceButtons[s]=Si(this).attr("class","surface-button"+(n.class?" "+n.class:"")).attr("id",n.id).style("padding",n.padding).style("width",n.width).style("height",n.height).style("cursor","pointer");n.font==="FontAwesome"?a.style("background","transparent").style("border","none").on("click",function(c){i.click(c)}).append("i").attr("class","fa").text(function(){return n.label}):a.text(function(){return n.label}).on("click",function(c){i.click(c)})}),r.exit().each(function(n,s){let a=Si(this);delete i._surfaceButtons[s],a.remove()});let l=e.selectAll("#"+this._id+" > .surfaceWidget").data(this.widget()?[this.widget()]:[],function(n){return n._id});l.enter().append("div").attr("class","surfaceWidget").each(function(n){Si(i.element().node().parentElement).classed("content-icon content-icon-"+n.classID().split("_")[1],!0),n.target(this)}).merge(l).style("padding",this.surfacePadding_exists()?this.surfacePadding()+"px":null).each(function(n){let s=i.widgetSize(e.select("h3"),Si(this));s.width<0&&(s.width=0),s.height<0&&(s.height=0),n.resize({width:s.width,height:s.height})}),l.exit().each(function(n){n.target(null)}).remove()}exit(t,e){this.widget()&&this.widget().target(null),super.exit(t,e)}click(t){}};it.prototype._class+=" layout_Surface";it.prototype.publish("title","","string","Title",null,{tags:["Intermediate"]});it.prototype.publish("altText",null,"string","Alt text",null,{optional:!0});it.prototype.publish("surfaceTitlePadding",null,"number","Title Padding (px)",null,{tags:["Advanced"],disable:w(t=>!t.title(),"disable")});it.prototype.publish("surfaceTitleFontSize",null,"number","Title Font Size (px)",null,{tags:["Advanced"],disable:w(t=>!t.title(),"disable")});it.prototype.publish("surfaceTitleFontColor",null,"html-color","Title Font Color",null,{tags:["Advanced"],disable:w(t=>!t.title(),"disable")});it.prototype.publish("surfaceTitleFontFamily",null,"string","Title Font Family",null,{tags:["Advanced"],disable:w(t=>!t.title(),"disable")});it.prototype.publish("surfaceTitleFontBold",!0,"boolean","Enable Bold Title Font",null,{tags:["Advanced"],disable:w(t=>!t.title(),"disable")});it.prototype.publish("surfaceTitleBackgroundColor",null,"html-color","Title Background Color",null,{tags:["Advanced"],disable:w(t=>!t.title(),"disable")});it.prototype.publish("surfaceTitleAlignment","center","set","Title Alignment",["left","right","center"],{tags:["Basic"],disable:w(t=>!t.title(),"disable")});it.prototype.publish("surfaceShadow",!1,"boolean","3D Shadow");it.prototype.publish("surfacePadding",null,"string","Surface Padding (px)",null,{tags:["Intermediate"]});it.prototype.publish("surfaceBackgroundColor",null,"html-color","Surface Background Color",null,{tags:["Advanced"]});it.prototype.publish("surfaceBorderWidth",null,"number","Surface Border Width (px)",null,{tags:["Advanced"]});it.prototype.publish("surfaceBorderColor",null,"html-color","Surface Border Color",null,{tags:["Advanced"]});it.prototype.publish("surfaceBorderRadius",null,"number","Surface Border Radius (px)",null,{tags:["Advanced"]});it.prototype.publish("buttonAnnotations",[],"array","Button Array",null,{tags:["Private"]});it.prototype.publish("widget",null,"widget","Widget",null,{tags:["Basic"]});(function(){if(!document.getElementById("bc383397")){var t=document.createElement("style");t.id="bc383397",t.textContent=`.layout_Cell .update-indicator {
|
|
645
|
+
box-sizing: border-box;
|
|
646
|
+
position: absolute;
|
|
647
|
+
top: 0px;
|
|
648
|
+
left: 0px;
|
|
649
|
+
padding: 0px;
|
|
650
|
+
z-index: 1000;
|
|
651
|
+
border-width: 0px;
|
|
652
|
+
border-style: solid;
|
|
653
|
+
pointer-events: none;
|
|
654
|
+
}
|
|
655
|
+
`,document.head.appendChild(t)}})();var Rt=class extends it{static{d(this,"k")}static{w(this,"Cell")}_indicateTheseIds;constructor(){super(),this._indicateTheseIds=[]}indicateTheseIds(t){return arguments.length?(this._indicateTheseIds=t,this):this._indicateTheseIds}enter(t,e){super.enter(t,e);let i=this;e.classed("layout_Surface",!0).on("mouseenter",function(){i.onMouseEnter()}).on("mouseleave",function(){i.onMouseLeave()})}update(t,e){super.update(t,e)}onMouseEnter(){let t=this.indicateTheseIds(),e=this.indicatorOpacity(),i=this.indicatorBorderColor(),o=this.indicatorGlowColor();for(let r=0;r<t.length;r++){let l=Xa("#"+t[r]),n=l.datum();l&&n&&l.append("div").attr("class","update-indicator").style("width",n.width()+"px").style("height",n.height()+"px").style("opacity",e).style("border-color",i).style("-webkit-box-shadow","inset 0px 0px 30px 0px "+o).style("-moz-box-shadow","inset 0px 0px 30px 0px "+o).style("box-shadow","inset 0px 0px 30px 0px "+o)}}onMouseLeave(){let t=this.indicateTheseIds();for(let e=0;e<t.length;e++)Ka("#"+t[e]+" > div.update-indicator").remove()}};Rt.prototype._class+=" layout_Cell";Rt.prototype.publish("gridRow",0,"number","Grid Row Position",null,{tags:["Private"]});Rt.prototype.publish("gridCol",0,"number","Grid Column Position",null,{tags:["Private"]});Rt.prototype.publish("gridRowSpan",1,"number","Grid Row Span",null,{tags:["Private"]});Rt.prototype.publish("gridColSpan",1,"number","Grid Column Span",null,{tags:["Private"]});Rt.prototype.publish("indicatorGlowColor","#EEEE11","html-color","Glow color of update-indicator",null,{tags:["Basic"]});Rt.prototype.publish("indicatorBorderColor","#F48A00","html-color","Border color of update-indicator",null,{tags:["Basic"]});Rt.prototype.publish("indicatorOpacity",.8,"number","Opacity of update-indicator",null,{tags:["Basic"]});(function(){if(!document.getElementById("df37b09f")){var t=document.createElement("style");t.id="df37b09f",t.textContent=`.layout_Border{
|
|
656
|
+
width: 100%;
|
|
657
|
+
height: 100%;
|
|
658
|
+
}
|
|
659
|
+
.layout_Border > .border-content{
|
|
660
|
+
width: 100%;
|
|
661
|
+
height: 100%;
|
|
662
|
+
position:relative;
|
|
663
|
+
}
|
|
664
|
+
.layout_Border > .borderHandle{
|
|
665
|
+
width: 6px;
|
|
666
|
+
height: 6px;
|
|
667
|
+
background-color: #444;
|
|
668
|
+
opacity: 0.3;
|
|
669
|
+
position:absolute;
|
|
670
|
+
visibility:hidden;
|
|
671
|
+
}
|
|
672
|
+
.layout_Border.design-mode > .borderHandle{
|
|
673
|
+
visibility:visible;
|
|
674
|
+
}
|
|
675
|
+
.layout_Border > .borderHandle:hover{
|
|
676
|
+
background-color: #666;
|
|
677
|
+
}
|
|
678
|
+
.layout_Border > .borderHandle.borderHandleDisabled{
|
|
679
|
+
display:none;
|
|
680
|
+
}
|
|
681
|
+
.layout_Border > .borderHandle_top,
|
|
682
|
+
.layout_Border > .borderHandle_bottom
|
|
683
|
+
{
|
|
684
|
+
cursor:ns-resize;
|
|
685
|
+
}
|
|
686
|
+
.layout_Border > .borderHandle_left,
|
|
687
|
+
.layout_Border > .borderHandle_right
|
|
688
|
+
{
|
|
689
|
+
cursor:ew-resize;
|
|
690
|
+
}
|
|
691
|
+
.layout_Border .cell {
|
|
692
|
+
border-radius: 5px;
|
|
693
|
+
border: 1px solid #e5e5e5;
|
|
694
|
+
display: inline-block;
|
|
695
|
+
overflow: hidden;
|
|
696
|
+
}
|
|
697
|
+
|
|
698
|
+
.layout_Border .cell h2 {
|
|
699
|
+
margin: 0px;
|
|
700
|
+
padding-top: 4px;
|
|
701
|
+
-webkit-margin: 0px;
|
|
702
|
+
text-align: center;
|
|
703
|
+
}
|
|
704
|
+
|
|
705
|
+
.layout_Border .layout_BorderCell.over {
|
|
706
|
+
border: 2px dashed #000;
|
|
707
|
+
}
|
|
708
|
+
.layout_Border .dragItem {
|
|
709
|
+
z-index: -1;
|
|
710
|
+
opacity:0.33;
|
|
711
|
+
}
|
|
712
|
+
|
|
713
|
+
.layout_Border .notDragItem {
|
|
714
|
+
z-index: -1;
|
|
715
|
+
opacity: 1;
|
|
716
|
+
}
|
|
717
|
+
.layout_Border div[draggable=true] {
|
|
718
|
+
opacity: 0.75;
|
|
719
|
+
cursor: default;
|
|
720
|
+
}
|
|
721
|
+
|
|
722
|
+
.layout_Border div[draggable=true] .dragHandle {
|
|
723
|
+
opacity: 1.0;
|
|
724
|
+
}
|
|
725
|
+
|
|
726
|
+
.layout_Border div[draggable=true] .dragHandle_n,
|
|
727
|
+
.layout_Border div[draggable=true] .dragHandle_e,
|
|
728
|
+
.layout_Border div[draggable=true] .dragHandle_s,
|
|
729
|
+
.layout_Border div[draggable=true] .dragHandle_w{
|
|
730
|
+
background-color:#AAA;
|
|
731
|
+
}
|
|
732
|
+
|
|
733
|
+
.layout_Border div[draggable=true] .dragHandle_nw,
|
|
734
|
+
.layout_Border div[draggable=true] .dragHandle_ne,
|
|
735
|
+
.layout_Border div[draggable=true] .dragHandle_se,
|
|
736
|
+
.layout_Border div[draggable=true] .dragHandle_sw {
|
|
737
|
+
background-color:#333;
|
|
738
|
+
}
|
|
739
|
+
|
|
740
|
+
.layout_Border div[draggable=true] .dragHandle_nw {
|
|
741
|
+
cursor:nw-resize;
|
|
742
|
+
}
|
|
743
|
+
|
|
744
|
+
.layout_Border div[draggable=true] .dragHandle_n {
|
|
745
|
+
cursor:n-resize;
|
|
746
|
+
}
|
|
747
|
+
|
|
748
|
+
.layout_Border div[draggable=true] .dragHandle_ne {
|
|
749
|
+
cursor:ne-resize;
|
|
750
|
+
}
|
|
751
|
+
|
|
752
|
+
.layout_Border div[draggable=true] .dragHandle_e {
|
|
753
|
+
cursor:e-resize;
|
|
754
|
+
}
|
|
755
|
+
|
|
756
|
+
.layout_Border div[draggable=true] .dragHandle_se {
|
|
757
|
+
cursor:se-resize;
|
|
758
|
+
}
|
|
759
|
+
|
|
760
|
+
.layout_Border div[draggable=true] .dragHandle_s {
|
|
761
|
+
cursor:s-resize;
|
|
762
|
+
}
|
|
763
|
+
|
|
764
|
+
.layout_Border div[draggable=true] .dragHandle_sw {
|
|
765
|
+
cursor:sw-resize;
|
|
766
|
+
}
|
|
767
|
+
|
|
768
|
+
.layout_Border div[draggable=true] .dragHandle_w {
|
|
769
|
+
cursor:w-resize;
|
|
770
|
+
}
|
|
771
|
+
|
|
772
|
+
.layout_Border div[draggable=false] > div > .dragHandle {
|
|
773
|
+
display:none;
|
|
774
|
+
}
|
|
775
|
+
|
|
776
|
+
.layout_Border .grid-drop-target{
|
|
777
|
+
position:fixed;
|
|
778
|
+
box-sizing:border-box;
|
|
779
|
+
border:2px dashed #7f8c8d;
|
|
780
|
+
border-radius:0px;
|
|
781
|
+
background: repeating-linear-gradient(
|
|
782
|
+
-45deg,
|
|
783
|
+
rgba(0, 0, 0, 0),
|
|
784
|
+
rgba(0, 0, 0, 0) 4px,
|
|
785
|
+
rgba(100, 100, 100, 0.1) 4px,
|
|
786
|
+
rgba(100, 100, 100, 0.1) 8px
|
|
787
|
+
);
|
|
788
|
+
}
|
|
789
|
+
|
|
790
|
+
.layout_Border .grid-drop-target.drop-target-over{
|
|
791
|
+
border:2px dashed #179BD7;
|
|
792
|
+
background: repeating-linear-gradient(
|
|
793
|
+
-45deg,
|
|
794
|
+
rgba(0, 0, 0, 0),
|
|
795
|
+
rgba(0, 0, 0, 0) 6px,
|
|
796
|
+
rgba(17, 155, 215, 0.1) 6px,
|
|
797
|
+
rgba(17, 155, 215, 0.1) 12px
|
|
798
|
+
);
|
|
799
|
+
}`,document.head.appendChild(t)}})();var Z=class extends rn{static{d(this,"z")}static{w(this,"Border")}_colCount;_rowCount;_colSize;_rowSize;_shrinkWrapBoxes;_watch;_offsetX;_offsetY;_dragCell;_dragCellSize;_dragCellStartSize;_handleTop;_handleLeft;_dragPrevX;_dragPrevY;_cellSizes;contentDiv;_scrollBarWidth;_borderHandles;_sectionTypeArr;constructor(){super(),this._tag="div",this._colCount=0,this._rowCount=0,this._colSize=0,this._rowSize=0,this._shrinkWrapBoxes={},this.content([]),this.sectionTypes([])}watchWidget(t){if(this._watch===void 0&&(this._watch={}),this._watch[t.id()]&&(this._watch[t.id()].remove(),delete this._watch[t.id()]),t){let e=this;this._watch[t.id()]=t.monitor(function(i,o,r){r!==o&&e.lazyPostUpdate()})}}lazyPostUpdate=ja.debounce(function(){this.postUpdate()},100);applyLayoutType(){let t=this.borderLayoutObject();this.content().forEach(function(e,i){e._fixedLeft=t[this.sectionTypes()[i]].left,e._fixedTop=t[this.sectionTypes()[i]].top,e._fixedWidth=t[this.sectionTypes()[i]].width,e._fixedHeight=t[this.sectionTypes()[i]].height,e._dragHandles=this.cellSpecificDragHandles(this.sectionTypes()[i])},this)}cellSpecificDragHandles(t){switch(t){case"top":return["s"];case"right":return["w"];case"bottom":return["n"];case"left":return["e"];case"center":return[]}}borderLayoutObject(t){let e={},i=this,o,r,l,n,s,a,c,g,u=this.target().getBoundingClientRect(),f={};f.top=u.top,f.left=u.left,f.bottom=u.bottom,f.right=u.right,this.target()instanceof SVGElement?(f.width=parseFloat(this.target().getAttribute("width")),f.height=parseFloat(this.target().getAttribute("height"))):(f.width=u.width,f.height=u.height),this.sectionTypes().indexOf("top")!==-1&&(o=this.topSize(),r=this.topPercentage(),typeof this._shrinkWrapBoxes.top<"u"&&(o=this._shrinkWrapBoxes.top.height+this.gutter(),r=0)),this.sectionTypes().indexOf("bottom")!==-1&&(l=this.bottomSize(),n=this.bottomPercentage(),typeof this._shrinkWrapBoxes.bottom<"u"&&(l=this._shrinkWrapBoxes.bottom.height+this.gutter(),n=0)),this.sectionTypes().indexOf("left")!==-1&&(s=this.leftSize(),a=this.leftPercentage(),typeof this._shrinkWrapBoxes.left<"u"&&(s=this._shrinkWrapBoxes.left.width+this.gutter(),a=0)),this.sectionTypes().indexOf("right")!==-1&&(c=this.rightSize(),g=this.rightPercentage(),typeof this._shrinkWrapBoxes.right<"u"&&(c=this._shrinkWrapBoxes.right.width+this.gutter(),g=0));let p=S({width:{px:0,"%":100},height:{px:o,"%":r},top:{px:0,"%":0},left:{px:0,"%":0}}),y=S({width:{px:0,"%":100},height:{px:l,"%":n},top:{px:0,"%":100},left:{px:0,"%":0}});y.top-=y.height;let C=S({width:{px:s,"%":a},height:{px:-p.height-y.height,"%":100},top:{px:p.height,"%":0},left:{px:0,"%":0}}),x=S({width:{px:c,"%":g},height:{px:-p.height-y.height,"%":100},top:{px:p.height,"%":0},left:{px:0,"%":100}});x.left-=x.width;let b=S({width:{px:-x.width-C.width,"%":100},height:{px:-p.height-y.height,"%":100},top:{px:p.height,"%":0},left:{px:C.width,"%":0}});return e.top=p,e.bottom=y,e.right=x,e.left=C,e.center=b,e;function S(k){return k.width.px=typeof k.width.px<"u"?k.width.px:0,k.width["%"]=typeof k.width["%"]<"u"?k.width["%"]:0,k.height.px=typeof k.height.px<"u"?k.height.px:0,k.height["%"]=typeof k.height["%"]<"u"?k.height["%"]:0,{width:k.width.px+k.width["%"]/100*i.width(),height:k.height.px+k.height["%"]/100*i.height(),top:k.top.px+k.top["%"]/100*i.height()+i.gutter()/2,left:k.left.px+k.left["%"]/100*i.width()+i.gutter()/2}}}clearContent(t){if(!t)this.content().forEach(function(e){return e.target(null),!1}),Bt("#"+this.id()+" > div.borderHandle").classed("borderHandleDisabled",!0),delete this._watch,this.content([]),this.sectionTypes([]);else{let e=this.sectionTypes().indexOf(t);e>=0&&(this._watch&&this.content()[e]&&delete this._watch[this.content()[e].id()],this.content()[e].target(null),Bt("#"+this.id()+" > div.borderHandle_"+t).classed("borderHandleDisabled",!0),this.content().splice(e,1),this.sectionTypes().splice(e,1))}}hasContent(t,e,i){return this.sectionTypes().indexOf(t)>=0}setContent(t,e,i){if(this.clearContent(t),i=typeof i<"u"?i:"",e){let o=new Rt().surfaceBorderWidth(0).widget(e).title(i);this.watchWidget(e),this.content().push(o),this.sectionTypes().push(t)}return this}getCell(t){let e=this.sectionTypes().indexOf(t);return e>=0?this.content()[e]:null}getContent(t){let e=this.sectionTypes().indexOf(t);return e>=0?this.content()[e].widget():null}setLayoutOffsets(){this._offsetX=this._element.node().getBoundingClientRect().left+this.gutter()/2,this._offsetY=this._element.node().getBoundingClientRect().top+this.gutter()/2}dragStart(t){let e=Ao();e.sourceEvent.stopPropagation();let i=this;this._dragCell=t,this._dragCellStartSize=this[t+"Size"](),this[t+"ShrinkWrap"]()&&(this[t+"Percentage"](0),this[t+"ShrinkWrap"](!1));let o=Bt("#"+i.id()+" > div.borderHandle_"+t);i._handleTop=parseFloat(o.style("top").split("px")[0]),i._handleLeft=parseFloat(o.style("left").split("px")[0]),this._dragPrevX=e.sourceEvent.clientX,this._dragPrevY=e.sourceEvent.clientY}dragTick(t){let e=this,i=Ao(),o=this._dragPrevX-i.sourceEvent.clientX,r=this._dragPrevY-i.sourceEvent.clientY;switch(t){case"top":case"bottom":l(t,r);break;case"right":case"left":l(t,o);break}function l(n,s){if(s===0)return;let a=$a("#"+e.id()+" > div.borderHandle"),c=Bt("#"+e.id()+" > div.borderHandle_"+n);c.classed("borderHandle_top")?(c.style("top",e._handleTop-s+"px"),e._cellSizes.topHeight=e._handleTop-s,e._cellSizes.leftHeight=e._cellSizes.height,e._cellSizes.leftHeight-=e._cellSizes.topHeight,e._cellSizes.leftHeight-=e._cellSizes.bottomHeight,e._cellSizes.rightHeight=e._cellSizes.leftHeight):c.classed("borderHandle_right")?(c.style("left",e._handleLeft-s+"px"),e._cellSizes.rightWidth=e._cellSizes.width-e._handleLeft+s):c.classed("borderHandle_bottom")?(c.style("top",e._handleTop-s+"px"),e._cellSizes.bottomHeight=e._cellSizes.height-e._handleTop+s,e._cellSizes.leftHeight=e._cellSizes.height,e._cellSizes.leftHeight-=e._cellSizes.bottomHeight,e._cellSizes.leftHeight-=e._cellSizes.topHeight,e._cellSizes.rightHeight=e._cellSizes.leftHeight):c.classed("borderHandle_left")&&(c.style("left",e._handleLeft-s+"px"),e._cellSizes.leftWidth=e._handleLeft-s),a.each(function(){let g=Bt(this);g.classed("borderHandle_top")?(g.style("width",e._cellSizes.width+"px"),g.style("top",e._cellSizes.topHeight-3+"px")):g.classed("borderHandle_right")?(g.style("left",e._cellSizes.width-e._cellSizes.rightWidth+"px"),g.style("top",e._cellSizes.topHeight+3+"px"),g.style("height",e._cellSizes.rightHeight+"px")):g.classed("borderHandle_bottom")?(g.style("width",e._cellSizes.width+"px"),g.style("top",e._cellSizes.height-e._cellSizes.bottomHeight-3+"px")):g.classed("borderHandle_left")&&(g.style("left",e._cellSizes.leftWidth+"px"),g.style("height",e._cellSizes.leftHeight+"px"),g.style("top",e._cellSizes.topHeight+3+"px"))})}d(l,"s"),w(l,"_moveHandles")}dragEnd(t){if(t){let e=Ao(),i=this._dragPrevX-e.sourceEvent.clientX,o=this._dragPrevY-e.sourceEvent.clientY;switch(t){case"top":o!==0&&(this.topPercentage(0),this.topSize(this.topSize()===0?this.getContent("top").getBBox().height-o:this.topSize()-o));break;case"right":i!==0&&(this.rightPercentage(0),this.rightSize(this.rightSize()===0?this.getContent("right").getBBox().width+i:this.rightSize()+i));break;case"bottom":o!==0&&(this.bottomPercentage(0),this.bottomSize(this.bottomSize()===0?this.getContent("bottom").getBBox().height+o:this.bottomSize()+o));break;case"left":i!==0&&(this.leftPercentage(0),this.leftSize(this.leftSize()===0?this.getContent("left").getBBox().width-i:this.leftSize()-i));break}this._dragPrevX=e.sourceEvent.clientX,this._dragPrevY=e.sourceEvent.clientY}this.render()}size(t){let e=rn.prototype.size.apply(this,arguments);return arguments.length&&this.contentDiv&&this.contentDiv.style("width",this._size.width+"px").style("height",this._size.height+"px"),e}enter(t,e){super.enter(t,e);let i=this;e.style("position","relative"),this.contentDiv=e.append("div").classed("border-content",!0),this._scrollBarWidth=Va.getScrollbarWidth(),this._borderHandles=["top","left","right","bottom"],e.selectAll("div.borderHandle").data(this._borderHandles).enter().append("div").classed("borderHandle",!0).each(function(o){Bt(this).classed("borderHandle_"+o,!0).classed("borderHandleDisabled",i.getContent(o)===null)})}update(t,e){super.update(t,e),this._sectionTypeArr=this.sectionTypes();let i=this;e.classed("design-mode",this.designMode()),this.setLayoutOffsets();let o=this.contentDiv.selectAll(".cell_"+this._id).data(this.content(),function(s){return s._id}),r=o.enter().append("div").classed("cell_"+this._id,!0).style("position","absolute").each(function(s,a){Bt(this).classed("border-cell border-cell-"+i._sectionTypeArr[a],!0),s.target(this),Bt("#"+i.id()+" > div.borderHandle_"+i._sectionTypeArr[a]).classed("borderHandleDisabled",!1)}).merge(o);r.each(function(s,a){let c=i.sectionTypes()[a];typeof i[c+"ShrinkWrap"]<"u"&&i[c+"ShrinkWrap"]()?(s.render(),i._shrinkWrapBoxes[c]=s.widget().getBBox(!0)):delete i._shrinkWrapBoxes[c]});let l=Ya().on("start",function(s,a){i.dragStart.call(i,s,a)}).on("drag",function(s,a){i.dragTick.call(i,s,a)}).on("end",function(s,a){i.dragEnd.call(i,s,a)});this.designMode()?e.selectAll("#"+this.id()+" > div.borderHandle").call(l):e.selectAll("#"+this.id()+" > div.borderHandle").on(".drag",null);let n=this.borderLayoutObject();this.content().forEach(function(s,a){s._fixedLeft=n[this.sectionTypes()[a]].left,s._fixedTop=n[this.sectionTypes()[a]].top,s._fixedWidth=n[this.sectionTypes()[a]].width,s._fixedHeight=n[this.sectionTypes()[a]].height,s._dragHandles=[]},this),r.style("left",function(s){return s._fixedLeft+"px"}).style("top",function(s){return s._fixedTop+"px"}).style("width",function(s){return s._fixedWidth-i.gutter()+"px"}).style("height",function(s){return s._fixedHeight-i.gutter()+"px"}).each(function(s){s._placeholderElement.attr("draggable",i.designMode()).selectAll(".dragHandle").attr("draggable",i.designMode()),s.surfacePadding(i.surfacePadding()).resize()}),o.exit().each(function(s){s.target(null)}).remove(),this.getCellSizes(),e.selectAll("#"+this.id()+" > div.borderHandle").each(function(){let s=Bt(this);s.classed("borderHandle_top")?(s.style("width",i._cellSizes.width+"px"),s.style("top",i._cellSizes.topHeight-3+"px")):s.classed("borderHandle_right")?(s.style("left",i._cellSizes.width-i._cellSizes.rightWidth+"px"),s.style("top",i._cellSizes.topHeight+3+"px"),s.style("height",i._cellSizes.rightHeight+"px")):s.classed("borderHandle_bottom")?(s.style("width",i._cellSizes.width+"px"),s.style("top",i._cellSizes.height-i._cellSizes.bottomHeight-3+"px")):s.classed("borderHandle_left")&&(s.style("left",i._cellSizes.leftWidth+"px"),s.style("height",i._cellSizes.leftHeight+"px"),s.style("top",i._cellSizes.topHeight+3+"px"))})}getCellSizes(){let t=this;t._cellSizes={};let e=this.element().node().getBoundingClientRect();t._cellSizes.width=e.width,t._cellSizes.height=e.height,this.element().selectAll("#"+this.id()+" > div > div.border-cell").each(function(){let i=Bt(this);if(typeof i.node=="function"){let o=i.node().getBoundingClientRect();i.classed("border-cell-top")?t._cellSizes.topHeight=o.height:i.classed("border-cell-left")?(t._cellSizes.leftWidth=o.width,t._cellSizes.leftHeight=o.height):i.classed("border-cell-right")?(t._cellSizes.rightWidth=o.width,t._cellSizes.rightHeight=o.height):i.classed("border-cell-bottom")&&(t._cellSizes.bottomHeight=o.height)}}),["height","width","topHeight","bottomHeight","leftHeight","rightHeight","leftWidth","rightWidth"].forEach(function(i){t._cellSizes[i]=t._cellSizes[i]===void 0?0:t._cellSizes[i]})}postUpdate(t,e){let i=this;this.content().forEach(function(o){if(o._element.node()!==null&&o.widget()){let r=o.widget().getBBox(!1,!0),l=o.widget().getBBox(!0,!0);(r.width!==l.width||r.height!==l.height)&&i.lazyRender()}})}exit(t,e){this.content().forEach(i=>i.target(null)),super.exit(t,e)}};Z.prototype._class+=" layout_Border";Z.prototype.publish("designMode",!1,"boolean","Design Mode",null,{tags:["Basic"]});Z.prototype.publish("content",[],"widgetArray","widgets",null,{tags:["Intermediate"]});Z.prototype.publish("gutter",0,"number","Gap Between Widgets",null,{tags:["Basic"]});Z.prototype.publish("topShrinkWrap",!1,"boolean","'Top' Cell shrinks to fit content",null,{tags:["Intermediate"]});Z.prototype.publish("leftShrinkWrap",!1,"boolean","'Left' Cell shrinks to fit content",null,{tags:["Intermediate"]});Z.prototype.publish("rightShrinkWrap",!1,"boolean","'Right' Cell shrinks to fit content",null,{tags:["Intermediate"]});Z.prototype.publish("bottomShrinkWrap",!1,"boolean","'Bottom' Cell shrinks to fit content",null,{tags:["Intermediate"]});Z.prototype.publish("topSize",0,"number","Height of the 'Top' Cell (px)",null,{tags:["Private"]});Z.prototype.publish("leftSize",0,"number","Width of the 'Left' Cell (px)",null,{tags:["Private"]});Z.prototype.publish("rightSize",0,"number","Width of the 'Right' Cell (px)",null,{tags:["Private"]});Z.prototype.publish("bottomSize",0,"number","Height of the 'Bottom' Cell (px)",null,{tags:["Private"]});Z.prototype.publish("topPercentage",20,"number","Percentage (of parent) Height of the 'Top' Cell",null,{tags:["Private"]});Z.prototype.publish("leftPercentage",20,"number","Percentage (of parent) Width of the 'Left' Cell",null,{tags:["Private"]});Z.prototype.publish("rightPercentage",20,"number","Percentage (of parent) Width of the 'Right' Cell",null,{tags:["Private"]});Z.prototype.publish("bottomPercentage",20,"number","Percentage (of parent) Height of the 'Bottom' Cell",null,{tags:["Private"]});Z.prototype.publish("surfacePadding",0,"number","Cell Padding (px)",null,{tags:["Intermediate"]});Z.prototype.publish("sectionTypes",[],"array","Section Types sharing an index with 'content' - Used to determine position/size.",null,{tags:["Private"]});(function(){if(!document.getElementById("23362289")){var t=document.createElement("style");t.id="23362289",t.textContent=`.layout_Border2 {
|
|
800
|
+
display: flex;
|
|
801
|
+
flex-direction: column;
|
|
802
|
+
}
|
|
803
|
+
.layout_Border2 > .body {
|
|
804
|
+
margin: 0;
|
|
805
|
+
padding: 0;
|
|
806
|
+
display: flex;
|
|
807
|
+
flex-flow: row;
|
|
808
|
+
}
|
|
809
|
+
|
|
810
|
+
.layout_Border2 > .body > .center {
|
|
811
|
+
flex: 1;
|
|
812
|
+
}
|
|
813
|
+
|
|
814
|
+
.layout_Border2 > .header {
|
|
815
|
+
display: block;
|
|
816
|
+
}
|
|
817
|
+
|
|
818
|
+
.layout_Border2 > .footer {
|
|
819
|
+
display: block;
|
|
820
|
+
}
|
|
821
|
+
`,document.head.appendChild(t)}})();var je=class{static{d(this,"Z")}static{w(this,"WidgetDiv")}_div;_overlay=!1;_overflowX="visible";_overflowY="visible";_widget;constructor(t){this._div=t}overlay(t){return arguments.length?(this._overlay=t,this):this._overlay}overflowX(t){return arguments.length?(this._overflowX=t,this._div.style("overflow-x",t),this):this._overflowX}overflowY(t){return arguments.length?(this._overflowY=t,this._div.style("overflow-y",t),this):this._overflowY}element(){return this._div}node(){return this._div.node()}widget(t){return arguments.length?(this._widget!==t&&(this._widget&&this._widget.target(null),this._widget=t,this._widget&&this._widget.target(this._div.node())),this):this._widget}resize(t){return this._widget&&(this._div.style("width",`${t.width}px`).style("height",`${t.height}px`),this._widget.resize(t)),this}async render(t,e,i){let o=this.overflowX();!this.overlay()&&o==="visible"&&(o=null);let r=this.overflowY();return!this.overlay()&&r==="visible"&&(r=null),this._div.style("height",this.overlay()?"0px":null).style("overflow-x",o).style("overflow-y",r),this._widget?this._widget.renderPromise().then(l=>{if(t&&this._widget.visible()){let n=this._widget.getBBox();return n.width+=8,e!==void 0&&n.height>e&&(n.width+=ln.getScrollbarWidth()),i!==void 0&&n.width>i&&(n.height+=ln.getScrollbarWidth()),this.overlay()?n.height=0:n.height+=4,n}return t?{x:0,y:0,width:0,height:0}:void 0}):Promise.resolve(t?{x:0,y:0,width:0,height:0}:void 0)}},J=class extends Ja{static{d(this,"x")}static{w(this,"Border2")}_bodyElement;_topWA;_leftWA;_centerWA;_rightWA;_bottomWA;_topPrevOverflow;_leftPrevOverflow;_rightPrevOverflow;_bottomPrevOverflow;constructor(){super(),this._tag="div"}enter(t,e){super.enter(t,e);let i=e.append("header");this._bodyElement=e.append("div").attr("class","body");let o=this._bodyElement.append("div").attr("class","center"),r=this._bodyElement.append("div").attr("class","lhs"),l=this._bodyElement.append("div").attr("class","rhs"),n=e.append("div").attr("class","footer");this._topWA=new je(i),this._centerWA=new je(o),this._leftWA=new je(r),this._rightWA=new je(l),this._bottomWA=new je(n)}update(t,e){super.update(t,e),this._topWA.element().style("display",this.showTop()?null:"none"),this._rightWA.element().style("display",this.showRight()?null:"none"),this._bottomWA.element().style("display",this.showBottom()?null:"none"),this._leftWA.element().style("display",this.showLeft()?null:"none"),this.topOverflowX()!==this._topWA.overflowX()&&this._topWA.overflowX(this.topOverflowX()),this.rightOverflowX()!==this._rightWA.overflowX()&&this._rightWA.overflowX(this.rightOverflowX()),this.bottomOverflowX()!==this._bottomWA.overflowX()&&this._bottomWA.overflowX(this.bottomOverflowX()),this.leftOverflowX()!==this._leftWA.overflowX()&&this._leftWA.overflowX(this.leftOverflowX()),this.topOverflowY()!==this._topWA.overflowY()&&this._topWA.overflowY(this.topOverflowY()),this.rightOverflowY()!==this._rightWA.overflowY()&&this._rightWA.overflowY(this.rightOverflowY()),this.bottomOverflowY()!==this._bottomWA.overflowY()&&this._bottomWA.overflowY(this.bottomOverflowY()),this.leftOverflowY()!==this._leftWA.overflowY()&&this._leftWA.overflowY(this.leftOverflowY()),this.element().style("width",`${this.width()}px`).style("height",`${this.height()}px`)}targetNull(t){t&&t.target(null)}exit(t,e){this.targetNull(this.center()),this.targetNull(this.bottom()),this.targetNull(this.right()),this.targetNull(this.left()),this.targetNull(this.top()),super.exit(t,e)}swap(t,e){let i=this[t](),o=this[e]();return this.targetNull(i),this.targetNull(o),this[`_${t}WA`].widget(null),this[`_${e}WA`].widget(null),this[t](o),this[e](i),this}render(t){return super.render(e=>{this._topWA?this._topWA.widget(this.top()).overlay(this.topOverlay()).render(!0).then(async i=>{let o=await this._bottomWA.widget(this.bottom()).render(!0,void 0,this.width()),r=this.height()-(i.height+o.height),l=await this._leftWA.widget(this.left()).render(!0,r),n=await this._rightWA.widget(this.right()).render(!0,r);this.bottomHeight_exists()&&(o.height=this.bottomHeight());let s=this.width()-(l.width+n.width),a=this.height()-(i.height+o.height),c=this.centerOverflowX(),g=this.centerOverflowY(),u=["auto","scroll"].indexOf(c)!==-1,f=["auto","scroll"].indexOf(g)!==-1;(u||f)&&this._centerWA.overflowX(this.centerOverflowX()).overflowY(this.centerOverflowY()).widget(this.center()).resize({width:s,height:a}).render(),this._bodyElement.style("height",`${a}px`);let p=[this._topWA.overflowX(this.topOverflowX()).overflowY(this.topOverflowY()).resize({width:this.width(),height:i.height}).render(),this._leftWA.overflowX(this.leftOverflowX()).overflowY(this.leftOverflowY()).resize({width:l.width,height:a}).render(),this._rightWA.overflowX(this.rightOverflowX()).overflowY(this.rightOverflowY()).resize({width:n.width,height:a}).render(),this._centerWA.overflowX(this.centerOverflowX()).overflowY(this.centerOverflowY()).widget(this.center()).resize({width:s,height:a}).render(),this._bottomWA.overflowX(this.bottomOverflowX()).overflowY(this.bottomOverflowY()).resize({width:this.width(),height:o.height}).render()];Promise.all(p).then(y=>{t&&t(this)})}):t&&t(this)})}};J.prototype._class+=" layout_Border2";J.prototype.publish("showTop",!0,"boolean","If true, top widget adapter will display");J.prototype.publish("showRight",!0,"boolean","If true, right widget adapter will display");J.prototype.publish("showBottom",!0,"boolean","If true, bottom widget adapter will display");J.prototype.publish("showLeft",!0,"boolean","If true, left widget adapter will display");J.prototype.publish("topOverflowX","visible","set","Sets the overflow-x css style for the top widget adapter",["hidden","scroll","visible","auto"]);J.prototype.publish("rightOverflowX","visible","set","Sets the overflow-x css style for the right widget adapter",["hidden","scroll","visible","auto"]);J.prototype.publish("bottomOverflowX","visible","set","Sets the overflow-x css style for the bottom widget adapter",["hidden","scroll","visible","auto"]);J.prototype.publish("leftOverflowX","visible","set","Sets the overflow-x css style for the left widget adapter",["hidden","scroll","visible","auto"]);J.prototype.publish("centerOverflowX","visible","set","Sets the overflow-x css style for the center widget adapter",["hidden","scroll","visible","auto"]);J.prototype.publish("topOverflowY","visible","set","Sets the overflow-y css style for the top widget adapter",["hidden","scroll","visible","auto"]);J.prototype.publish("rightOverflowY","visible","set","Sets the overflow-y css style for the right widget adapter",["hidden","scroll","visible","auto"]);J.prototype.publish("bottomOverflowY","visible","set","Sets the overflow-y css style for the bottom widget adapter",["hidden","scroll","visible","auto"]);J.prototype.publish("leftOverflowY","visible","set","Sets the overflow-y css style for the left widget adapter",["hidden","scroll","visible","auto"]);J.prototype.publish("centerOverflowY","visible","set","Sets the overflow-y css style for the center widget adapter",["hidden","scroll","visible","auto"]);J.prototype.publish("top",null,"widget","Top Widget",void 0,{render:!1});J.prototype.publish("topOverlay",!1,"boolean","Overlay Top Widget");J.prototype.publish("left",null,"widget","Left Widget",void 0,{render:!1});J.prototype.publish("center",null,"widget","Center Widget",void 0,{render:!1});J.prototype.publish("right",null,"widget","Right Widget",void 0,{render:!1});J.prototype.publish("bottom",null,"widget","Bottom Widget",void 0,{render:!1});J.prototype.publish("bottomHeight",null,"number","Bottom Fixed Height",void 0,{optional:!0});(function(){if(!document.getElementById("17c1eb84")){var t=document.createElement("style");t.id="17c1eb84",t.textContent=`.layout_Carousel > div {
|
|
822
|
+
position: relative;
|
|
823
|
+
overflow: hidden;
|
|
824
|
+
}
|
|
825
|
+
|
|
826
|
+
.layout_Carousel > div > .carouselItem {
|
|
827
|
+
position: absolute;
|
|
828
|
+
}`,document.head.appendChild(t)}})();var Ke=class extends Za{static{d(this,"K")}static{w(this,"Carousel")}_prevActive=0;_root;activeWidget(){return this.widgets()[this.active()]}enter(t,e){super.enter(t,e),this._root=e.append("div").attr("id",`${this.id()}_root`)}update(t,e){super.update(t,e);let i=this.active(),o=this.width();this._root.style("width",`${o}px`).style("height",`${this.height()}px`);let r=this._root.selectAll(`#${this.id()}_root > .carouselItem`).data(this.widgets(),n=>n.id()),l=r.enter().append("div").attr("class","carouselItem").each(function(n){n.target(this)}).merge(r).style("left",(n,s)=>`${(s-this._prevActive)*o}px`).style("width",`${o}px`);this._prevActive!==i&&(l.style("display",(n,s)=>s===this._prevActive||s===i?null:"none").transition().duration(this.transitionDuration()).style("left",(n,s)=>`${(s-i)*o}px`).on("end",function(n,s){Qa(this).style("display",()=>s===i?null:"none")}),this._prevActive=i),r.exit().each(function(n){n.target(null)}).remove()}exit(t,e){this.widgets().forEach(i=>i.target(null)),super.exit(t,e)}render(t){return super.render(e=>{if(!this.visible()||this.isDOMHidden())t&&t(e);else{let i=this.activeWidget();i&&i.resize(this.size()).render(o=>{t&&t(e)})}})}};Ke.prototype._class+=" layout_Carousel";Ke.prototype.publish("widgets",[],"widgetArray","Widgets",null,{render:!1});Ke.prototype.publish("active",0,"number","Active widget");Ke.prototype.publish("transitionDuration",500,"number","Transition duration");var Mo=Math.PI,Eo=2*Mo,Qt=1e-6,dd=Eo-Qt;function ki(){this._x0=this._y0=this._x1=this._y1=null,this._=""}d(ki,"mt");w(ki,"Path");function Go(){return new ki}d(Go,"Ft");w(Go,"path");ki.prototype=Go.prototype={constructor:ki,moveTo:w(function(t,e){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+e)},"moveTo"),closePath:w(function(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},"closePath"),lineTo:w(function(t,e){this._+="L"+(this._x1=+t)+","+(this._y1=+e)},"lineTo"),quadraticCurveTo:w(function(t,e,i,o){this._+="Q"+ +t+","+ +e+","+(this._x1=+i)+","+(this._y1=+o)},"quadraticCurveTo"),bezierCurveTo:w(function(t,e,i,o,r,l){this._+="C"+ +t+","+ +e+","+ +i+","+ +o+","+(this._x1=+r)+","+(this._y1=+l)},"bezierCurveTo"),arcTo:w(function(t,e,i,o,r){t=+t,e=+e,i=+i,o=+o,r=+r;var l=this._x1,n=this._y1,s=i-t,a=o-e,c=l-t,g=n-e,u=c*c+g*g;if(r<0)throw new Error("negative radius: "+r);if(this._x1===null)this._+="M"+(this._x1=t)+","+(this._y1=e);else if(u>Qt)if(!(Math.abs(g*s-a*c)>Qt)||!r)this._+="L"+(this._x1=t)+","+(this._y1=e);else{var f=i-l,p=o-n,y=s*s+a*a,C=f*f+p*p,x=Math.sqrt(y),b=Math.sqrt(u),S=r*Math.tan((Mo-Math.acos((y+u-C)/(2*x*b)))/2),k=S/b,I=S/x;Math.abs(k-1)>Qt&&(this._+="L"+(t+k*c)+","+(e+k*g)),this._+="A"+r+","+r+",0,0,"+ +(g*f>c*p)+","+(this._x1=t+I*s)+","+(this._y1=e+I*a)}},"arcTo"),arc:w(function(t,e,i,o,r,l){t=+t,e=+e,i=+i,l=!!l;var n=i*Math.cos(o),s=i*Math.sin(o),a=t+n,c=e+s,g=1^l,u=l?o-r:r-o;if(i<0)throw new Error("negative radius: "+i);this._x1===null?this._+="M"+a+","+c:(Math.abs(this._x1-a)>Qt||Math.abs(this._y1-c)>Qt)&&(this._+="L"+a+","+c),i&&(u<0&&(u=u%Eo+Eo),u>dd?this._+="A"+i+","+i+",0,1,"+g+","+(t-n)+","+(e-s)+"A"+i+","+i+",0,1,"+g+","+(this._x1=a)+","+(this._y1=c):u>Qt&&(this._+="A"+i+","+i+",0,"+ +(u>=Mo)+","+g+","+(this._x1=t+i*Math.cos(r))+","+(this._y1=e+i*Math.sin(r))))},"arc"),rect:w(function(t,e,i,o){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+e)+"h"+ +i+"v"+ +o+"h"+-i+"Z"},"rect"),toString:w(function(){return this._},"toString")};var hd=Go;function Ye(t){return w(function(){return t},"constant")}d(Ye,"it");w(Ye,"default");var Xe=Math.PI,Xh=Xe/2,Ii=2*Xe,Ho={draw:w(function(t,e){var i=Math.sqrt(e/Xe);t.moveTo(i,0),t.arc(0,0,i,0,Ii)},"draw")},cd={draw:w(function(t,e){var i=Math.sqrt(e/5)/2;t.moveTo(-3*i,-i),t.lineTo(-i,-i),t.lineTo(-i,-3*i),t.lineTo(i,-3*i),t.lineTo(i,-i),t.lineTo(3*i,-i),t.lineTo(3*i,i),t.lineTo(i,i),t.lineTo(i,3*i),t.lineTo(-i,3*i),t.lineTo(-i,i),t.lineTo(-3*i,i),t.closePath()},"draw")},_n=Math.sqrt(.3333333333333333),ud=_n*2,pd={draw:w(function(t,e){var i=Math.sqrt(e/ud),o=i*_n;t.moveTo(0,-i),t.lineTo(o,0),t.lineTo(0,i),t.lineTo(-o,0),t.closePath()},"draw")},gd=.8908130915292852,fn=Math.sin(Xe/10)/Math.sin(7*Xe/10),_d=Math.sin(Ii/10)*fn,fd=-Math.cos(Ii/10)*fn,yd={draw:w(function(t,e){var i=Math.sqrt(e*gd),o=_d*i,r=fd*i;t.moveTo(0,-i),t.lineTo(o,r);for(var l=1;l<5;++l){var n=Ii*l/5,s=Math.cos(n),a=Math.sin(n);t.lineTo(a*i,-s*i),t.lineTo(s*o-a*r,a*o+s*r)}t.closePath()},"draw")},md={draw:w(function(t,e){var i=Math.sqrt(e),o=-i/2;t.rect(o,o,i,i)},"draw")},Do=Math.sqrt(3),bd={draw:w(function(t,e){var i=-Math.sqrt(e/(Do*3));t.moveTo(0,i*2),t.lineTo(-Do*i,-i),t.lineTo(Do*i,-i),t.closePath()},"draw")},wt=-.5,xt=Math.sqrt(3)/2,Fo=1/Math.sqrt(12),wd=(Fo/2+1)*3,xd={draw:w(function(t,e){var i=Math.sqrt(e/wd),o=i/2,r=i*Fo,l=o,n=i*Fo+i,s=-l,a=n;t.moveTo(o,r),t.lineTo(l,n),t.lineTo(s,a),t.lineTo(wt*o-xt*r,xt*o+wt*r),t.lineTo(wt*l-xt*n,xt*l+wt*n),t.lineTo(wt*s-xt*a,xt*s+wt*a),t.lineTo(wt*o+xt*r,wt*r-xt*o),t.lineTo(wt*l+xt*n,wt*n-xt*l),t.lineTo(wt*s+xt*a,wt*a-xt*s),t.closePath()},"draw")};function Oo(){var t=Ye(Ho),e=Ye(64),i=null;function o(){var r;if(i||(i=r=hd()),t.apply(this,arguments).draw(i,+e.apply(this,arguments)),r)return i=null,r+""||null}return d(o,"i"),w(o,"symbol"),o.type=function(r){return arguments.length?(t=typeof r=="function"?r:Ye(r),o):t},o.size=function(r){return arguments.length?(e=typeof r=="function"?r:Ye(+r),o):e},o.context=function(r){return arguments.length?(i=r??null,o):i},o}d(Oo,"lt");w(Oo,"default");var Bd=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},yn=w(function(t){return t},"d3_identity"),cn=w(function(t){for(var e=[],i=0,o=t.length;i<o;i++)e[i]=t[o-i-1];return e},"d3_reverse"),un=w(function(t,e){t.each(function(){for(var i=vd(this),o=i.text().split(/\s+/).reverse(),r,l=[],n=0,s=1.2,a=i.attr("y"),c=parseFloat(i.attr("dy"))||0,g=i.text(null).append("tspan").attr("x",0).attr("dy",c+"em");r=o.pop();)l.push(r),g.text(l.join(" ")),g.node().getComputedTextLength()>e&&l.length>1&&(l.pop(),g.text(l.join(" ")),l=[r],g=i.append("tspan").attr("x",0).attr("dy",s+c+"em").text(r))})},"d3_textWrapping"),Ad=w(function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],e=arguments[1],i=arguments[2],o=arguments[3],r=arguments[4];if((typeof e>"u"?"undefined":Bd(e))==="object"){if(e.length===0)return t;for(var l=e.length;l<t.length;l++)e.push(t[l]);return e}else if(typeof e=="function"){for(var n=[],s=t.length,a=0;a<s;a++)n.push(e({i:a,genLength:s,generatedLabels:t,domain:i,range:o,labelDelimiter:r}));return n}return t},"d3_mergeLabels"),Rd=w(function(t,e,i){var o=[];if(e.length>1)o=e;else for(var r=t.domain(),l=(r[r.length-1]-r[0])/(e-1),n=0;n<e;n++)o.push(r[0]+n*l);var s=o.map(i);return{data:o,labels:s,feature:w(function(a){return t(a)},"feature")}},"d3_linearLegend"),Dd=w(function(t,e,i){var o=t.range().map(function(r){var l=t.invertExtent(r);return e(l[0])+" "+i+" "+e(l[1])});return{data:t.range(),labels:o,feature:yn}},"d3_quantLegend"),Wd=w(function(t){return{data:t.domain(),labels:t.domain(),feature:w(function(e){return t(e)},"feature")}},"d3_ordinalLegend"),Md=w(function(t,e,i){t.call("cellover",i,e)},"d3_cellOver"),Ed=w(function(t,e,i){t.call("cellout",i,e)},"d3_cellOut"),Hd=w(function(t,e,i){t.call("cellclick",i,e)},"d3_cellClick"),At={d3_drawShapes:w(function(t,e,i,o,r,l){t==="rect"?e.attr("height",i).attr("width",o):t==="circle"?e.attr("r",r):t==="line"?e.attr("x1",0).attr("x2",o).attr("y1",0).attr("y2",0):t==="path"&&e.attr("d",l)},"d3_drawShapes"),d3_addText:w(function(t,e,i,o,r){e.append("text").attr("class",o+"label");var l=t.selectAll("g."+o+"cell text."+o+"label").data(i).text(yn);return r&&t.selectAll("g."+o+"cell text."+o+"label").call(un,r),l},"d3_addText"),d3_calcType:w(function(t,e,i,o,r,l){var n=t.invertExtent?Dd(t,r,l):t.ticks?Rd(t,i,r):Wd(t),s=t.range&&t.range()||t.domain();return n.labels=Ad(n.labels,o,t.domain(),s,l),e&&(n.labels=cn(n.labels),n.data=cn(n.data)),n},"d3_calcType"),d3_filterCells:w(function(t,e){var i=t.data.map(function(l,n){return{data:l,label:t.labels[n]}}).filter(e),o=i.map(function(l){return l.data}),r=i.map(function(l){return l.label});return t.data=t.data.filter(function(l){return o.indexOf(l)!==-1}),t.labels=t.labels.filter(function(l){return r.indexOf(l)!==-1}),t},"d3_filterCells"),d3_placement:w(function(t,e,i,o,r,l){e.attr("transform",i),o.attr("transform",r),t==="horizontal"&&o.style("text-anchor",l)},"d3_placement"),d3_addEvents:w(function(t,e){t.on("mouseover.legend",function(i){Md(e,i,this)}).on("mouseout.legend",function(i){Ed(e,i,this)}).on("click.legend",function(i){Hd(e,i,this)})},"d3_addEvents"),d3_title:w(function(t,e,i,o){if(e!==""){var r=t.selectAll("text."+i+"legendTitle");r.data([e]).enter().append("text").attr("class",i+"legendTitle"),t.selectAll("text."+i+"legendTitle").text(e),o&&t.selectAll("text."+i+"legendTitle").call(un,o);var l=t.select("."+i+"legendCells"),n=t.select("."+i+"legendTitle").nodes().map(function(a){return a.getBBox().height})[0],s=-l.nodes().map(function(a){return a.getBBox().x})[0];l.attr("transform","translate("+s+","+n+")")}},"d3_title"),d3_defaultLocale:{format:Cd,formatPrefix:Td},d3_defaultFormatSpecifier:".01f",d3_defaultDelimiter:"to"};function mn(){var t=Pd(),e="rect",i=15,o=15,r=10,l=2,n=[5],s=void 0,a=[],c="",g=!1,u="",f=At.d3_defaultLocale,p=At.d3_defaultFormatSpecifier,y=10,C="middle",x=At.d3_defaultDelimiter,b=void 0,S="vertical",k=!1,I=void 0,z=void 0,P=Id("cellover","cellout","cellclick");function m(_){var B=At.d3_calcType(t,k,n,a,f.format(p),x),R=_.selectAll("g").data([t]);R.enter().append("g").attr("class",c+"legendCells"),s&&At.d3_filterCells(B,s);var F=_.select("."+c+"legendCells").selectAll("."+c+"cell").data(B.data),N=F.enter().append("g").attr("class",c+"cell");N.append(e).attr("class",c+"swatch");var O=_.selectAll("g."+c+"cell "+e+"."+c+"swatch").data(B.data);At.d3_addEvents(N,P),F.exit().transition().style("opacity",0).remove(),O.exit().transition().style("opacity",0).remove(),O=O.merge(O),At.d3_drawShapes(e,O,o,i,r,I);var nt=At.d3_addText(_,N,B.labels,c,b);F=N.merge(F);var $=nt.nodes().map(function(dt){return dt.getBBox()}),K=O.nodes().map(function(dt){return dt.getBBox()});g?O.attr("class",function(dt){return c+"swatch "+B.feature(dt)}):e=="line"?O.style("stroke",B.feature):O.style("fill",B.feature);var Ct=void 0,St=void 0,ee=C=="start"?0:C=="middle"?.5:1;S==="vertical"?function(){var dt=$.map(function(st,ht){return Math.max(st.height,K[ht].height)});Ct=w(function(st,ht){var ie=zd(dt.slice(0,ht));return"translate(0, "+(ie+ht*l)+")"},"cellTrans"),St=w(function(st,ht){return"translate( "+(K[ht].width+K[ht].x+y)+", "+(K[ht].y+K[ht].height/2+5)+")"},"textTrans")}():S==="horizontal"&&(Ct=w(function(dt,st){return"translate("+st*(K[st].width+l)+",0)"},"cellTrans"),St=w(function(dt,st){return"translate("+(K[st].width*ee+K[st].x)+`,
|
|
829
|
+
`+(K[st].height+K[st].y+y+8)+")"},"textTrans")),At.d3_placement(S,F,Ct,nt,St,C),At.d3_title(_,u,c,z),F.transition().style("opacity",1)}return d(m,"g"),w(m,"legend"),m.scale=function(_){return arguments.length?(t=_,m):t},m.cells=function(_){return arguments.length?((_.length>1||_>=2)&&(n=_),m):n},m.cellFilter=function(_){return arguments.length?(s=_,m):s},m.shape=function(_,B){return arguments.length?((_=="rect"||_=="circle"||_=="line"||_=="path"&&typeof B=="string")&&(e=_,I=B),m):e},m.shapeWidth=function(_){return arguments.length?(i=+_,m):i},m.shapeHeight=function(_){return arguments.length?(o=+_,m):o},m.shapeRadius=function(_){return arguments.length?(r=+_,m):r},m.shapePadding=function(_){return arguments.length?(l=+_,m):l},m.labels=function(_){return arguments.length?(a=_,m):a},m.labelAlign=function(_){return arguments.length?((_=="start"||_=="end"||_=="middle")&&(C=_),m):C},m.locale=function(_){return arguments.length?(f=Sd(_),m):f},m.labelFormat=function(_){return arguments.length?(p=kd(_),m):m.locale().format(p)},m.labelOffset=function(_){return arguments.length?(y=+_,m):y},m.labelDelimiter=function(_){return arguments.length?(x=_,m):x},m.labelWrap=function(_){return arguments.length?(b=_,m):b},m.useClass=function(_){return arguments.length?((_===!0||_===!1)&&(g=_),m):g},m.orient=function(_){return arguments.length?(_=_.toLowerCase(),(_=="horizontal"||_=="vertical")&&(S=_),m):S},m.ascending=function(_){return arguments.length?(k=!!_,m):k},m.classPrefix=function(_){return arguments.length?(c=_,m):c},m.title=function(_){return arguments.length?(u=_,m):u},m.titleWidth=function(_){return arguments.length?(z=_,m):z},m.textWrap=function(_){return arguments.length?(textWrap=_,m):textWrap},m.on=function(){var _=P.on.apply(P,arguments);return _===P?m:_},m}d(mn,"Gt");w(mn,"color");var at=class extends nd{static{d(this,"A")}static{w(this,"Legend")}_owner;_targetWidget;_targetWidgetMonitor;_legendOrdinal;_disabled=[];_symbolTypeMap={circle:Ho,cross:cd,diamond:pd,square:md,star:yd,triangle:bd,wye:xd};constructor(t){super(),this._owner=t,this._drawStartPos="origin";let e=this;this._legendOrdinal=mn().shape("path",Oo().type(Ho).size(150)()).shapePadding(10).shapeRadius(10).on("cellclick",function(i){e.onClick(i,this)}).on("cellover",i=>{e.onOver(i,this)}).on("cellout",i=>{e.onOut(i,this)})}isDisabled(t){return typeof t>"u"?!1:typeof t=="string"?t.indexOf("__")===0||this._disabled.indexOf(t)>=0:t instanceof ld.Field?t.id().indexOf("__")===0||this._disabled.indexOf(t.id())>=0:this._disabled.indexOf(t)>=0}filteredFields(){switch(this.dataFamily()){case"2D":return this.fields();case"ND":return this.fields().filter(t=>!this.isDisabled(t))}return this.fields()}filteredColumns(){switch(this.dataFamily()){case"2D":return this.columns();case"ND":return this.columns().filter(t=>!this.isDisabled(t))}return this.columns()}filteredData(){switch(this.dataFamily()){case"2D":return this.data().filter(i=>!this.isDisabled(i[0]));case"ND":let t={},e=!1;return this.columns().forEach((i,o)=>{let r=this.isDisabled(i);t[o]=r,r&&(e=!0)}),e?this.data().map(i=>i.filter((o,r)=>!t[r])):this.data()}return this.data()}isRainbow(){let t=this.getWidget();return t&&t._palette&&t._palette.type()==="rainbow"}targetWidget(t){if(!arguments.length)return this._targetWidget;if(this._targetWidget=t,this._targetWidgetMonitor&&(this._targetWidgetMonitor.remove(),delete this._targetWidgetMonitor),this._targetWidget){let e=this;this._targetWidgetMonitor=this._targetWidget.monitor(function(i,o,r,l){switch(i){case"chart":case"columns":case"data":case"paletteID":e.lazyRender();break}})}return this}getWidget(){if(this._targetWidget)switch(this._targetWidget.classID()){case"composite_MultiChart":return this._targetWidget.chart()}return this._targetWidget}getPalette(){let t=this.getWidget();if(t&&t._palette)switch(t._palette.type()){case"ordinal":return Ti.ordinal(t._palette.id());case"rainbow":return Ti.rainbow(t._palette.id())}return Ti.ordinal("default")}getPaletteType(){return this.getPalette().type()}fillColorFunc(){let t=this.getWidget();if(t&&t.fillColor)return t._palette&&t.paletteID&&t._palette.name!==t.paletteID()&&(t._palette=t._palette.switch(t.paletteID())),(i,o,r)=>t.fillColor(i,o,r);let e=Ti.ordinal(t&&t.paletteID&&t.paletteID()||"default");return(i,o,r)=>e(o)}fillColor(t,e,i){return this.fillColorFunc()(t,e,i)}_g;enter(t,e){super.enter(t,e),this._g=e.append("g").attr("class","legendOrdinal")}calcMetaData(){let t=[],e=0,i=0,o=this.columns().length;if(this._targetWidget){let r=this.columns();switch(this.getPaletteType()){case"ordinal":let l=this.fillColorFunc(),n=0;switch(this.dataFamily()){case"2D":t=this.data().map(function(y,C){n=this.data()[C].slice(1,o).reduce((k,I)=>k+I,0);let x=this.isDisabled(y[0]);x||(e+=n);let b=y[0]+(!x&&this.showSeriesTotal()?` (${n})`:""),S=this.textSize(b);return i<S.width&&(i=S.width),[l(y,y[0],!1),y[0],b]},this);break;case"ND":t=this.columns().filter(y=>y.indexOf("__")!==0).filter(function(y,C){return C>0}).map(function(y,C){n=this.data().reduce((k,I)=>k+I[C+1],0);let x=this.isDisabled(r[C+1]),b=y+(!x&&this.showSeriesTotal()?` (${n})`:"");x||(e+=n);let S=this.textSize(b);return i<S.width&&(i=S.width),[l(void 0,y,!1),y,b]},this);break;default:t=this.columns().map(function(y){return[l(void 0,y,!1),y]},this);break}break;case"rainbow":let s=this.getPalette(),a=sd(this.rainbowFormat()),c=this.getWidget(),g=this.rainbowBins(),u=c._dataMinWeight,f=c._dataMaxWeight,p=(f-u)/(g-1);t.push([s(u,u,f),a(u)]);for(let y=1;y<g-1;++y){let C=p*y;Math.floor(C)>parseInt(t[0][1])&&(C=Math.floor(C)),t.push([s(C,u,f),a(C)])}t.push([s(f,u,f),a(f)]);break}}return{dataArr:t,total:e,maxLabelWidth:i}}update(t,e){super.update(t,e);let{dataArr:i,maxLabelWidth:o,total:r}=this.calcMetaData(),l=this.shapeRadius(),n=this.radiusToSymbolSize(l),s=1,a=this.itemPadding();this.orientation()==="horizontal"&&(a+=o-l*2);let c=ad().domain(i.map(b=>b[1])).range(i.map(b=>b[0]));this._legendOrdinal.shape("path",Oo().type(this._symbolTypeMap[this.symbolType()]).size(n)()).orient(this.orientation()).title(this.title()).labelWrap(this.labelMaxWidth()).labelAlign(this.labelAlign()).shapePadding(a).scale(c).labels(b=>i[b.i][2]),this._g.call(this._legendOrdinal),this.updateDisabled(e,i);let g=this._g.select(".legendCells").node().getBBox(),u=Math.abs(g.x),f=Math.abs(g.y)+s;if(this.orientation()==="horizontal"){if(this.labelAlign()==="start"?u+=s:this.labelAlign()==="end"&&(u-=s),this.width()>g.width){let b=this.width()-g.width;u+=b/2}}else if(this.orientation()==="vertical"&&(u+=s,this._containerSize.height>g.height)){let b=this.height()-g.height;f+=b/2}this._g.attr("transform",`translate(${u}, ${f})`),this.pos({x:0,y:0}),this._legendOrdinal.labelOffset(this.itemPadding());let p=this._g.selectAll(".legendTotal").data(i.length&&this.showLegendTotal()?[r]:[]),y=`Total: ${r}`,C=-u,x=g.height+this.itemPadding()+s;this.enableOverflowScroll(!1),this.enableOverflow(!0),p.enter().append("text").classed("legendTotal",!0).merge(p).attr("transform",`translate(${C}, ${x})`).text(y),p.exit().remove()}updateDisabled(t,e){t.style("cursor","pointer").selectAll("path.swatch").filter((i,o)=>o<e.length).style("stroke",(i,o)=>e[o][0]).style("fill",(i,o)=>this._disabled.indexOf(i)<0?e[o][0]:"white")}postUpdate(t,e){let i;this._boundingBox&&(i=this._boundingBox.width,this._boundingBox.width=this._size.width),super.postUpdate(t,e),i!==void 0&&(this._boundingBox.width=i),this._parentRelativeDiv.style("overflow","hidden")}exit(t,e){super.exit(t,e)}radiusToSymbolSize(t){let e=Math.pow(t,2)*Math.PI;switch(this.symbolType()){case"star":return e*.45;case"triangle":return e*.65;case"cross":case"diamond":case"wye":return e*.75;case"circle":return e;case"square":return e*1.3}}onClick(t,e){switch(this.getPaletteType()){case"ordinal":switch(this.dataFamily()){case"2D":case"ND":let i=this._disabled.indexOf(t);i<0?this._disabled.push(t):this._disabled.splice(i,1),this._owner.refreshColumns(),this._owner.refreshData(),this._owner.render();break}break}}onOver(t,e){if(hn(this._owner))switch(this.getPaletteType()){case"ordinal":switch(this.dataFamily()){case"2D":case"ND":this._disabled.indexOf(t)<0&&this._owner.highlightColumn(t);break}break}}onOut(t,e){if(hn(this._owner))switch(this.getPaletteType()){case"ordinal":switch(this.dataFamily()){case"2D":case"ND":this._owner.highlightColumn();break}break}}onDblClick(t,e){}onMouseOver(t,e){}_containerSize;resize(t){let e;if(this.fitToContent()){this._containerSize=t;let i=this.getBBox();t.width>i.width&&(i.width=t.width),t.height>i.height&&(i.height=t.height),e=super.resize.apply(this,[{...i}])}else e=super.resize.apply(this,arguments);return e}};at.prototype._class+=" layout_Legend";at.prototype.publish("title","","string","Title");at.prototype.publish("symbolType","circle","set","Shape of each legend item",["circle","cross","diamond","square","star","triangle","wye"]);at.prototype.publish("labelMaxWidth",null,"number","Max Label Width (pixels)",null,{optional:!0});at.prototype.publish("orientation","vertical","set","Orientation of Legend rows",["vertical","horizontal"],{tags:["Private"]});at.prototype.publish("dataFamily","ND","set","Type of data",["1D","2D","ND","map","graph","any"],{tags:["Private"]});at.prototype.publish("rainbowFormat",",","string","Rainbow number formatting",null,{tags:["Private"],optional:!0,disable:w(t=>!t.isRainbow(),"disable")});at.prototype.publish("rainbowBins",8,"number","Number of rainbow bins",null,{tags:["Private"],disable:w(t=>!t.isRainbow(),"disable")});at.prototype.publish("showSeriesTotal",!1,"boolean","Show value next to series");at.prototype.publish("showLegendTotal",!1,"boolean","Show a total of the series values under the legend",null);at.prototype.publish("itemPadding",8,"number","Padding between legend items (pixels)");at.prototype.publish("shapeRadius",7,"number","Radius of legend shape (pixels)");at.prototype.publish("fitToContent",!0,"boolean","If true, resize will simply reapply the bounding box dimensions");at.prototype.publish("labelAlign","start","set","Horizontal alignment of legend item label (for horizontal orientation only)",["start","middle","end"],{optional:!0,disable:w(t=>t.orientation()==="vertical","disable")});(function(){if(!document.getElementById("810b6dee")){var t=document.createElement("style");t.id="810b6dee",t.textContent=`.layout_Modal-header {
|
|
830
|
+
background-color: rgb(63,81,181);
|
|
831
|
+
overflow: hidden;
|
|
832
|
+
}
|
|
833
|
+
.layout_Modal-body {
|
|
834
|
+
background-color: #ffffff;
|
|
835
|
+
overflow-y: scroll;
|
|
836
|
+
overflow-x: hidden;
|
|
837
|
+
}
|
|
838
|
+
.layout_Modal-title {
|
|
839
|
+
position: absolute;
|
|
840
|
+
}
|
|
841
|
+
.layout_Modal-annotations {
|
|
842
|
+
position: absolute;
|
|
843
|
+
}
|
|
844
|
+
.layout_Modal-closeButton {
|
|
845
|
+
cursor: pointer;
|
|
846
|
+
}
|
|
847
|
+
.layout_Modal-closeButton:hover {
|
|
848
|
+
opacity: 0.7;
|
|
849
|
+
}
|
|
850
|
+
.layout_Modal-closeButton:active {
|
|
851
|
+
opacity: 0.5;
|
|
852
|
+
}
|
|
853
|
+
.layout_Modal-fade {
|
|
854
|
+
position: fixed;
|
|
855
|
+
background-color: #000;
|
|
856
|
+
opacity: 0.5;
|
|
857
|
+
z-index: 10000;
|
|
858
|
+
}
|
|
859
|
+
.layout_Modal-content {
|
|
860
|
+
position: fixed;
|
|
861
|
+
background-color: #ffffff;
|
|
862
|
+
z-index: 10100;
|
|
863
|
+
}
|
|
864
|
+
.layout_Modal-fade-hidden {
|
|
865
|
+
display: none;
|
|
866
|
+
}
|
|
867
|
+
.layout_Modal-fadeClickable {
|
|
868
|
+
cursor: pointer;
|
|
869
|
+
}`,document.head.appendChild(t)}})();var ot=class extends Fd{static{d(this,"S")}static{w(this,"Modal")}_widget;_relativeTarget;_fade;_modal;_modalHeader;_modalBody;_modalHeaderAnnotations;_modalHeaderCloseButton;_close;constructor(){super(),this._tag="div"}closeModal(){this.visible(!1)}getRelativeTarget(){let t;return this.relativeTargetId()&&(t=document.getElementById(this.relativeTargetId()),t)?t:!t&&(t=this.locateAncestor("layout_Grid"),t&&t.element)?t.element().node():document.body}setModalSize(){this.fixedHeight()!==null&&this.fixedWidth()!==null?this._modal.style("height",this.fixedHeight()).style("width",this.fixedWidth()).style("min-height",null).style("min-width",null).style("max-height",null).style("max-width",null):(this.minHeight()||this.minWidth())&&this._modal.style("min-height",this.minHeight()).style("min-width",this.minWidth()).style("max-height",this.maxHeight()).style("max-width",this.maxWidth());let t=this._modal.node().getBoundingClientRect(),e=this._modalHeader.node().getBoundingClientRect();return this._modalBody.style("height",t.height-e.height+"px").style("width",t.width),t}setFadePosition(t){this._fade.style("top",t.top+"px").style("left",t.left+"px").style("width",t.width+"px").style("height",t.height+"px")}setModalPosition(t){let e=this.setModalSize();if(this.fixedTop()!==null&&this.fixedLeft()!==null)this._modal.style("top",`calc(${this.fixedTop()} + ${t.top}px)`).style("left",`calc(${this.fixedLeft()} + ${t.left}px)`);else if(this.fixedHeight()!==null&&this.fixedWidth()!==null)this._modal.style("top",t.top+t.height/2-e.height/2+"px").style("left",t.left+t.width/2-e.width/2+"px");else if(this.minHeight()||this.minWidth()){let i=this._modal.node().getBoundingClientRect();this._modal.style("top",t.top+t.height/2-i.height/2+"px").style("left",t.left+t.width/2-i.width/2+"px")}}resize(t){return super.resize(),this._modal&&this.setModalSize(),this}resizeBodySync(t,e){let i=this._modalHeader.node().getBoundingClientRect();return this._modal.style("width",t+"px").style("height",e+i.height+"px").style("min-width",t+"px").style("min-height",e+i.height+"px"),this._modalHeader.style("width",t+"px"),this._modalBody.style("width",t+"px").style("height",e+"px"),this.minWidth(t+"px").minHeight(e+i.height+"px").resize({height:e+i.height,width:t})}enter(t,e){super.enter(t,e),this._fade=e.append("div").classed("layout_Modal-fade",!0).classed("layout_Modal-fadeClickable",this.enableClickFadeToClose()).classed("layout_Modal-fade-hidden",!this.showFade());let i=this.titleFontSize()*2;this._modal=e.append("div").classed("layout_Modal-content",!0),this._modalHeader=this._modal.append("div").classed("layout_Modal-header",!0).style("color",this.titleFontColor()).style("font-size",this.titleFontSize()+"px").style("height",i+"px"),this._modalBody=this._modal.append("div").classed("layout_Modal-body",!0).style("height",`calc( 100% - ${i}px )`).style("overflow-x",this.overflowX()).style("overflow-y",this.overflowY()),this._modalHeader.append("div").classed("layout_Modal-title",!0).style("line-height",this.titleFontSize()+"px").style("top",this.titleFontSize()/2+"px").style("left",this.titleFontSize()/2+"px").text(this.formattedTitle()),this._modalHeaderAnnotations=this._modalHeader.append("div").classed("layout_Modal-annotations",!0),this._modalHeaderCloseButton=this._modalHeaderAnnotations.append("div").classed("layout_Modal-closeButton",!0).html('<i class="fa fa-close"></i>'),this._modalHeaderAnnotations.style("line-height",this.titleFontSize()+"px").style("right",this.titleFontSize()/2+"px").style("top",this.titleFontSize()/2+"px"),this._modalHeaderCloseButton.on("click",()=>{this.closeModal()}),this._fade.on("click",o=>{this.enableClickFadeToClose()&&this.closeModal()})}update(t,e){super.update(t,e),e.style("display",this.show()?null:"none"),this._fade.classed("layout_Modal-fade-hidden",!this.showFade()),this._relativeTarget=this.getRelativeTarget(),this.setModalSize();let i=this._relativeTarget.getBoundingClientRect();this.setFadePosition(i),this.setModalPosition(i),this.show()?(this._widget.target()||this._widget.target(this._modalBody.node()),this._widget.resize().render()):this._widget.target(null).render()}exit(t,e){this._widget&&this._widget.target(null),super.exit(t,e)}formattedTitle(){let t=this.title_exists()?this.title().trim():"";return t.length>0&&t.slice(0,1)==="("&&t.slice(-1)===")"?t.slice(1,-1):this.title()}};ot.prototype._class+=" layout_Modal";ot.prototype.publish("title",null,"string","title");ot.prototype.publish("widget",null,"widget","widget");ot.prototype.publish("titleFontSize",18,"number","titleFontSize (in pixels)");ot.prototype.publish("titleFontColor","#ffffff","html-color","titleFontColor");ot.prototype.publish("relativeTargetId",null,"string","relativeTargetId");ot.prototype.publish("show",!0,"boolean","show");ot.prototype.publish("showFade",!0,"boolean","showFade");ot.prototype.publish("enableClickFadeToClose",!0,"boolean","enableClickFadeToClose");ot.prototype.publish("minWidth","400px","string","minWidth");ot.prototype.publish("minHeight","400px","string","minHeight");ot.prototype.publish("maxWidth","800px","string","maxWidth");ot.prototype.publish("maxHeight","800px","string","maxHeight");ot.prototype.publish("fixedWidth",null,"string","fixedWidth");ot.prototype.publish("fixedHeight",null,"string","fixedHeight");ot.prototype.publish("fixedTop",null,"string","fixedTop");ot.prototype.publish("fixedLeft",null,"string","fixedLeft");ot.prototype.publish("overflowX","hidden","string","overflowX");ot.prototype.publish("overflowY","scroll","string","overflowY");(function(){if(!document.getElementById("0b83f800")){var t=document.createElement("style");t.id="0b83f800",t.textContent=`.layout_ChartPanel .series.highlight {
|
|
870
|
+
stroke-width: 2px;
|
|
871
|
+
opacity: 1;
|
|
872
|
+
}
|
|
873
|
+
|
|
874
|
+
.layout_ChartPanel .series.lowlight {
|
|
875
|
+
opacity: 0.3!important;
|
|
876
|
+
}
|
|
877
|
+
`,document.head.appendChild(t)}})();var H=class extends J{static{d(this,"f")}static{w(this,"ChartPanel")}_legend=new at(this).enableOverflow(!0);_progressBar=new ed;_autoScale=!1;_resolutions={tiny:{width:100,height:100},small:{width:300,height:300}};_modal=new ot;_highlight;_scale;_orig_size;_toggleInfo=new Ro().faChar("fa-info-circle").tooltip(".Description").selected(!1).on("enabled",()=>this.description()!=="").on("click",()=>{if(this._toggleInfo.selected()){this._modal.title(this.title()).widget(new id().text(this.description())).show(!0).render();let t=this._modal._close;this._modal._close=()=>{this._toggleInfo.selected(!1).render(),this._modal._close=t}}}).on("mouseMove",()=>{}).on("mouseOut",()=>{});_toggleData=new Ro().faChar("fa-table").tooltip("Data").on("click",()=>{this.dataVisible(this._toggleData.selected()),this.render()});_buttonDownload=new nn().faChar("fa-download").tooltip("Download").on("click",()=>{this.downloadCSV()});_buttonDownloadImage=new nn().faChar("fa-image").tooltip("Download Image").on("click",()=>{this.downloadPNG()});_toggleLegend=new Ro().faChar("fa-list-ul").tooltip("Legend").selected(!1).on("click",()=>{let t=this._toggleLegend.selected();this.legendPosition()==="bottom"?this.showBottom(t):this.legendPosition()==="right"&&this.showRight(t),this.legendVisible(t),this.render()});_spacer=new sn;_titleBar=new od().buttons([this._toggleData,this._buttonDownload,this._buttonDownloadImage,this._spacer,this._toggleLegend]);_carousel=new Ke;_table=new Et;_widget;_hideLegendToggleList=["dgrid_Table"];constructor(){super(),this._tag="div"}fields(t){return arguments.length?(super.fields(t),this._legend.fields(t),this.refreshFields(),this):super.fields()}refreshFields(){return this._widget.fields(this._legend.filteredFields()),this._table.fields(this._legend.filteredFields()),this}columns(t,e){return arguments.length?(super.columns(t,e),this._legend.columns(t,e),this.refreshColumns(),this):super.columns()}refreshColumns(){return this._widget.columns(this._legend.filteredColumns()),this._table.columns(this._legend.filteredColumns()),this}data(t){return arguments.length?(super.data(t),this._legend.data(t),this.refreshData(),this):super.data()}refreshData(){return this._widget.data(this._legend.filteredData()),this._table.data(this._legend.filteredData()),this}highlight(t){return arguments.length?(this._highlight=t,this):this._highlight}startProgress(){this._progressBar.start()}finishProgress(){this._progressBar.finish()}buttons(t){return arguments.length?(this._titleBar.buttons(t),this):this._titleBar.buttons()}downloadCSV(){let t=this.downloadTitle()?this.downloadTitle():this.title()?this.title():"data",e=this.downloadTimestampSuffix()?"_"+dn.timestamp():"";return dn.downloadString("CSV",this._widget.export("CSV"),t+e),this}downloadPNG(){let t=this.widget();return t instanceof an&&(this.legendVisible()?t.downloadPNG(this.title(),void 0,this._legend):t.downloadPNG(this.title())),this}highlightColumn(t){if(t){let e=`series-${this.cssTag(t)}`;this._centerWA.element().selectAll(".series").each(function(){let i=rd(this),o=i.classed(e);i.classed("highlight",o).classed("lowlight",!o)})}else this._centerWA.element().selectAll(".series").classed("highlight",!1).classed("lowlight",!1);return this}getResponsiveMode(){return this.enableAutoscaling()?this._autoScale?this.size().width<=this._resolutions.tiny.width||this.size().height<=this._resolutions.tiny.height?"tiny":this.size().width<=this._resolutions.small.width||this.size().height<=this._resolutions.small.height?"small":"regular":"regular":"none"}setOrigSize(){this._orig_size=JSON.parse(JSON.stringify(this.size()))}enter(t,e){super.enter(t,e),this._modal.target(this.target()).relativeTargetId(this.id()),this.top(this._titleBar),this.center(this._carousel),this._legend.targetWidget(this._widget).orientation("vertical").title("").visible(!1),this._progressBar.enter(t,e),this.setOrigSize()}preUpdateTiny(t){t.selectAll("div.body,div.title-text,div.icon-bar").style("display","none")}preUpdateSmall(t){let e=this._orig_size.width/this._resolutions.small.width,i=this._orig_size.height/this._resolutions.small.height;this._scale=Math.min(e,i);let o=this._scale===e;this.size({width:o?this._resolutions.small.width:this._orig_size.width*(1/this._scale),height:o?this._orig_size.height*(1/this._scale):this._resolutions.small.height}),t.select("div.title-icon").style("position","static"),t.selectAll("lhs").style("display","none"),t.selectAll("div.body,div.title-text,div.icon-bar").style("display",""),t.selectAll("div.data-count").style("visibility","hidden"),t.style("transform",`scale(${this._scale})`)}preUpdateRegular(t){t.selectAll("div.body,div.title-text,div.icon-bar").style("display",""),t.selectAll("div.data-count").style("visibility","hidden"),t.select("div.title-icon").style("position","static"),t.style("transform","translate(0px,0px) scale(1)")}_prevdataVisible;_prevlegendVisible;_prevLegendPosition;_prevChartDataFamily;_prevChart;_prevButtons;update(t,e){if(super.update(t,e),this._table&&this.widget_exists()&&this.widget().class().indexOf("chart_XYAxis")>=0){let i=this.widget();this._table.columns().forEach((o,r)=>{switch(r===0?i.xAxisType():i.yAxisType()){case"linear":case"log":case"pow":this._table.columnType(o,"number");break;case"time":this._table.columnType(o,"time");break;case"ordinal":default:this._table.columnType(o,"string")}this._table.columnPattern(o,r===0?i.xAxisTypeTimePattern():i.yAxisTypeTimePattern()),this._table.columnFormat(o,r===0?i.xAxisTickFormat():i.yAxisTickFormat())})}}preUpdate(t,e){switch(super.preUpdate(t,e),this._prevLegendPosition!==this.legendPosition()&&(this._legend.target()!==null&&this._legend.target(null),this._prevLegendPosition!==void 0?this.swap(this._prevLegendPosition,this.legendPosition()):this[this.legendPosition()](this._legend),this.legendPosition()==="right"?(this.rightOverflowX("hidden"),this.rightOverflowY("auto"),this.bottomOverflowX("visible"),this.bottomOverflowY("visible")):(this.rightOverflowX("visible"),this.rightOverflowY("visible"),this.bottomOverflowX("auto"),this.bottomOverflowY("hidden")),this._prevLegendPosition=this.legendPosition()),this._prevdataVisible!==this.dataVisible()&&(this._prevdataVisible=this.dataVisible(),this._toggleData.selected(this._prevdataVisible),this._legend.visible(this._prevlegendVisible&&!this._prevdataVisible),this._carousel.active(this._prevdataVisible?1:0)),this._prevlegendVisible!==this.legendVisible()&&(this._prevlegendVisible=this.legendVisible(),this._toggleLegend.selected(this._prevlegendVisible),this._legend.visible(this._prevlegendVisible&&!this._prevdataVisible)),this._legend.orientation(this.legendPosition()==="bottom"?"horizontal":"vertical"),this.showLeft(!this.left()),this.getResponsiveMode()){case"tiny":this.preUpdateTiny(e);break;case"small":this.preUpdateSmall(e);break;case"regular":this.preUpdateRegular(e);break}let i=this._widget.classID()==="composite_MultiChart"?this._widget.chart():this._widget;if(this._legend.dataFamily(i._dataFamily||"any"),this._prevChartDataFamily!==this._legend.dataFamily())switch(this._prevChartDataFamily=this._legend.dataFamily(),this._prevChartDataFamily){case"any":this._toggleLegend.selected(!1),this._legend.visible(!1);break}if(e.style("box-shadow",this.highlight()?`inset 0px 0px 0px ${this.highlightSize()}px ${this.highlightColor()}`:"none"),this._hideLegendToggleList.indexOf(i.classID())!==-1?(this._spacer.visible(!1),this._toggleLegend.visible(!1)):(this._spacer.visible(!0),this._toggleLegend.visible(!0)),this._prevChart!==i){this._prevChart=i;let r=i?i._titleBar||i._iconBar:void 0;if(r&&r instanceof td){this._prevButtons=this._prevButtons||[...this.buttons()];let l=[...r.buttons(),new sn,...this._prevButtons];r.buttons([]).render(),this.buttons(l)}else this._prevButtons&&this.buttons(this._prevButtons)}let o=[];this.dataButtonVisible()||o.push(this._toggleData),this.downloadButtonVisible()||o.push(this._buttonDownload),this.downloadImageButtonVisible()||o.push(this._buttonDownloadImage),this.legendButtonVisible()||o.push(this._toggleLegend),this._buttonDownloadImage.enabled(this.widget()instanceof an),this._titleBar.hiddenButtons(o).visible(this.titleVisible()),this.topOverlay(this.titleOverlay()||!this.titleVisible())}postUpdate(t,e){switch(super.postUpdate(t,e),this.getResponsiveMode()){case"tiny":this.postUpdateTiny(e);break;case"small":this.postUpdateSmall(e);break;case"regular":this.postUpdateRegular(e);break}}postUpdateTiny(t){t.selectAll("div.body,div.title-text,div.icon-bar").style("display","none"),t.selectAll("div.data-count").style("visibility","visible").style("font-size",this.titleIconFontSize()/3+"px").style("line-height",this.titleIconFontSize()/3+"px").style("left",this.titleIconFontSize()+"px").text(this.data().length),t.style("transform","translate(0px,0px) scale(1)");let e=t.selectAll("div.title-icon"),i=e.node(),o=t.node().parentElement.getBoundingClientRect();if(i){let r=e.node().getBoundingClientRect(),l=o.height/2;e.style("position","absolute").style("left",`calc(50% - ${r.width/2}px)`).style("top",`${l-r.height/2}px`),t.selectAll("div.data-count").style("position","absolute").style("left",`calc(50% + ${r.width/2}px)`).style("top",`${l-r.height/2}px`)}}postUpdateSmall(t){t.selectAll("lhs").style("display","none"),t.selectAll("div.title-icon").style("position","static"),t.selectAll("div.body,div.title-text,div.icon-bar").style("display",""),t.selectAll("div.data-count").style("visibility","hidden");let e=t.node().getBoundingClientRect(),i=t.node().parentElement.getBoundingClientRect();t.style("transform",`translate(${i.x-e.x}px, ${i.y-e.y}px) scale(${this._scale})`)}postUpdateRegular(t){t.selectAll("div.title-icon").style("position","static"),t.selectAll("div.body,div.title-text,div.icon-bar").style("display",""),t.selectAll("div.data-count").style("visibility","hidden")}exit(t,e){this._progressBar.exit(t,e),this.right(null),this._legend.target(null),this.center(null),this._carousel.target(null),this.top(null),this._titleBar.target(null),this._modal.target(null),delete this._prevChart,delete this._prevButtons,delete this._prevChartDataFamily,delete this._prevPos,delete this._prevdataVisible,delete this._prevlegendVisible,super.exit(t,e)}click(t,e,i){}dblclick(t,e,i){}vertex_click(t,e,i,o){o&&o.vertex}vertex_dblclick(t,e,i,o){o&&o.vertex}edge_click(t,e,i,o){o&&o.edge}edge_dblclick(t,e,i,o){o&&o.edge}};H.prototype._class+=" layout_ChartPanel";H.prototype.publishReset();H.prototype.publishProxy("title","_titleBar");H.prototype.publish("titleVisible",!0,"boolean");H.prototype.publish("titleOverlay",!1,"boolean");H.prototype.publishProxy("titleIcon","_titleBar");H.prototype.publishProxy("titleIconFont","_titleBar");H.prototype.publishProxy("titleFont","_titleBar");H.prototype.publishProxy("titleIconFontSize","_titleBar");H.prototype.publishProxy("titleFontSize","_titleBar");H.prototype.publishProxy("description","_titleBar");H.prototype.publishProxy("descriptionFont","_titleBar");H.prototype.publishProxy("descriptionFontSize","_titleBar");H.prototype.publish("dataVisible",!1,"boolean","Show data table");H.prototype.publish("dataButtonVisible",!0,"boolean","Show data table button");H.prototype.publish("downloadButtonVisible",!0,"boolean","Show data download button");H.prototype.publish("downloadImageButtonVisible",!1,"boolean","Show image download button");H.prototype.publish("downloadTitle","","string","File name when downloaded");H.prototype.publish("downloadTimestampSuffix",!0,"boolean","Use timestamp as file name suffix");H.prototype.publish("legendVisible",!1,"boolean","Show legend");H.prototype.publish("legendButtonVisible",!0,"boolean","Show legend button");H.prototype.publish("legendPosition","right","set","Position of legend",["right","bottom"]);H.prototype.publishProxy("legend_labelMaxWidth","_legend","labelMaxWidth");H.prototype.publishProxy("legend_showSeriesTotal","_legend","showSeriesTotal");H.prototype.publishProxy("legend_showLegendTotal","_legend","showLegendTotal");H.prototype.publishProxy("legend_itemPadding","_legend","itemPadding");H.prototype.publishProxy("legend_shapeRadius","_legend","shapeRadius");H.prototype.publishProxy("legend_symbolType","_legend","symbolType");H.prototype.publishProxy("legend_labelAlign","_legend","labelAlign");H.prototype.publish("widget",null,"widget","Widget",void 0,{render:!1});H.prototype.publish("enableAutoscaling",!1,"boolean");H.prototype.publish("highlightSize",4,"number");H.prototype.publish("highlightColor","#e67e22","html-color");H.prototype.publishProxy("progress_halfLife","_progressBar","halfLife");H.prototype.publishProxy("progress_decay","_progressBar","decay");H.prototype.publishProxy("progress_size","_progressBar","size");H.prototype.publishProxy("progress_color","_progressBar","color");H.prototype.publishProxy("progress_blurBar","_progressBar","blurBar");H.prototype.publishProxy("progress_blurSize","_progressBar","blurSize");H.prototype.publishProxy("progress_blurColor","_progressBar","blurColor");H.prototype.publishProxy("progress_blurOpacity","_progressBar","blurOpacity");H.prototype.widget=function(t){if(!arguments.length)return this._widget;this._carousel.widgets([t,this._table]),this._widget=t,this._widget.fields(this._legend.filteredFields()).data(this._legend.filteredData());let e=this,i=this._widget;return i.click=function(){e.click.apply(e,arguments)},i.dblclick=function(){e.dblclick.apply(e,arguments)},i.vertex_click=function(){e.vertex_click.apply(e,arguments)},i.vertex_dblclick=function(){e.vertex_dblclick.apply(e,arguments)},i.edge_click=function(){e.edge_click.apply(e,arguments)},i.edge_dblclick=function(){e.edge_dblclick.apply(e,arguments)},this};(function(){if(!document.getElementById("1c68d178")){var t=document.createElement("style");t.id="1c68d178",t.textContent=`.layout_FlexGrid{
|
|
878
|
+
display: flex;
|
|
879
|
+
}
|
|
880
|
+
.FlexGrid-list-item{
|
|
881
|
+
overflow: hidden;
|
|
882
|
+
border-style: solid;
|
|
883
|
+
flex-grow: 1;
|
|
884
|
+
}`,document.head.appendChild(t)}})();var rt=class extends Od{static{d(this,"B")}static{w(this,"FlexGrid")}constructor(){super()}enter(t,e){super.enter(t,e),Ld(t.parentNode).style("height","100%").style("width","100%")}update(t,e){super.update(t,e);let i=this,o=[];this.updateFlexParent(e);let r=e.selectAll(".FlexGrid-list-item").data(this.widgets(),l=>l.id());r.enter().append("div").classed("FlexGrid-list-item",!0).each(function(l){l.target(this)}).merge(r).style("min-height",this.itemMinHeight()+"px").style("min-width",this.itemMinWidth()+"px").style("flex-basis",(l,n)=>{let s=this.widgetsFlexBasis()[n];return typeof s<"u"?s:this.flexBasis()}).style("flex-grow",(l,n)=>{let s=this.widgetsFlexGrow()[n];return typeof s<"u"?s:this.flexGrow()}).style("border-width",this.borderWidth()+"px").style("border-color",this.itemBorderColor()).each(function(){this.firstChild.style.display="none"}).each(function(){let l=this.getBoundingClientRect();o.push([l.width,l.height])}).each(function(l,n){this.firstChild.style.display="block",l.resize({width:o[n][0]-2*i.borderWidth(),height:o[n][1]-2*i.borderWidth()})}),r.exit().remove()}exit(t,e){super.exit(t,e)}updateFlexParent(t){t.style("height","100%").style("flex-direction",this.orientation()==="horizontal"?"row":"column").style("flex-wrap",this.flexWrap()).style("align-items",this.alignItems()).style("align-content",this.alignContent()).style("overflow-x",()=>this.forceXScroll()||this.orientation()==="horizontal"&&this.flexWrap()==="nowrap"&&!this.disableScroll()?"scroll":"hidden").style("overflow-y",()=>this.forceYScroll()||this.orientation()==="vertical"&&this.flexWrap()==="nowrap"&&!this.disableScroll()?"scroll":"hidden")}};rt.prototype._class+=" layout_FlexGrid";rt.prototype.publish("itemBorderColor","transparent","html-color","Color of list item borders");rt.prototype.publish("borderWidth",0,"number","Width of list item borders (pixels)");rt.prototype.publish("orientation","horizontal","set","Controls the flex-direction of the list items",["horizontal","vertical"]);rt.prototype.publish("flexWrap","wrap","set","Controls the line wrap when overflow occurs",["nowrap","wrap","wrap-reverse"]);rt.prototype.publish("disableScroll",!1,"boolean","If false, scrollbar will show (when flexWrap is set to 'nowrap')",null,{disable:w(t=>t.flexWrap()!=="nowrap","disable")});rt.prototype.publish("forceXScroll",!1,"boolean","If true, horzontal scrollbar will show");rt.prototype.publish("forceYScroll",!1,"boolean","If true, vertical scrollbar will show");rt.prototype.publish("itemMinHeight",64,"number","Minimum height of a list item (pixels)");rt.prototype.publish("itemMinWidth",64,"number","Minimum width of a list item (pixels)");rt.prototype.publish("alignItems","stretch","set","Controls normal alignment of items",["flex-start","center","flex-end","stretch"]);rt.prototype.publish("alignContent","stretch","set","Controls normal alignment of item rows",["flex-start","center","flex-end","stretch","space-between","space-around"]);rt.prototype.publish("flexGrow",1,"number","Default flex-grow style for all list items");rt.prototype.publish("flexBasis","10%","string","Default flex-basis style for all list items");rt.prototype.publish("widgetsFlexGrow",[],"array","Array of flex-grow values keyed on the widgets array");rt.prototype.publish("widgetsFlexBasis",[],"array","Array of flex-basis values keyed on the widgets array");rt.prototype.publish("widgets",[],"widgetArray","Array of widgets to be rendered as list items");var Wo=Oa(La(),1);(function(){if(!document.getElementById("71cbabbe")){var t=document.createElement("style");t.id="71cbabbe",t.textContent=`.layout_Grid > .ddCell {
|
|
885
|
+
position: absolute;
|
|
886
|
+
}
|
|
887
|
+
|
|
888
|
+
.layout_Grid > .laneBackground {
|
|
889
|
+
position: absolute;
|
|
890
|
+
border-style: solid;
|
|
891
|
+
border-width: 1px;
|
|
892
|
+
background: whitesmoke;
|
|
893
|
+
}
|
|
894
|
+
|
|
895
|
+
.layout_Grid > .lane {
|
|
896
|
+
position: absolute;
|
|
897
|
+
border-style: none;
|
|
898
|
+
opacity: 0.25;
|
|
899
|
+
border-radius: 0px;
|
|
900
|
+
pointer-events: none;
|
|
901
|
+
}
|
|
902
|
+
|
|
903
|
+
.layout_Grid > .ddCell.draggable {
|
|
904
|
+
border-style: solid;
|
|
905
|
+
border-width: 1px;
|
|
906
|
+
background-color: ghostwhite;
|
|
907
|
+
border-radius: 0px;
|
|
908
|
+
cursor:move;
|
|
909
|
+
}
|
|
910
|
+
|
|
911
|
+
.layout_Grid > .ddCell.draggable > .resizeHandle {
|
|
912
|
+
bottom: 0px;
|
|
913
|
+
right: 0px;
|
|
914
|
+
width: 8px;
|
|
915
|
+
height: 8px;
|
|
916
|
+
border-style: none;
|
|
917
|
+
position: absolute;
|
|
918
|
+
cursor:nwse-resize;
|
|
919
|
+
}
|
|
920
|
+
|
|
921
|
+
.layout_Grid > .ddCell.draggable .resizeHandleDisplay {
|
|
922
|
+
bottom: 2px;
|
|
923
|
+
right: 2px;
|
|
924
|
+
width: 4px;
|
|
925
|
+
height: 4px;
|
|
926
|
+
border-style: solid;
|
|
927
|
+
border-left-width: 0px;
|
|
928
|
+
border-top-width: 0px;
|
|
929
|
+
border-right-width: 2px;
|
|
930
|
+
border-bottom-width: 2px;
|
|
931
|
+
border-color: darkGray;
|
|
932
|
+
background-color:none;
|
|
933
|
+
position: absolute;
|
|
934
|
+
}
|
|
935
|
+
|
|
936
|
+
.layout_Grid > .ddCell.draggable .resizeHandleDisplay:hover {
|
|
937
|
+
border-color: orange;
|
|
938
|
+
}
|
|
939
|
+
|
|
940
|
+
.layout_Grid > .dragging {
|
|
941
|
+
border-style: solid;
|
|
942
|
+
border-width: 1px;
|
|
943
|
+
border-color: gray;
|
|
944
|
+
border-radius: 0px;
|
|
945
|
+
position: absolute;
|
|
946
|
+
background: repeating-linear-gradient( -45deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0) 4px, rgba(100, 100, 100, 0.1) 4px, rgba(100, 100, 100, 0.1) 8px );
|
|
947
|
+
}
|
|
948
|
+
|
|
949
|
+
.layout_Grid > .resizing {
|
|
950
|
+
border-style: solid;
|
|
951
|
+
border-width: 1px;
|
|
952
|
+
border-color: gray;
|
|
953
|
+
background-color: orange;
|
|
954
|
+
border-radius: 0px;
|
|
955
|
+
position: absolute;
|
|
956
|
+
opacity:0.3;
|
|
957
|
+
background: repeating-linear-gradient( -45deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0) 4px, orange 4px, orange 8px );
|
|
958
|
+
}
|
|
959
|
+
|
|
960
|
+
.layout_Grid > .ddCell.draggable .common_Widget.selected {
|
|
961
|
+
border-style: solid;
|
|
962
|
+
border-width: 1px;
|
|
963
|
+
border-color: red;
|
|
964
|
+
background-color: gray;
|
|
965
|
+
border-radius: 0px;
|
|
966
|
+
position: absolute;
|
|
967
|
+
background: repeating-linear-gradient( -45deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0) 4px, rgba(100, 0, 0, 0.1) 4px, rgba(100, 0, 0, 0.1) 8px );
|
|
968
|
+
}
|
|
969
|
+
|
|
970
|
+
.layout_Grid #drag-me::before {
|
|
971
|
+
content: "#" attr(id);
|
|
972
|
+
font-weight: bold;
|
|
973
|
+
}
|
|
974
|
+
`,document.head.appendChild(t)}})();var Vd=Wo&&Wo.default||Wo,yt=class extends Gd{static{d(this,"O")}static{w(this,"Grid")}divItems;gridList;items;itemsMap;origItems;cellWidth;cellHeight;dragItem;dragItemPos;_d3Drag;_d3DragResize;_selectionBag;_scrollBarWidth;constructor(){super(),this._tag="div",this._selectionBag=new Ud.Selection(this),this.content([])}getDimensions(){let t={width:0,height:0};return this.content().forEach(function(e){t.width<e.gridCol()+e.gridColSpan()&&(t.width=e.gridCol()+e.gridColSpan()),t.height<e.gridRow()+e.gridRowSpan()&&(t.height=e.gridRow()+e.gridRowSpan())},this),t}clearContent(t){this.content(this.content().filter(function(e){if(!t)return e.target(null),!1;let i=e;for(;i;){if(t===i)return e.target(null),!1;i=i.widget?i.widget():null}return!0}))}setContent(t,e,i,o,r,l){if(r=r||1,l=l||1,o=o||"",this.content(this.content().filter(function(n){return n.gridRow()===t&&n.gridCol()===e?(n.target(null),!1):!0})),i){let n=new Rt().gridRow(t).gridCol(e).widget(i).title(o).gridRowSpan(r).gridColSpan(l);this.content().push(n)}return this}sortedContent(){return this.content().sort(function(t,e){return t.gridRow()===e.gridRow()?t.gridCol()-e.gridCol():t.gridRow()-e.gridRow()})}getCell(t,e){let i=null;return this.content().some(function(o){return t>=o.gridRow()&&t<o.gridRow()+o.gridRowSpan()&&e>=o.gridCol()&&e<o.gridCol()+o.gridColSpan()?(i=o,!0):!1}),i}getWidgetCell(t){let e=null;return this.content().some(function(i){return i.widget().id()===t?(e=i,!0):!1}),e}getContent(t){let e=null;return this.content().some(function(i){return i.widget().id()===t?(e=i.widget(),!0):!1}),e}cellToGridItem(t){return{x:t.gridCol(),y:t.gridRow(),w:t.gridColSpan(),h:t.gridRowSpan(),id:t.id(),cell:t}}gridItemToCell(t){t.cell.gridCol(t.x).gridRow(t.y).gridColSpan(t.w).gridRowSpan(t.h)}resetItemsPos(){this.origItems.forEach(function(t){let e=this.itemsMap[t.id];e.x=t.x,e.y=t.y},this)}initGridList(){this.itemsMap={},this.items=this.content().map(function(t){let e=this.cellToGridItem(t);return this.itemsMap[e.id]=e,e},this),this.origItems=this.content().map(this.cellToGridItem),this.gridList=new Vd(this.items,{direction:this.snapping(),lanes:this.snapping()==="horizontal"?this.snappingRows():this.snappingColumns()})}killGridList(){this.gridList=null,delete this.items,delete this.itemsMap}enter(t,e){super.enter(t,e),this._scrollBarWidth=Nd.getScrollbarWidth();let i=this;this._d3Drag=pn().subject(function(o){let r=i.cellToGridItem(o);return{x:r.x*i.cellWidth,y:r.y*i.cellHeight}}).on("start",function(o){if(!i.designMode())return;Zt().sourceEvent.stopPropagation(),i.initGridList();let r=i.itemsMap[o.id()];i.dragItem=e.append("div").attr("class","dragging").style("transform",function(){return"translate("+r.x*i.cellWidth+"px, "+r.y*i.cellHeight+"px)"}).style("width",function(){return r.w*i.cellWidth-i.gutter()+"px"}).style("height",function(){return r.h*i.cellHeight-i.gutter()+"px"}),i.selectionBagClick(o)}).on("drag",function(o){if(!i.designMode())return;let r=Zt();r.sourceEvent.stopPropagation();let l=i.itemsMap[o.id()];r.x<0&&(r.x=0),r.x+l.w*i.cellWidth>i.snappingColumns()*i.cellWidth&&(r.x=i.snappingColumns()*i.cellWidth-l.w*i.cellWidth),r.y<0&&(r.y=0),r.y+l.h*i.cellWidth>i.snappingRows()*i.cellWidth&&(r.y=i.snappingRows()*i.cellWidth-l.h*i.cellWidth);let n=[Math.max(0,Math.floor((r.x+i.cellWidth/2)/i.cellWidth)),Math.max(0,Math.floor((r.y+i.cellHeight/2)/i.cellHeight))];(l.x!==n[0]||l.y!==n[1])&&(i.snapping()!=="none"?(i.resetItemsPos(),i.gridList.moveItemToPosition(l,n)):(l.x=n[0],l.y=n[1]),(o.gridCol()!==l.x||o.gridRow()!==l.y)&&(i.items.forEach(i.gridItemToCell),i.updateGrid(!1,100))),i.dragItem.style("transform",function(){return"translate("+r.x+"px, "+r.y+"px)"}).style("width",function(){return l.w*i.cellWidth+"px"}).style("height",function(){return l.h*i.cellHeight+"px"})}).on("end",function(){i.designMode()&&(Zt().sourceEvent.stopPropagation(),i.dragItem.remove(),i.dragItem=null,i.killGridList())}),this._d3DragResize=pn().subject(function(o){let r=i.cellToGridItem(o);return{x:(r.x+r.w-1)*i.cellWidth,y:(r.y+r.h-1)*i.cellHeight}}).on("start",function(o){if(!i.designMode())return;Zt().sourceEvent.stopPropagation(),i.initGridList();let r=i.itemsMap[o.id()];i.dragItem=e.append("div").attr("class","resizing").style("transform",function(){return"translate("+r.x*i.cellWidth+"px, "+r.y*i.cellHeight+"px)"}).style("width",function(){return r.w*i.cellWidth-i.gutter()+"px"}).style("height",function(){return r.h*i.cellHeight-i.gutter()+"px"}),i.dragItemPos={x:r.x,y:r.y}}).on("drag",function(o){if(!i.designMode())return;let r=Zt();r.sourceEvent.stopPropagation();let l=i.itemsMap[o.id()],n=[Math.max(0,Math.round(r.x/i.cellWidth)),Math.max(0,Math.round(r.y/i.cellHeight))],s={w:Math.max(1,n[0]-l.x+1),h:Math.max(1,n[1]-l.y+1)};(l.w!==s.w||l.h!==s.h)&&(i.snapping()!=="none"?(i.resetItemsPos(),i.gridList.resizeItem(l,s)):(l.w=s.w,l.h=s.h),(o.gridColSpan()!==l.w||o.gridRowSpan()!==l.h)&&(i.items.forEach(i.gridItemToCell),i.updateGrid(l.id,100))),i.dragItem.style("width",function(){return(-l.x+1)*i.cellWidth+r.x-i.gutter()+"px"}).style("height",function(){return(-l.y+1)*i.cellHeight+r.y-i.gutter()+"px"})}).on("end",function(){i.designMode()&&(Zt().sourceEvent.stopPropagation(),i.dragItem.remove(),i.dragItem=null,i.killGridList())})}updateGrid(t,e=0,i=!1){e=e||0;let o=this;this.divItems.classed("draggable",this.designMode()).transition().duration(e).style("left",function(r){return r.gridCol()*o.cellWidth+o.gutter()/2+"px"}).style("top",function(r){return r.gridRow()*o.cellHeight+o.gutter()/2+"px"}).style("width",function(r){return r.gridColSpan()*o.cellWidth-o.gutter()+"px"}).style("height",function(r){return r.gridRowSpan()*o.cellHeight-o.gutter()+"px"}).on("end",function(r){r.surfaceShadow_default(o.surfaceShadow()).surfacePadding_default(o.surfacePadding()).surfaceBorderWidth_default(o.surfaceBorderWidth()).surfaceBackgroundColor_default(o.surfaceBackgroundColor()),(t===!0||t===r.id())&&r.resize().lazyRender()})}update(t,e){super.update(t,e),this._placeholderElement.style("overflow-x",this.fitTo()==="width"?"hidden":null),this._placeholderElement.style("overflow-y",this.fitTo()==="width"?"scroll":null);let i=this.getDimensions(),o=this.width()-(this.fitTo()==="width"?this._scrollBarWidth:0);if(this.cellWidth=o/i.width,this.cellHeight=this.fitTo()==="all"?this.height()/i.height:this.cellWidth,this.designMode()){let a=Math.min(this.width()/this.snappingColumns(),this.height()/this.snappingRows()),c=Math.floor(a);this.cellWidth=c,this.cellHeight=this.cellWidth}let r=this,l=e.selectAll("#"+this.id()+" > .ddCell").data(this.content(),function(a){return a.id()});this.divItems=l.enter().append("div").attr("class","ddCell").each(function(a){a.target(this),a.__grid_watch=a.monitor(function(c,g,u){r._renderCount&&(c==="snapping"||c.indexOf("grid")===0)&&g!==u&&(r.gridList||(r.initGridList(),r.snapping()!=="none"&&r.gridList.resizeGrid(r.snapping()==="horizontal"?r.snappingRows():r.snappingColumns()),r.items.forEach(r.gridItemToCell),r.updateGrid(a.id(),100),r.killGridList()))}),gn(this).append("div").attr("class","resizeHandle").call(r._d3DragResize).append("div").attr("class","resizeHandleDisplay")}).merge(l),this.divItems.each(function(a){let c=gn(this);r.designMode()?c.call(r._d3Drag):c.on("mousedown.drag",null).on("touchstart.drag",null)}),this.divItems.select(".resizeHandle").style("display",this.designMode()?null:"none"),this.updateGrid(!0),l.exit().each(function(a){a.target(null),a.__grid_watch&&a.__grid_watch.remove()}).remove();let n=e.selectAll("#"+this.id()+" > .laneBackground").data(this.designMode()?[""]:[]);n.enter().insert("div",":first-child").attr("class","laneBackground").style("left","1px").style("top","1px").on("click",function(){r.selectionBagClear()}).merge(n).style("width",this.snappingColumns()*this.cellWidth+"px").style("height",this.snappingRows()*this.cellHeight+"px"),n.exit().each(function(){r.selectionBagClear()}).remove();let s=e.selectAll("#"+this.id()+" > .lane").data(this.designMode()?[""]:[]);s.enter().append("div").attr("class","lane").style("left","1px").style("top","1px"),s.style("display",this.showLanes()?null:"none").style("width",this.snappingColumns()*this.cellWidth+"px").style("height",this.snappingRows()*this.cellHeight+"px").style("background-image","linear-gradient(to right, grey 1px, transparent 1px), linear-gradient(to bottom, grey 1px, transparent 1px)").style("background-size",this.cellWidth+"px "+this.cellHeight+"px"),s.exit().remove()}exit(t,e){this.content().forEach(i=>i.target(null)),super.exit(t,e)}_createSelectionObject(t){return{_id:t._id,element:w(()=>t._element,"element"),widget:t}}selection(t){return arguments.length?(this._selectionBag.set(t.map(function(e){return this._createSelectionObject(e)},this)),this):this._selectionBag.get().map(function(e){return e._id})}selectionBagClear(){this._selectionBag.isEmpty()||(this._selectionBag.clear(),this.postSelectionChange())}selectionBagClick(t){if(t!==null){let e=this._createSelectionObject(t);if(Zt().sourceEvent.ctrlKey)this._selectionBag.isSelected(e)?(this._selectionBag.remove(e),this.postSelectionChange()):(this._selectionBag.append(e),this.postSelectionChange());else{let i=this._selectionBag.get();i.length===1&&i[0]._id===e._id?this.selectionBagClear():this._selectionBag.set([e]),this.postSelectionChange()}}}postSelectionChange(){}applyLayout(t){this.divItems.each((e,i)=>{if(t[i]){let[o,r,l,n]=t[i];e.gridCol(o).gridRow(r).gridColSpan(l).gridRowSpan(n)}}),this.updateGrid(!0)}vizActivation(t){}};yt.prototype._class+=" layout_Grid";yt.prototype.publish("designMode",!1,"boolean","Design Mode",null,{tags:["Basic"]});yt.prototype.publish("showLanes",!0,"boolean","Show snapping lanes when in design mode",null,{tags:["Basic"],disable:w(t=>!t.designMode(),"disable")});yt.prototype.publish("fitTo","all","set","Sizing Strategy",["all","width"],{tags:["Basic"]});yt.prototype.publish("snapping","vertical","set","Snapping Strategy",["vertical","horizontal","none"]);yt.prototype.publish("snappingColumns",12,"number","Snapping Columns");yt.prototype.publish("snappingRows",16,"number","Snapping Rows");yt.prototype.publish("gutter",6,"number","Gap Between Widgets",null,{tags:["Basic"]});yt.prototype.publish("surfaceShadow",!0,"boolean","3D Shadow");yt.prototype.publish("surfacePadding",null,"string","Cell Padding (px)",null,{tags:["Intermediate"]});yt.prototype.publish("surfaceBorderWidth",1,"number","Width (px) of Cell Border",null,{tags:["Intermediate"]});yt.prototype.publish("surfaceBackgroundColor",null,"html-color","Surface Background Color",null,{tags:["Advanced"]});yt.prototype.publish("content",[],"widgetArray","widgets",null,{tags:["Basic"],render:!1});var $d=class extends rt{static{d(this,"At")}static{w(this,"HorizontalList")}constructor(){super(),this.orientation_default("horizontal"),this.flexWrap_default("nowrap")}};$d.prototype._class+=" layout_HorizontalList";(function(){if(!document.getElementById("ed0ab859")){var t=document.createElement("style");t.id="ed0ab859",t.textContent=`.layout_Layered {
|
|
975
|
+
pointer-events: none;
|
|
976
|
+
}
|
|
977
|
+
.layout_Layered > .container > .content {
|
|
978
|
+
position: absolute;
|
|
979
|
+
}
|
|
980
|
+
.layout_Layered > .container > .content > div > .common_Widget,
|
|
981
|
+
.layout_Layered > .container > .content > div > svg > .common_Widget {
|
|
982
|
+
pointer-events: all;
|
|
983
|
+
}
|
|
984
|
+
`,document.head.appendChild(t)}})();var No=class extends jd{static{d(this,"nt")}static{w(this,"Layered")}_contentContainer;_widgetPlacements;_widgetRatios;constructor(){super(),this._tag="div",this._widgetPlacements=[],this._widgetRatios=[]}addLayer(t,e="default",i=1,o=1){let r=this.widgets();return r.push(t||new Yd().text("No widget defined for layer.")),this.widgets(r),this._widgetPlacements.push(e),this._widgetRatios.push([i,o]),this}enter(t,e){super.enter(t,e),this._contentContainer=e.append("div").attr("class","container")}update(t,e){super.update(t,e);let i=this;e.style("padding",this.surfacePadding()+"px");let o=this._contentContainer.selectAll(".content.id"+this.id()).data(this.widgets(),function(r){return r.id()});o.enter().append("div").attr("class","content id"+this.id()).each(function(r,l){r.target(this)}).merge(o).each(function(r,l){let n={width:i.clientWidth(),height:i.clientHeight()},s=i.widgetSize(l,n),a=i.widgetPosition(l,n,s);this.style.top=a.y+"px",this.style.left=a.x+"px",r.resize(s).render()}),o.exit().each(function(r,l){r.target(null)}).remove(),o.order()}widgetSize(t,e){return this._widgetPlacements[t]==="default"?{width:e.width*this._widgetRatios[t][0],height:e.height*this._widgetRatios[t][1]}:{width:e.width*this._widgetRatios[t][0],height:e.height*this._widgetRatios[t][1]}}widgetPosition(t,e,i){switch(this._widgetPlacements[t]){default:return{x:0,y:0};case"top":return{x:e.width/2-i.width/2,y:0};case"bottom":return{x:e.width/2-i.width/2,y:e.height-i.height};case"left":return{x:0,y:e.height/2-i.height/2};case"right":return{x:e.width-i.width,y:e.height/2-i.height/2};case"center":return{x:e.width/2-i.width/2,y:e.height/2-i.height/2}}}};No.prototype._class+=" layout_Layered";No.prototype.publish("surfacePadding",0,"number","Padding");No.prototype.publish("widgets",[],"widgetArray","widgets",null,{tags:["Private"]});var Dt=class extends Xd{static{d(this,"F")}static{w(this,"Popup")}_surfaceButtons;_originalPosition;constructor(){super(),this._tag="div",this._surfaceButtons=[]}updateState(t){t=t||!this.popupState(),this.popupState(t).render()}enter(t,e){super.enter(t,e),this.widget().target(t),this._originalPosition=this.position()}update(t,e){super.update(t,e),e.style("visibility",this.popupState()?null:"hidden").style("opacity",this.popupState()?null:0).style("width",this.shrinkWrap()?this.widget().width()+"px":this._size.width+"px").style("height",this.shrinkWrap()?this.widget().height()+"px":this._size.height+"px"),this.widget().size().height===0&&this.widget().resize(this.size())}postUpdate(t,e){let i,o;switch(this.centerPopup()){case"container":this._placeholderElement&&(i=parseInt(this._placeholderElement.style("width"))/2-this.widget().width()/2,o=parseInt(this._placeholderElement.style("height"))/2-this.widget().height()/2),this.position("absolute");break;case"window":i=window.innerWidth/2-this.widget().width()/2,o=window.innerHeight/2-this.widget().height()/2,this.position("fixed");break;default:i=0,o=0,this.position(this._originalPosition);break}this.pos({x:i,y:o}),super.postUpdate(t,e),e.style("position",this.position()).style("left",this.left()+"px").style("right",this.right()+"px").style("top",this.top()+"px").style("bottom",this.bottom()+"px")}exit(t,e){this.widget()&&this.widget().target(null),super.exit(t,e)}click(t){}};Dt.prototype._class+=" layout_Popup";Dt.prototype.publish("popupState",!1,"boolean","State of the popup, visible (true) or hidden (false)",null,{});Dt.prototype.publish("shrinkWrap",!1,"boolean","The popup parent container either shrinks to the size of its contents (true) or expands to fit thge popup's parentDiv (false)",null,{});Dt.prototype.publish("centerPopup","none","set","Center the widget in its container element (target) or in the window",["none","container","window"],{});Dt.prototype.publish("top",null,"number","Top position property of popup",null,{});Dt.prototype.publish("bottom",null,"number","Bottom position property of popup",null,{});Dt.prototype.publish("left",null,"number","Left position property of popup",null,{});Dt.prototype.publish("right",null,"number","Right position property of popup",null,{});Dt.prototype.publish("position","relative","set","Value of the 'position' property",["absolute","relative","fixed","static","initial","inherit"],{tags:["Private"]});Dt.prototype.publish("widget",null,"widget","Widget",null,{tags:["Private"]});(function(){if(!document.getElementById("6b6715fa")){var t=document.createElement("style");t.id="6b6715fa",t.textContent=`.layout_Tabbed .tab-button {
|
|
985
|
+
position: relative;
|
|
986
|
+
top: 1px;
|
|
987
|
+
display: inline-block;
|
|
988
|
+
border-left: 1px solid #ddd;
|
|
989
|
+
border-top: 1px solid #ddd;
|
|
990
|
+
border-right: 1px solid #ddd;
|
|
991
|
+
background-color: transparent;
|
|
992
|
+
margin-right: 4px;
|
|
993
|
+
padding: 2px;
|
|
994
|
+
padding-bottom: 4px;
|
|
995
|
+
background-color: #ccc;
|
|
996
|
+
}
|
|
997
|
+
|
|
998
|
+
.layout_Tabbed .tab-button.active {
|
|
999
|
+
background-color: white;
|
|
1000
|
+
z-index:999;
|
|
1001
|
+
}
|
|
1002
|
+
.layout_Tabbed .on_bottom .tab-button {
|
|
1003
|
+
border-bottom: 1px solid #ddd;
|
|
1004
|
+
border-top: none;
|
|
1005
|
+
top: -1px;
|
|
1006
|
+
}`,document.head.appendChild(t)}})();var te=class extends Kd{static{d(this,"U")}static{w(this,"Tabbed")}_tabContainer;_contentContainer;constructor(){super(),this._tag="div"}clearTabs(){return this.labels([]),this.widgets([]),this}addTab(t,e,i,o){let r=t.size();r.width===0&&r.height===0&&t.size({width:"100%",height:"100%"});let l=this.labels(),n=this.widgets();i&&this.activeTabIdx(this.widgets().length),l.push(e);let s=new it().widget(t||new qd().text("No widget defined for tab"));return n.push(s),this.labels(l),this.widgets(n),o&&o(s),this}widgetSize(t){let e=this.clientWidth(),i=this.clientHeight(),o=this._tabContainer.node().getBoundingClientRect();return typeof o.height<"u"&&(i-=o.height),{width:e,height:i}}enter(t,e){super.enter(t,e),this._tabContainer=e.append("div"),this._contentContainer=e.append("div")}update(t,e){super.update(t,e);let i=this;e.style("padding",this.surfacePadding_exists()?this.surfacePadding()+"px":null);let o=this._tabContainer.selectAll(".tab-button.id"+this.id()).data(this.showTabs()?this.labels():[],function(l){return l});o.enter().append("span").attr("class","tab-button id"+this.id()).style("cursor","pointer").on("click",function(l,n){i.click(i.widgets()[n].widget(),l,n),i.activeTabIdx(n).render()}).merge(o).classed("active",function(l,n){return i.activeTabIdx()===n}).text(function(l){return l}),o.exit().remove();let r=this._contentContainer.selectAll(".tab-content.id"+this.id()).data(this.widgets(),function(l){return l.id()});switch(r.enter().append("div").attr("class","tab-content id"+this.id()).each(function(l,n){l.target(this)}).merge(r).classed("active",function(l,n){return i.activeTabIdx()===n}).style("display",function(l,n){return i.activeTabIdx()===n?"block":"none"}).each(function(l,n){if(l.visible(i.activeTabIdx()===n),i.activeTabIdx()===n){let s=i.widgetSize(Jd(this));l.surfaceBorderWidth(i.showTabs()?null:0).surfacePadding(i.showTabs()?null:0).resize(s)}}),r.exit().each(function(l,n){l.target(null)}).remove(),this.tabLocation()){case"bottom":this._tabContainer.attr("class","on_bottom").style("top",this._contentContainer.node().offsetHeight+this.surfacePadding()+"px").style("position","absolute"),this._contentContainer.style("top",this.surfacePadding_exists()?this.surfacePadding()+"px":null).style("position","absolute");break;default:this._tabContainer.attr("class","on_top").style("top",null).style("position","relative"),this._contentContainer.style("top",this._tabContainer.node().offsetHeight+this.surfacePadding()+"px").style("position","absolute");break}}click(t,e,i){}};te.prototype._class+=" layout_Tabbed";te.prototype.publish("showTabs",!0,"boolean","Show Tabs",null,{});te.prototype.publish("surfacePadding",4,"number","Padding");te.prototype.publish("activeTabIdx",0,"number","Index of active tab",null,{});te.prototype.publish("labels",[],"array","Array of tab labels sharing an index with ",null,{tags:["Private"]});te.prototype.publish("tabLocation","top","set","Position the tabs at the bottom of the widget",["top","bottom"],{tags:["Private"]});te.prototype.publish("widgets",[],"widgetArray","widgets",null,{tags:["Private"]});(function(){if(!document.getElementById("67787f94")){var t=document.createElement("style");t.id="67787f94",t.textContent=`.layout_Toolbar {
|
|
1007
|
+
height:100%;
|
|
1008
|
+
background-color:#dddddd;
|
|
1009
|
+
white-space: nowrap;
|
|
1010
|
+
overflow: hidden;
|
|
1011
|
+
}
|
|
1012
|
+
.layout_Toolbar .toolbar-title {
|
|
1013
|
+
display: inline-block;
|
|
1014
|
+
position: relative;
|
|
1015
|
+
top: 50%;
|
|
1016
|
+
transform: translateY(-50%);
|
|
1017
|
+
-ms-transform: translateY(-50%);
|
|
1018
|
+
|
|
1019
|
+
margin-left:4px;
|
|
1020
|
+
font-weight:bold;
|
|
1021
|
+
text-overflow: ellipsis;
|
|
1022
|
+
white-space: nowrap;
|
|
1023
|
+
overflow: hidden;
|
|
1024
|
+
}
|
|
1025
|
+
.layout_Toolbar .toolbar-title span {
|
|
1026
|
+
}
|
|
1027
|
+
.layout_Toolbar .toolbar-child {
|
|
1028
|
+
position: relative;
|
|
1029
|
+
top: 50%;
|
|
1030
|
+
transform: translateY(-50%);
|
|
1031
|
+
-ms-transform: translateY(-50%);
|
|
1032
|
+
|
|
1033
|
+
float:right;
|
|
1034
|
+
margin-left:4px;
|
|
1035
|
+
margin-right:4px;
|
|
1036
|
+
line-height:16px;
|
|
1037
|
+
}
|
|
1038
|
+
`,document.head.appendChild(t)}})();var pt=class extends Zd{static{d(this,"M")}static{w(this,"Toolbar")}constructor(){super(),this._tag="div"}enter(t,e){super.enter(t,e)}update(t,e){super.update(t,e);let i=this;e.attr("title",i.title()).style("background-color",this.backgroundColor());let o=e.selectAll("div.toolbar-title").data(this.title()?[this.title()]:[]);o.enter().append("div").classed("toolbar-title",!0).append("span"),o.selectAll("div.toolbar-title > span").style("font-size",this.fontSize_exists()?this.fontSize()+"px":null).style("color",this.fontColor_exists()?this.fontColor():null).style("font-family",this.fontFamily_exists()?this.fontFamily():null).style("font-weight",this.fontBold_exists()?this.fontBold()?"bold":"normal":null).style("background-color",this.backgroundColor_exists()?this.backgroundColor():null).text(i.title()),o.exit().remove();let r=e.selectAll("div.toolbar-child").data(this.widgets()!==null?this.widgets():[],function(l){return l.id()});r.enter().insert("div","div.toolbar-title").each(function(l,n){let s=i.widgetClasses()[n]?i.widgetClasses()[n]+" toolbar-child":"toolbar-child";Qd(this).classed(s,!0),l.target(this)}),r.exit().each(function(l){l.target(null)}).remove(),r.order()}render(t){let e=this;return super.render(function(i){let o=e.element().node().getBoundingClientRect(),r=o.left+o.width;e.element().selectAll("div.toolbar-child").each(function(l,n){let s=this.getBoundingClientRect();r>s.left&&(r=s.left)}),e.element().select(".toolbar-title").style("width",r-o.left-4+"px"),t&&t(i)})}exit(t,e){this.widgets().forEach(function(i){i.target(null)}),super.exit(t,e)}};pt.prototype._class+=" layout_Toolbar";pt.prototype.publish("title","","string","Title",null,{tags:["Intermediate"]});pt.prototype.publish("fontSize",null,"number","Title Font Size (px)",null,{tags:["Advanced"],optional:!0});pt.prototype.publish("fontColor",null,"html-color","Title Font Color",null,{tags:["Advanced"],optional:!0});pt.prototype.publish("fontFamily",null,"string","Title Font Family",null,{tags:["Advanced"],optional:!0});pt.prototype.publish("fontBold",!0,"boolean","Enable Bold Title Font",null,{tags:["Advanced"],optional:!0});pt.prototype.publish("backgroundColor",null,"html-color","Background Color",null,{tags:["Intermediate"],optional:!0});pt.prototype.publish("responsive",!0,"boolean","Adapts to pixel width",null,{tags:["Basic"]});pt.prototype.publish("widgets",[],"widgetArray","Child widgets of the toolbar",null,{tags:["Basic"]});pt.prototype.publish("widgetClasses",[],"array","Array of Html Element classes to be assigned to the child widgets (shares index with widgets param)",null,{tags:["Basic"]});var th=class extends rt{static{d(this,"Ot")}static{w(this,"VerticalList")}constructor(){super(),this.orientation_default("vertical"),this.flexWrap_default("nowrap")}};th.prototype._class+=" layout_VerticalList";import{IGraph as wn,INDChart as xn}from"@hpcc-js/api";import{HTMLWidget as qe,Utility as vn}from"@hpcc-js/common";import{map as oh}from"@hpcc-js/common";var bn={};Tr(bn,{requireWidget:()=>Ce,requireWidgets:()=>ih});import{Utility as eh}from"@hpcc-js/common";function Ce(t){return new Promise(function(e,i){let o=eh.parseClassID(t);Xi&&Xi([o.package],function(r){let l=null;r&&r[o.widgetID]&&(l=r[o.widgetID]),e(o.memberWidgetID?l.prototype?l.prototype[o.memberWidgetID]:l[o.memberWidgetID]:l)})})}d(Ce,"requireWidget");function ih(t){return Promise.all(t.map(Ce))}d(ih,"requireWidgets");var E=class extends qe{static{d(this,"MultiChart")}_allCharts={};_chartTypeDefaults;_chartTypeProperties;_chartMonitor;_switchingTo;constructor(){super(),xn.call(this),wn.call(this),this._tag="div",this._allCharts={},this._allChartTypes.forEach(function(e){let i=JSON.parse(JSON.stringify(e));i.widget=null,this._allCharts[e.id]=i,this._allCharts[e.display]=i,this._allCharts[e.widgetClass]=i},this),this._chartTypeDefaults={},this._chartTypeProperties={}}fields(e){let i=super.fields.apply(this,arguments);if(this.chart()){if(!arguments.length)return this.chart().fields();this.chart().fields(e)}return i}columns(e,i){let o=qe.prototype.columns.apply(this,arguments);if(this.chart()){if(!arguments.length)return this.chart().columns();this.chart().columns(e,i)}return o}data(e){let i=qe.prototype.data.apply(this,arguments);if(this.chart()){if(!arguments.length)return this.chart().data();this.chart().data(e)}return i}hasOverlay(){return this.chart()&&this.chart().hasOverlay()}visible(e){return arguments.length?(this.chart()&&this.chart().visible(e),this):this.chart()&&this.chart().visible()}chartTypeDefaults(e){return arguments.length?(this._chartTypeDefaults=e,this):this._chartTypeDefaults}chartTypeProperties(e){return arguments.length?(this._chartTypeProperties=e,this):this._chartTypeProperties}getChartDataFamily(){return this._allCharts[this.chartType()].family}requireContent(e,i){let o=vn.parseClassID(this._allCharts[e].widgetClass);switch(o.package){case"@hpcc-js/chart":import("@hpcc-js/chart").then(r=>{i(new r[o.widgetID])});break;case"@hpcc-js/dgrid":import("@hpcc-js/dgrid").then(r=>{i(new r[o.widgetID])});break;default:Ce(this._allCharts[e].widgetClass).then(function(r){i(new r)})}}switchChart(e){if(this._switchingTo===this.chartType()){e&&e(this);return}else this._switchingTo&&console.warn("Attempting switch to: "+this.chartType()+", before previous switch is complete ("+this._switchingTo+")");this._switchingTo=this.chartType();let i=this.chart(),o=this;this.requireContent(this.chartType(),function(r){if(r!==i){let l=o.size();r.fields(o.fields()).data(o.data()).size(l),o.chart(r),i&&i.size({width:1,height:1}).render()}delete o._switchingTo,e&&e(this)})}update(e,i){super.update(e,i);let o=i.selectAll(".multiChart").data(this.chart()?[this.chart()]:[],function(n){return n._id});o.enter().append("div").attr("class","multiChart").each(function(n){n.target(this)});let r=this.chart();if(r){for(let n in this._chartTypeDefaults)if(r[n+"_default"])try{r[n+"_default"](this._chartTypeDefaults[n])}catch{console.warn("Exception Setting Default: "+n)}else console.warn("Unknown Default: "+n);this._chartTypeDefaults={};for(let n in this._chartTypeProperties)if(r[n])try{r[n](this._chartTypeProperties[n])}catch{console.warn("Exception Setting Property: "+n)}else console.warn("Unknown Property: "+n);this._chartTypeProperties={}}let l=this;o.each(function(n){n.resize(l.size())}),o.exit().transition().each(function(n){n.target(null)}).remove()}exit(e,i){this._chartMonitor&&(this._chartMonitor.remove(),delete this._chartMonitor),this.chart()&&this.chart().target(null),super.exit(e,i)}render(e){if(this.chartType()&&(!this.chart()||this.chart().classID()!==this._allCharts[this.chartType()].widgetClass)){let i=this,o=arguments;return this.switchChart(function(){qe.prototype.render.apply(i,o)}),this}return qe.prototype.render.apply(this,arguments)}};E.prototype._class+=" composite_MultiChart";E.prototype.implements(xn.prototype);E.prototype.implements(wn.prototype);E.prototype._otherChartTypes=[{id:"FORM",display:"Form",widgetClass:"form_FieldForm"}].map(function(t){return t.family="other",t});E.prototype._graphChartTypes=[{id:"GRAPH",display:"Graph",widgetClass:"graph_Graph"},{id:"ADJACENCY_GRAPH",display:"Graph",widgetClass:"graph_AdjacencyGraph"},{id:"GRAPHC",display:"GraphC",widgetClass:"graph_GraphC"}].map(function(t){return t.family="GRAPH",t});E.prototype._1DChartTypes=[].map(function(t){return t.family="1D",t});E.prototype._2DChartTypes=[{id:"SUMMARY",display:"Summary",widgetClass:"chart_Summary"},{id:"BUBBLE",display:"Bubble",widgetClass:"chart_Bubble"},{id:"PIE",display:"Pie",widgetClass:"chart_Pie"},{id:"WORD_CLOUD",display:"Word Cloud",widgetClass:"other_WordCloud"}].map(function(t){return t.family="2D",t});E.prototype._NDChartTypes=[{id:"COLUMN",display:"Column",widgetClass:"chart_Column"},{id:"BAR",display:"Bar",widgetClass:"chart_Bar"},{id:"LINE",display:"Line",widgetClass:"chart_Line"},{id:"AREA",display:"Area",widgetClass:"chart_Area"},{id:"STEP",display:"Step",widgetClass:"chart_Step"},{id:"SCATTER",display:"Scatter",widgetClass:"chart_Scatter"},{id:"HEXBIN",display:"Hex Bin",widgetClass:"chart_HexBin"}].map(function(t){return t.family="ND",t});E.prototype._mapChartTypes=[{id:"CHORO_USSTATES",display:"US State Choropleth",widgetClass:"map_ChoroplethStates"},{id:"CHORO_USCOUNTIES",display:"US County Choropleth",widgetClass:"map_ChoroplethCounties"},{id:"CHORO_COUNTRIES",display:"Country Choropleth",widgetClass:"map_ChoroplethCountries"},{id:"GMAP_CHORO_USCOUNTIES",display:"Google Map US County Choropleth",widgetClass:"map_GMapCounties"},{id:"GOOGLE_MAP",display:"Google Map",widgetClass:"map_GMapLayered"},{id:"OPENSTREET",display:"Open Street Map",widgetClass:"map_OpenStreet"}].map(function(t){return t.family="map",t});E.prototype._anyChartTypes=[{id:"TABLE",display:"Table",widgetClass:"dgrid_Table"},{id:"TABLE_LEGACY",display:"Table (legacy)",widgetClass:"other_Table"},{id:"TABLE_NESTED",display:"Nested Table",widgetClass:"other_NestedTable"},{id:"TABLE_CALENDAR",display:"Table driven Calendar Heat Map",widgetClass:"other_CalendarHeatMap"},{id:"TABLE_BULLET",display:"Table driven bullet chart",widgetClass:"chart_Bullet"},{id:"TABLE_SELECT",display:"Table driven select",widgetClass:"other_Select"},{id:"TABLE_AUTOCOMPLETE",display:"Table driven auto complete",widgetClass:"other_AutoCompleteText"},{id:"TABLE_OPPORTUNITY",display:"Table driven opportunity widget",widgetClass:"graph_Opportunity"},{id:"TABLE_TREE",display:"Table driven tree",widgetClass:"tree_Dendrogram"},{id:"TABLE_TREEMAP",display:"Table driven Treemap",widgetClass:"tree_Treemap"},{id:"TABLE_SANKEY",display:"Table driven Sankey",widgetClass:"graph_Sankey"},{id:"TABLE_GMAP_PIN",display:"Table driven Google Map (pins)",widgetClass:"map_GMapPin"},{id:"TABLE_GMAP_PINLINE",display:"Table driven Google Map (pins/lines)",widgetClass:"map_GMapPinLine"},{id:"TABLE_XML_TREE",display:"Table driven XML Tree",widgetClass:"tree_Indented"}].map(function(t){return t.family="any",t});E.prototype._allChartTypes=E.prototype._otherChartTypes.concat(E.prototype._graphChartTypes.concat(E.prototype._1DChartTypes.concat(E.prototype._2DChartTypes.concat(E.prototype._NDChartTypes.concat(E.prototype._mapChartTypes.concat(E.prototype._anyChartTypes))))));E.prototype._allMap=oh(E.prototype._allChartTypes,function(t){return t.family});E.prototype._allFamilies=E.prototype._allMap.keys();E.prototype._allChartTypesMap={};E.prototype._allChartTypesByClass={};E.prototype._allChartTypes.forEach(function(t){t.widgetPath=vn.widgetPath(t.widgetClass),E.prototype._allChartTypesMap[t.id]=t,E.prototype._allChartTypesByClass[t.widgetClass]=t});E.prototype.publishReset();E.prototype.publish("hideRowOnLegendClick",!1,"boolean","Enable/Disable hiding row on legend clicks",null,{tags:["Basic"]});E.prototype.publish("chartType","BUBBLE","set","Chart Type",E.prototype._allChartTypes.map(function(t){return t.id}),{tags:["Basic"]});E.prototype.publish("chart",null,"widget","Chart",null,{tags:["Basic"]});var rh=E.prototype.chart;E.prototype.chart=function(t){let e=rh.apply(this,arguments);if(arguments.length){let i=this;this._allChartTypesByClass[t.classID()]?this.chartType(this._allChartTypesByClass[t.classID()].id):console.warn("Unknown Class ID: "+t.classID()),t.click=function(o,r,l){i.click.apply(i,arguments)},t.dblclick=function(o,r,l){i.dblclick.apply(i,arguments)},t.vertex_click=function(o,r,l,n){i.vertex_click.apply(i,arguments)},t.vertex_dblclick=function(o,r,l,n){i.vertex_dblclick.apply(i,arguments)},t.edge_click=function(o,r,l,n){i.edge_click.apply(i,arguments)},t.edge_dblclick=function(o,r,l,n){i.edge_dblclick.apply(i,arguments)},this._chartMonitor&&(this._chartMonitor.remove(),delete this._chartMonitor),this._chartMonitor=t.monitor(function(o,r,l){i.broadcast(o,r,l,t)})}return e};(function(){if(!document.getElementById("34d5dd28")){var t=document.createElement("style");t.id="34d5dd28",t.textContent=`.composite_ChartPanel > .body {
|
|
1039
|
+
margin: 0;
|
|
1040
|
+
padding: 0;
|
|
1041
|
+
display: flex;
|
|
1042
|
+
flex-flow: row;
|
|
1043
|
+
}
|
|
1044
|
+
|
|
1045
|
+
.composite_ChartPanel > .body > article {
|
|
1046
|
+
flex: 3 1 60%;
|
|
1047
|
+
order: 2;
|
|
1048
|
+
}
|
|
1049
|
+
|
|
1050
|
+
.composite_ChartPanel > .body > nav {
|
|
1051
|
+
flex: 1 6 20%;
|
|
1052
|
+
order: 1;
|
|
1053
|
+
}
|
|
1054
|
+
|
|
1055
|
+
.composite_ChartPanel > .body > aside {
|
|
1056
|
+
margin-left: 4px;
|
|
1057
|
+
flex: 1 6 20%;
|
|
1058
|
+
order: 3;
|
|
1059
|
+
}
|
|
1060
|
+
|
|
1061
|
+
header, footer {
|
|
1062
|
+
display: block;
|
|
1063
|
+
}
|
|
1064
|
+
`,document.head.appendChild(t)}})();var Uo=class extends lh{static{d(this,"Summary")}constructor(){super()}enter(e,i){super.enter(e,i),i.append("p")}update(e,i){super.update(e,i),i.select("p").text(this.text())}};Uo.prototype.publish("text","","string");var Vo=class extends H{static{d(this,"MultiChartPanel")}constructor(){super(),this.widget(new E().chartType("COLUMN"))}multiChart(){return this._widget}chartType(e){return arguments.length?(this._widget.chartType(e),this):this._widget.chartType()}chart(e){return arguments.length?(this._widget.chart(e),this):this._widget.chart()}chartTypeDefaults(e){return arguments.length?(this._widget.chartTypeDefaults(e),this):this._widget.chartTypeDefaults()}chartTypeProperties(e){return arguments.length?(this._widget.chartTypeProperties(e),this):this._widget.chartTypeProperties()}update(e,i){super.update(e,i),this._widget instanceof E&&this._legend.dataFamily(this._widget.getChartDataFamily()),super.update(e,i)}};Vo.prototype._class+=" composite_MultiChartPanel";import{OnOff as nh}from"@hpcc-js/form";import{PropertyEditor as sh}from"@hpcc-js/other";(function(){if(!document.getElementById("e6188c82")){var t=document.createElement("style");t.id="e6188c82",t.textContent=`\uFEFF.composite_Dermatology {
|
|
1065
|
+
background-color: ghostwhite;
|
|
1066
|
+
}
|
|
1067
|
+
|
|
1068
|
+
.composite_Dermatology .common_Icon {
|
|
1069
|
+
background-color: red;
|
|
1070
|
+
opacity:0.75;
|
|
1071
|
+
}
|
|
1072
|
+
|
|
1073
|
+
.composite_Dermatology .common_Icon .common_Shape {
|
|
1074
|
+
fill: white;
|
|
1075
|
+
stroke: darkgray;
|
|
1076
|
+
cursor:pointer;
|
|
1077
|
+
}
|
|
1078
|
+
|
|
1079
|
+
.composite_Dermatology .common_Icon.show .common_Shape {
|
|
1080
|
+
fill: lightgray;
|
|
1081
|
+
}
|
|
1082
|
+
|
|
1083
|
+
.composite_Dermatology .common_Icon .common_FAChar .common_Text {
|
|
1084
|
+
fill: darkgray;
|
|
1085
|
+
cursor:pointer;
|
|
1086
|
+
}
|
|
1087
|
+
|
|
1088
|
+
.composite_Dermatology .other_PropertyEditor {
|
|
1089
|
+
font-family: sans-serif;
|
|
1090
|
+
font-size: 11px;
|
|
1091
|
+
}
|
|
1092
|
+
|
|
1093
|
+
.composite_Dermatology .other_PropertyEditor input {
|
|
1094
|
+
font-family: sans-serif;
|
|
1095
|
+
font-size: 11px;
|
|
1096
|
+
border:0px;
|
|
1097
|
+
}
|
|
1040
1098
|
|
|
1041
|
-
|
|
1042
|
-
|
|
1043
|
-
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
|
|
1047
|
-
|
|
1048
|
-
|
|
1049
|
-
|
|
1050
|
-
exports.BUILD_VERSION = BUILD_VERSION;
|
|
1051
|
-
exports.Dermatology = Dermatology;
|
|
1052
|
-
exports.MegaChart = MegaChart;
|
|
1053
|
-
exports.MultiChart = MultiChart;
|
|
1054
|
-
exports.MultiChartPanel = MultiChartPanel;
|
|
1055
|
-
exports.PKG_NAME = PKG_NAME;
|
|
1056
|
-
exports.PKG_VERSION = PKG_VERSION;
|
|
1057
|
-
exports.Persist = Persist;
|
|
1058
|
-
exports.Utility = Utility;
|
|
1059
|
-
|
|
1060
|
-
}));
|
|
1099
|
+
.composite_Dermatology .other_PropertyEditor .property-label {
|
|
1100
|
+
height:unset;
|
|
1101
|
+
}
|
|
1102
|
+
`,document.head.appendChild(t)}})();var Je=class extends Z{static{d(this,"Dermatology")}_toolbar;_propEditor;_showProperties;_propsButton;_prevWidget;constructor(){super(),this._toolbar=new pt().title("Dermatology"),this._propEditor=new sh().show_settings(!0)}showProperties(e){if(!arguments.length)return this._showProperties;this._showProperties=e,this.rightPercentage(0).rightSize(this._showProperties?360:0).setContent("right",this._showProperties?this._propEditor:null);let i=this.widget();return i&&i.designMode&&i.designMode(this._showProperties),this}toggleProperties(){return this.showProperties(!this.showProperties())}enter(e,i){super.enter(e,i),this.topPercentage(0).topSize(0).setContent("top",this._toolbar),this.getCell("top").surfaceShadow(!0);let o=this;this._propsButton=new nh().id(this.id()+"_props").value("Properties").on("click",function(){o.toggleProperties().render()}),this._toolbar.widgets([this._propsButton])}update(e,i){this.topPercentage(0).topSize(this.showToolbar()?32:0),super.update(e,i);let o=this.widget();i.style("background-color",o&&o.surfaceShadow?null:"white")}render(e){let i=this.widget();return i!==this._prevWidget&&(i&&i.surfaceShadow&&i.surfaceBackgroundColor_default("white"),this.setContent("center",i),this._propEditor.widget(i),this._prevWidget=i),super.render(e)}showToolbar;showToolbar_exists;widget;widget_exists};Je.prototype._class+=" composite_Dermatology";Je.prototype.publish("showToolbar",!0,"boolean","Show Toolbar");Je.prototype.publish("widget",null,"widget","Widget");import{Text as Cn,Utility as ah}from"@hpcc-js/common";import{Button as $o,Input as dh,Select as hh}from"@hpcc-js/form";import{Html as ch,Legend as Sn}from"@hpcc-js/other";import{select as Pi}from"@hpcc-js/common";import"@hpcc-js/common";(function(){if(!document.getElementById("e075cdb6")){var t=document.createElement("style");t.id="e075cdb6",t.textContent=`.composite_MegaChart-Info,
|
|
1103
|
+
.composite_MegaChart-Info *,
|
|
1104
|
+
.composite_MegaChart-Maximize,
|
|
1105
|
+
.composite_MegaChart-Maximize *{
|
|
1106
|
+
font-family: FontAwesome;
|
|
1107
|
+
}`,document.head.appendChild(t)}})();var V=class extends Z{static{d(this,"MegaChart")}_chart=new E;_toolbar=new pt;_valueTitle=new Cn;_domainTitle=new Cn;_legend=new Sn;_csvButton;_infoButton;_maximizeButton;_legendButton;_chartTypeSelect;_prevLegendPosition;_prevShowToolbar;_1DChartTypes;_2DChartTypes;_NDChartTypes;_anyChartTypes;_allChartTypes;_contentClasses;_dataCount;constructor(){super(),this._tag="div";let e=this;this._chart.click=function(){e.click.apply(e,arguments)},this._chart.dblclick=function(){e.dblclick.apply(e,arguments)},this._chart.vertex_click=function(){e.vertex_click.apply(e,arguments)},this._chart.vertex_dblclick=function(){e.vertex_dblclick.apply(e,arguments)},this._chart.edge_click=function(){e.edge_click.apply(e,arguments)},this._chart.edge_dblclick=function(){e.edge_dblclick.apply(e,arguments)}}toolbarWidgets(e){return arguments.length?(this._toolbar.widgets(e),this):this._toolbar.widgets()}chartTypeDefaults(e){return arguments.length?(this._chart.chartTypeDefaults(e),this):this._chart.chartTypeDefaults()}chartTypeProperties(e){return arguments.length?(this._chart.chartTypeProperties(e),this):this._chart.chartTypeProperties()}fields(e){return arguments.length?(this._chart.fields(e),this):this._chart.fields()}columns(e,i){return arguments.length?(this._chart.columns(e,i),this):this._chart.columns()}data(e){return arguments.length?(this._chart.data(e),this):this._chart.data()}downloadCSV(){return ah.downloadString("CSV",this._chart.export("CSV")),this}enter(e,i){super.enter(e,i);let o=this;this.topShrinkWrap(!1).topPercentage(0).topSize(30),this._dataCount=new ch().classed({"composite_MegaChart-dataCount":!0}).id(this.id()+"_dataCount").html('<span class="MegaChart-dataCount-label">Count:</span> <span class="MegaChart-dataCount-value">'+(this.data()?this.data().length:"0")+"</span>").overflowX("visible").overflowY("visible"),this._csvButton=new $o().classed({"composite_MegaChart-CSV":!0}).id(this.id()+"_csv").value("CSV"),this._csvButton.click=function(r){o.downloadCSV()},this._infoButton=new $o().classed({"composite_MegaChart-Info":!0}).id(this.id()+"_info").value(this.infoIcon()),this._maximizeButton=new $o().classed({"composite_MegaChart-Maximize":!0}).id(this.id()+"_maximize").value("\uF2D0"),this._maximizeButton.click=function(r){let l=o.target(),n=l,s=Pi(l).classed("__hpccisMaximized"),a=o.locateAncestor("layout_Grid");a?n=a.element().node():n=document.body;let c=Pi(o.target());if(s){let g=l.parentElement.getBoundingClientRect(),u=parseInt(getComputedStyle(l,null).getPropertyValue("padding-top").replace("px","")),f=parseInt(getComputedStyle(l,null).getPropertyValue("padding-left").replace("px","")),p=parseInt(getComputedStyle(l,null).getPropertyValue("padding-right").replace("px","")),y=parseInt(getComputedStyle(l,null).getPropertyValue("padding-bottom").replace("px",""));o.contentDiv.style("opacity",0).transition(100),c.transition().style("top",g.top+"px").style("left",g.left+"px").style("width",g.width-f-p+"px").style("height",g.height-u-y+"px").each("end",function(){c.style("position",l.__old_position),c.style("z-index",l.__old_zindex),c.style("background-color",l.__old_backgroundColor),c.style("box-shadow",l.__old_boxshadow),o.resize({width:g.width-f-p,height:g.height-u-y}).render(function(){o.contentDiv.transition().style("opacity",1)}),r.value("\uF2D0").render()})}else{l.__old_position=l.style.position,l.__old_zindex=l.style.zIndex,l.__old_boxshadow=l.style.boxShadow,l.__old_backgroundColor=o.element().style("background-color");let g=Pi(n).datum(),u=g.target(),f=g?u.getBoundingClientRect():n.getBoundingClientRect(),p=parseInt(getComputedStyle(u,null).getPropertyValue("padding-top").replace("px","")),y=parseInt(getComputedStyle(u,null).getPropertyValue("padding-left").replace("px","")),C=parseInt(getComputedStyle(u,null).getPropertyValue("padding-right").replace("px","")),x=parseInt(getComputedStyle(u,null).getPropertyValue("padding-bottom").replace("px",""));o.contentDiv.style("opacity",0).transition(100),c.style("position","fixed").style("z-index",999999).style("box-shadow","0 8px 8px 0 rgba(0,0,0,.14),0 12px 4px -8px rgba(0,0,0,.2),0 4px 20px 0 rgba(0,0,0,.12)").style("background-color",l.__old_backgroundColor).transition().style("top",f.top+p+"px").style("left",f.left+y+"px").style("width",f.width-y-C+"px").style("height",f.height-p-x+"px").each("end",function(){c.style("background-color",o.maximizedBackgroundColor()),o.resize({width:f.width-y-C,height:f.height-p-x}).render(function(){o.contentDiv.transition().style("opacity",1)}),r.value("\uF2D1").render()})}Pi(l).classed("__hpccisMaximized",!s)},this._legendButton=new dh().classed({"composite_MegaChart-legend":!0}).id(this.id()+"_legend").type("checkbox").inlineLabel("Legend: "),this._legendButton.click=function(r){o.render()},this._chartTypeSelect=new hh().classed({"composite_MegaChart-chartType":!0}).id(this.id()+"_chartType").selectOptions(this._allChartTypes.map(function(r){return[r.id,r.display]})).value(this.chartType()),this._chartTypeSelect.change=function(r){o.chartType(r.value()).render()},this.setContent("center",this._chart),this._legend.targetWidget(this._chart).orientation(["top","bottom"].indexOf(this.legendPosition())!==-1?"horizontal":"vertical").fixedSize(!0),this._prevLegendPosition=this.legendPosition(),this.valueAxisTitle()&&this.setContent("left",this._valueTitle.rotation(-90)).leftShrinkWrap(!0),this.domainAxisTitle()&&this.setContent("bottom",this._domainTitle).bottomShrinkWrap(!0),this.legendPosition()!=="none"&&this.setContent(this.legendPosition(),this._legend)[this.legendPosition()+"ShrinkWrap"](!0)}update(e,i){function o(n,s,a){if(a&&n.indexOf(s)===-1)n.push(s);else if(!a){let c=n.indexOf(s);c>=0&&n.splice(c,1)}}d(o,"showHideButton"),this._chart&&typeof this._chart.hideRowOnLegendClick=="function"&&this._chart.hideRowOnLegendClick(this.hideRowOnLegendClick()),this._dataCount.html('<span class="MegaChart-dataCount-label">Count:</span> <span class="MegaChart-dataCount-value">'+(this.data()?this.data().length:"0")+"</span>"),this._chartTypeSelect.value(this.chartType());let r=this.toolbarWidgets();o(r,this._csvButton,this.showCSV()),o(r,this._maximizeButton,this.showMaximize()),o(r,this._legendButton,this.toolbarShowLegend()),o(r,this._chartTypeSelect,this.showChartSelect()),o(r,this._infoButton,this.showInfoButton()),o(r,this._dataCount,this.showCount()),this.toolbarWidgets(r),this._prevShowToolbar!==this.showToolbar()&&(this.setContent("top",this.showToolbar()?this._toolbar:null),this._prevShowToolbar=this.showToolbar()),this._toolbar.fontSize(this.titleFontSize()).fontColor(this.titleFontColor()).fontFamily(this.titleFontFamily()).fontBold(this.titleFontBold()).backgroundColor(this.titleBackgroundColor()),this._chart.data(this.data()),this._chart.chartType()!==this.chartType()&&this._chart.chartType(this.chartType());let l=this.legendPosition();this.toolbarShowLegend()&&!this._legendButton.checked()&&(l="none"),this._prevLegendPosition!==l&&(this._prevLegendPosition!=="none"&&this.clearContent(this._prevLegendPosition),this._prevLegendPosition=l,l!=="none"&&(this._legend=new Sn().targetWidget(this.getContent("center").fixedSize(!0)),this.setContent(l,this._legend),this._legend.orientation(["top","bottom"].indexOf(l)!==-1?"horizontal":"vertical"))),this._contentClasses=this.getContentClasses(),this.valueAxisTitle()&&this._contentClasses.left!=="common_Text"&&l!=="left"&&this.setContent("left",this._valueTitle.rotation(-90)),this.domainAxisTitle()&&this._contentClasses.bottom!=="common_Text"&&l!=="bottom"&&this.setContent("bottom",this._domainTitle).bottomShrinkWrap(!0),this._legend.dataFamily(this._chart.getChartDataFamily()),super.update(e,i)}exit(e,i){super.exit(e,i)}getContentClasses(){let e={},i=this.getContent("top"),o=this.getContent("right"),r=this.getContent("bottom"),l=this.getContent("left");return e.top=i!==null?i.classID():void 0,e.right=o!==null?o.classID():void 0,e.bottom=r!==null?r.classID():void 0,e.left=l!==null?l.classID():void 0,e}serializeState(){let e={title:this.title(),data:this.data()},i=this.chart();return i&&i.serializeState&&(e.chart=i.serializeState(),delete e.chart.data),e}deserializeState(e){if(e){this.title(e.title).data(e.data);let i=this.chart();i&&e.chart&&i.serializeState&&i.deserializeState(e.chart)}return this}click(e,i,o){}dblclick(e,i,o){}vertex_click(e,i,o,r){r&&r.vertex}vertex_dblclick(e,i,o,r){r&&r.vertex}edge_click(e,i,o,r){r&&r.edge}edge_dblclick(e,i,o,r){r&&r.edge}hideRowOnLegendClick;hideRowOnLegendClick_exists;showToolbar;showToolbar_exists;titleFontSize;titleFontSize_exists;titleFontColor;titleFontColor_exists;titleFontFamily;titleFontFamily_exists;titleFontBold;titleFontBold_exists;titleBackgroundColor;titleBackgroundColor_exists;maximizedBackgroundColor;maximizedBackgroundColor_exists;showChartSelect;showChartSelect_exists;showCSV;showCSV_exists;showCount;showCount_exists;showMaximize;showMaximize_exists;toolbarShowLegend;toolbarShowLegend_exists;showInfoButton;showInfoButton_exists;infoIcon;infoIcon_exists;legendPosition;legendPosition_exists;title;title_exists;domainAxisTitle;domainAxisTitle_exists;valueAxisTitle;valueAxisTitle_exists;chartType;chartType_exists;chart;chart_exists};V.prototype._class+=" composite_MegaChart";V.prototype._1DChartTypes=E.prototype._1DChartTypes;V.prototype._2DChartTypes=E.prototype._2DChartTypes;V.prototype._NDChartTypes=E.prototype._NDChartTypes;V.prototype._anyChartTypes=E.prototype._anyChartTypes;V.prototype._allChartTypes=E.prototype._allChartTypes;V.prototype.publishReset();V.prototype.publish("hideRowOnLegendClick",!1,"boolean","Enable/Disable hiding row on legend clicks",null,{tags:["Basic"]});V.prototype.publish("showToolbar",!0,"boolean","Enable/Disable Toolbar widget",null,{tags:["Basic"]});V.prototype.publishProxy("title","_toolbar","title");V.prototype.publish("ddlParamsFormat","","string","DDL Param Format '{fname}, {lname}'",null,{tags:["Advanced"],optional:!0});V.prototype.publish("titleFontSize",null,"number","Title Font Size (px)",null,{tags:["Advanced"],optional:!0});V.prototype.publish("titleFontColor",null,"html-color","Title Font Color",null,{tags:["Advanced"],optional:!0});V.prototype.publish("titleFontFamily",null,"string","Title Font Family",null,{tags:["Advanced"],optional:!0});V.prototype.publish("titleFontBold",!0,"boolean","Enable Bold Title Font",null,{tags:["Advanced"],optional:!0});V.prototype.publish("titleBackgroundColor",null,"html-color","Background Color",null,{tags:["Intermediate"],optional:!0});V.prototype.publish("maximizedBackgroundColor","#FFFFFF","html-color","Background Color while maximized",null,{tags:["Intermediate"],optional:!0});V.prototype.publish("showChartSelect",!0,"boolean","Show/Hide the chartType dropdown in the toolbar",null,{tags:["Basic"]});V.prototype.publish("showCSV",!0,"boolean","Show/Hide CSV button",null,{tags:["Basic"]});V.prototype.publish("showCount",!1,"boolean","Show/Hide Data Count",null,{tags:["Basic"]});V.prototype.publish("showMaximize",!1,"boolean","Show/Hide Maximize button",null,{tags:["Basic"]});V.prototype.publish("toolbarShowLegend",!1,"boolean","Show/Hide Legend button",null,{tags:["Basic"]});V.prototype.publish("showInfoButton",!1,"boolean","Show/Hide Info button in toolbar",null,{tags:["Basic"]});V.prototype.publish("infoIcon","\uF05A","string","Help Icon",null,{tags:["Basic"]});V.prototype.publish("legendPosition","none","set","Position of the Legend widget",["none","top","right","bottom","left"],{tags:["Basic"]});V.prototype.publishProxy("legendFormat","_legend","rainbowFormat");V.prototype.publishProxy("legendBins","_legend","rainbowBins");V.prototype.publishProxy("domainAxisTitle","_domainTitle","text");V.prototype.publishProxy("valueAxisTitle","_valueTitle","text");V.prototype.publishProxy("chartType","_chart","chartType");V.prototype.publishProxy("chart","_chart","chart");var Pn={};Tr(Pn,{clone:()=>gh,create:()=>zi,deserialize:()=>ph,deserializeFromObject:()=>jo,retrofit_114_serialization:()=>In});import{Platform as uh,Utility as Tn}from"@hpcc-js/common";import{Persist as kn}from"@hpcc-js/other";function In(t,e){if(e=!e||e==="1.14.2-dev"?"1.18.0":e,!t.__version)return t;let i=Tn.parseVersionString(t.__version),o=Tn.parseVersionString(e);if(i.major===1&&i.minor===14){console.info("Upgrading old persist from "+t.__version+" to "+e);let r=JSON.stringify(t);r=r.split('"'+t.__version).join('"'+e);let l=JSON.parse(r);return l.__properties&&l.__properties.content&&l.__properties.content.forEach(function(n){JSON.stringify(n).split("graph_Graph").length>1&&o.minor>=16&&(n.__properties.widget.__id=n.__properties.widget.__properties.widget.__id,n.__properties.widget.__class="composite_MegaChart",n.__properties.widget.__properties.showCSV=!1,n.__properties.widget.__properties.chartType="GRAPH",n.__properties.widget.__properties.chart=n.__properties.widget.__properties.widget,delete n.__properties.widget.__properties.chart.__id,delete n.__properties.widget.__properties.widget),typeof n.__properties.fields>"u"&&(n.__properties.fields=[])}),l}else return t}d(In,"retrofit_114_serialization");function jo(t,e){let i=[];return kn.widgetPropertyWalker(t,null,(o,r)=>{if(o[r.id+"_reset"](),e.__properties[r.id]!==void 0)switch(r.type){case"widget":let l=r.id;i.push(zi(e.__properties[r.id]).then(a=>(a._owner=o,o[l](a),a)));break;case"widgetArray":case"propertyArray":let n=r.id,s=e.__properties[r.id];if(s.length){let a=[];for(let c of s)a.push(zi(c).then(g=>(g._owner=o,g)));i.push(Promise.all(a).then(c=>{o[n](c)}))}break;default:o[r.id](e.__properties[r.id]);break}}),Promise.all(i).then(o=>{if(e.__data){for(let r in e.__data)if(e.__data.HasOwnProperty(r))switch(r){case"data":t.data(e.__data[r]);break;default:console.warn("Unexpected __data item: "+r),t[r](e.__data[r]);break}}return e.__state&&(t.deserializeState?t.deserializeState(e.__state):e.__state.data&&t.data&&t.data(e.__state.data)),t})}d(jo,"deserializeFromObject");function ph(t,e){typeof e=="string"&&(e=JSON.parse(e)),e.__id&&e.__id.indexOf(t._idSeed)!==0&&t._id!==e.__id&&console.warn("Deserialize: IDs do not match - "+t._id),jo(t,e)}d(ph,"deserialize");function zi(t){return typeof t=="string"&&(t=JSON.parse(t)),t=In(t,uh.version()),Ce(t.__class).then(e=>{let i=new e;return t.__id&&t.__id.indexOf(i._idSeed)!==0&&t.__id.indexOf("_pe")!==0&&(i._id=t.__id),jo(i,t)}).catch(function(e){console.error("Persist.create: ***exception***"),console.error(e)})}d(zi,"create");function gh(t){zi(kn.serializeToObject(t,void 0,!0,!0))}d(gh,"clone");export{mh as BUILD_VERSION,Je as Dermatology,V as MegaChart,E as MultiChart,Vo as MultiChartPanel,fh as PKG_NAME,yh as PKG_VERSION,Pn as Persist,bn as Utility};
|
|
1061
1108
|
//# sourceMappingURL=index.js.map
|