gf-components 0.1.100 → 0.1.101
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 +1 -1
- package/dist/index.es.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -591,5 +591,5 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
591
591
|
translate(-${l+c+J7},
|
|
592
592
|
${v.height-(n+r+l+c)-10-80})
|
|
593
593
|
rotate(90)
|
|
594
|
-
`,children:p.jsx(u9,{children:"Weinig ingevoerd"})})]});return p.jsxs(p.Fragment,{children:[p.jsx(S2,{}),p.jsx("div",{ref:f,style:{height:t},children:p.jsx(lc1,{data:e,margin:{top:n+r+l+c,right:0,bottom:80,left:d,...C},enableLabels:!1,colors:{type:"diverging",scheme:"oranges",minValue:0,maxValue:100,divergeAt:.5},emptyColor:"#
|
|
594
|
+
`,children:p.jsx(u9,{children:"Weinig ingevoerd"})})]});return p.jsxs(p.Fragment,{children:[p.jsx(S2,{}),p.jsx("div",{ref:f,style:{height:t},children:p.jsx(lc1,{data:e,margin:{top:n+r+l+c,right:0,bottom:80,left:d,...C},enableLabels:!1,colors:{type:"diverging",scheme:"oranges",minValue:0,maxValue:100,divergeAt:.5},emptyColor:"#FFFFFF",axisTop:null,axisLeft:null,layers:["legends","cells",$,w,M,V,E,_,O,R],tooltip:I=>p.jsx(f4,{body:(u==null?void 0:u(I))||p.jsx("span",{children:"Tooltip"})}),legends:[{anchor:"bottom",translateX:0,translateY:60,length:v.width-d-20,thickness:24,direction:"row",tickPosition:"after",tickSize:3,tickSpacing:4,tickOverlap:!1,title:"Kritieke grondstoffen per goederengroep (%)",titleAlign:"middle",titleOffset:10}]})})]})},dc1=({data:e,graph:t,stroke:C,strokeWidth:n,dashed:r})=>p.jsx("g",{children:p.jsx("line",{x1:0,y1:t.yScale(e==null?void 0:e.value),x2:t.innerWidth,y2:t.yScale(e==null?void 0:e.value),stroke:C||"red",strokeWidth:n||3,strokeDasharray:r?"10, 5":null})}),G7={goal:"hsl(182, 30%, 45%)",national:"hsl(35, 100%, 96%)",area:"hsl(205, 40%, 79%)"},km={font:"var(--gf-label-md-default)",color:"var(--gf-color-text-secondary)",fontSize:"12px",lineHeight:"14px"},fc1=({data:e,height:t=500,padding:C=.2,keys:n=["total"],indexBy:r="year",margin:i={},axisBottom:o={},axisLeft:a={},valueFormat:s=null,legendLabelWidth:l=145,legendShapeWidth:c=16,legendGap:u=8,legendPadding:d=8,tooltip:f=null})=>{const v=e==null?void 0:e.bar,g=e==null?void 0:e.goal,h=e==null?void 0:e.area,m=G7[g?"national":"area"],b=V=>g&&p.jsx(dc1,{data:g,graph:V,stroke:G7==null?void 0:G7.goal}),x=()=>p.jsxs("div",{style:{display:"flex",gap:u,alignItems:"center",marginBottom:u},children:[p.jsx("div",{style:{backgroundColor:G7==null?void 0:G7.goal,minWidth:c,minHeight:4}}),p.jsx("span",{style:{...km,width:l},children:`Nationaal doel: ${g.value} ${g.unit}`})]}),$=()=>p.jsxs("div",{style:{display:"flex",gap:u,alignItems:"center"},children:[p.jsx("div",{style:{backgroundColor:m,minWidth:c,minHeight:c}}),p.jsx("span",{style:{...km,width:l},children:`Primair geproduceerd afval in ${h}`})]}),w=V=>{const E=S.useRef(null),[_,O]=S.useState({width:0,height:0});return S.useEffect(()=>{var R,I;E!=null&&E.current&&O({width:(R=E==null?void 0:E.current)==null?void 0:R.clientWidth,height:(I=E==null?void 0:E.current)==null?void 0:I.clientHeight})},[]),p.jsx("g",{children:p.jsx("foreignObject",{x:V.innerWidth+d,y:V.innerHeight-_.height,width:_.width,height:_.height,children:p.jsxs("div",{ref:E,style:{display:"inline-block"},children:[g&&p.jsx(x,{}),p.jsx($,{})]})})})},M=d+c+u+l;return p.jsxs(p.Fragment,{children:[p.jsx(S2,{}),p.jsx("div",{style:{width:"100%",height:t},children:p.jsx(Iu,{data:v,keys:n,indexBy:r,colors:m,margin:{left:50,bottom:50,right:M,...i},padding:C,valueFormat:V=>(s==null?void 0:s(V))||V,axisBottom:{tickSize:5,legendPosition:"middle",legendOffset:40,...o},axisLeft:{tickSize:5,legendPosition:"middle",legendOffset:-40,...a},layers:["grid","axes","bars",b,w],tooltip:V=>p.jsx(f4,{body:(f==null?void 0:f(V))||p.jsx("span",{children:"Tooltip"})})})})]})};exports.AddressLink=WD;exports.BarChart=hs1;exports.BenchmarkSankey=Si1;exports.ButtonControls=SD;exports.CustomToolTip=f4;exports.Description=GD;exports.DomRawChart=us1;exports.DownloadButton=tx;exports.EmailLink=BD;exports.ExpandButton=Cx;exports.GFButton=Js;exports.GFCard=K9;exports.GFMetricsGrid=YD;exports.GoalChart=fc1;exports.Link=WC;exports.LocationIcon=cx;exports.MailIcon=lx;exports.MaterialHeatmap=uc1;exports.Metrics=ax;exports.NavCard=_D;exports.PhoneIcon=sx;exports.PhoneLink=UD;exports.PieChart=c61;exports.QuickNavCard=LD;exports.Sankey=_91;exports.ScatterPlot=oC1;exports.TabCard=PD;exports.Title=ox;exports.TreeMap=Xr1;exports.Trends=bi1;exports.VisSelectors=xi1;exports.WasteOverview=ss1;
|
|
595
595
|
//# sourceMappingURL=index.cjs.js.map
|