@devgateway/dvz-ui-react
Version:
A modular, embeddable React component library for data visualization and UI, built with TypeScript. Provides reusable components for charts, maps, dashboards, and more, with built-in support for internationalization and Redux integration.
2 lines (1 loc) • 699 B
JavaScript
;Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const s=require("react/jsx-runtime");require("react");const l=require("react-redux"),h=e=>{const{editing:a=!1,unique:r,intl:b,"data-csv":x="","data-selected-dashboard-id":d="","data-height":n,"data-width":o=100,"data-margin":i=0,settings:t}=e,c=t?t.apache_superset_url:"",u=`${decodeURIComponent(c)}/superset/dashboard/${d}/?standalone=3`;return s.jsx("div",{id:`superset-dashboard-${r}`,children:s.jsx("iframe",{src:u,seamless:"seamless",title:"superset-dashboard",style:{border:"none",width:o+"%",height:n+"px",margin:i+"px"}})})},p=(e,a)=>({}),m={},g=l.connect(p,m)(h);exports.default=g;