UNPKG

@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) 645 B
"use strict";const t=require("react/jsx-runtime");require("react");const h=require("react-redux");require("@devgateway/wp-react-lib");const p=e=>{const{editing:r=!1,unique:a,intl:x,"data-csv":b="","data-selected-dashboard-id":d="","data-height":n,"data-width":o=100,"data-margin":i=0,settings:s}=e,c=s?s.apache_superset_url:"",u=`${decodeURIComponent(c)}/superset/dashboard/${d}/?standalone=3`;return t.jsx("div",{id:`superset-dashboard-${a}`,children:t.jsx("iframe",{src:u,seamless:"seamless",title:"superset-dashboard",style:{border:"none",width:o+"%",height:n+"px",margin:i+"px"}})})},l=(e,r)=>({}),m={},g=h.connect(l,m)(p);module.exports=g;