gf-components 0.1.43 → 0.1.45
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.cjs.js +1 -1
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +2 -2
- package/dist/index.es.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -499,5 +499,5 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
499
499
|
`,nfe=({selectors:e,setter:t})=>{const n=24/e.length;return L.jsxs(L.Fragment,{children:[L.jsx(On,{}),L.jsx(Lo,{cardtype:"default",style:{width:"100%"},children:L.jsx(tl,{gutter:20,children:e.map(r=>L.jsxs(Ri,{span:n,children:[L.jsx(tfe,{children:r.title}),L.jsx(wa,{defaultValue:r.defaultValue,style:{width:"100%"},onChange:i=>{t(r.key,i)},options:r.options})]}))})})]})},{Text:rfe}=ei,Wh=Mt(rfe)`
|
|
500
500
|
font: var(--gf-label-md-default);
|
|
501
501
|
color: var(--gf-color-text-secondary);
|
|
502
|
-
`,ws={A:"#39b54a",B:"#8cc63f",C:"#d9e021",D:"#fcee21",E:"#fbb03b",F:"#f7931e",G:"#f15a24",H:"#cc3333",I:"#4d4d4d"},ife={A:"Direct hoogwardig inzetten",B:"Indirect hoogwardig inzetten",C:"Voorbereiding voor recycling",D:"Microbiologische verwerking",E:"Grondreiniging",F:"Verbranding met opbrengst",G:"Verbranden",H:"Storten",I:"Opslag"},afe=({data:e,margin:t={},height:n=null,linkTooltip:r=null})=>{e.nodes=e.nodes.map(v=>({...v,nodeColor:ws[v.rank]})),e.links=e.links.map(v=>({...v,startColor:ws[v.target_rank],endColor:ws[v.target_rank]}));const f=v=>`${v.pct>1?v.pct.toFixed(0):v.pct>.1?v.pct.toFixed(1):"<0.1"}%`,h=({node:v})=>{const y=v.sourceLinks.length?-70:30,b=v.height/2-32/2;return L.jsx("g",{transform:`translate(${v.x0+y}, ${v.y0+b})`,children:L.jsx("foreignObject",{width:60,height:32,children:L.jsxs(fa,{justify:"space-between",align:"center",style:{color:"black",textAlign:"center",padding:"2px",border:`2px solid ${v.color}`,whiteSpace:"nowrap"},children:[L.jsx(Wh,{strong:!0,children:v.rank}),L.jsx(Wh,{children:f(v)})]})})})},p=({nodes:v})=>v.map(y=>L.jsx(h,{node:y},y.id)),m=()=>L.jsx("div",{style:{marginTop:10,whiteSpace:"nowrap"},children:Object.keys(ws).map(v=>L.jsxs(fa,{gap:8,align:"center",children:[L.jsx("div",{style:{backgroundColor:ws[v],
|
|
502
|
+
`,ws={A:"#39b54a",B:"#8cc63f",C:"#d9e021",D:"#fcee21",E:"#fbb03b",F:"#f7931e",G:"#f15a24",H:"#cc3333",I:"#4d4d4d"},ife={A:"Direct hoogwardig inzetten",B:"Indirect hoogwardig inzetten",C:"Voorbereiding voor recycling",D:"Microbiologische verwerking",E:"Grondreiniging",F:"Verbranding met opbrengst",G:"Verbranden",H:"Storten",I:"Opslag"},afe=({data:e,margin:t={},height:n=null,linkTooltip:r=null})=>{e.nodes=e.nodes.map(v=>({...v,nodeColor:ws[v.rank]})),e.links=e.links.map(v=>({...v,startColor:ws[v.target_rank],endColor:ws[v.target_rank]}));const f=v=>`${v.pct>1?v.pct.toFixed(0):v.pct>.1?v.pct.toFixed(1):"<0.1"}%`,h=({node:v})=>{const y=v.sourceLinks.length?-70:30,b=v.height/2-32/2;return L.jsx("g",{transform:`translate(${v.x0+y}, ${v.y0+b})`,children:L.jsx("foreignObject",{width:60,height:32,children:L.jsxs(fa,{justify:"space-between",align:"center",style:{color:"black",textAlign:"center",padding:"2px",border:`2px solid ${v.color}`,whiteSpace:"nowrap"},children:[L.jsx(Wh,{strong:!0,children:v.rank}),L.jsx(Wh,{children:f(v)})]})})})},p=({nodes:v})=>v.map(y=>L.jsx(h,{node:y},y.id)),m=()=>L.jsx("div",{style:{marginTop:10,whiteSpace:"nowrap"},children:Object.keys(ws).map(v=>L.jsxs(fa,{gap:8,align:"center",children:[L.jsx("div",{style:{backgroundColor:ws[v],minWidth:22,minHeight:22,border:"1px solid gray"}}),L.jsx(Wh,{children:`${v} ${ife[v]}`})]}))});return L.jsxs(L.Fragment,{children:[L.jsx(On,{}),L.jsxs(tl,{style:{width:"100%"},children:[L.jsx(Ri,{span:8,children:L.jsx(m,{})}),L.jsx(Ri,{span:16,children:L.jsx("div",{style:{height:n||600,display:"flex",justifyContent:"space-between"},children:L.jsx(jO,{data:e,margin:{top:20,right:100,bottom:20,left:100,...t},sort:"input",labelPosition:"outside",colors:v=>v.nodeColor,enableLinkGradient:!0,linkOpacity:.5,nodeOpacity:1,nodeBorderWidth:0,nodeThickness:20,nodeSpacing:32,nodeTooltip:({node:v})=>L.jsx(bi,{label:v.rank,amount:v.value,unit:v.unit}),linkTooltip:({link:v})=>L.jsx(bi,{body:(r==null?void 0:r({link:v}))||L.jsx("span",{children:"Benchmark sankey tooltip"})}),layers:["links","nodes",p]})})})]})]})};exports.AddressLink=mj;exports.BenchmarkSankey=afe;exports.ButtonControls=Kk;exports.CustomToolTip=bi;exports.Description=xj;exports.DownloadButton=d$;exports.EmailLink=gj;exports.ExpandButton=f$;exports.GFButton=Hm;exports.GFCard=Lo;exports.GFMetricsGrid=Sj;exports.Link=rd;exports.LocationIcon=S$;exports.MailIcon=x$;exports.Metrics=b$;exports.NavCard=Qk;exports.PhoneIcon=y$;exports.PhoneLink=pj;exports.PieChart=Hie;exports.QuickNavCard=aj;exports.Sankey=lie;exports.ScatterPlot=Wle;exports.TabCard=oj;exports.Title=m$;exports.TreeMap=Ide;exports.Trends=efe;exports.VisSelectors=nfe;
|
|
503
503
|
//# sourceMappingURL=index.cjs.js.map
|