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.

29 lines (28 loc) 821 B
import { jsx as s } from "react/jsx-runtime"; import "react"; import { connect as h } from "react-redux"; const l = (e) => { const { editing: a = !1, unique: r, intl: g, "data-csv": b = "", "data-selected-dashboard-id": o = "", "data-height": d, "data-width": n = 100, "data-margin": i = 0, settings: t } = e, c = t ? t.apache_superset_url : "", p = `${decodeURIComponent(c)}/superset/dashboard/${o}/?standalone=3`; return /* @__PURE__ */ s("div", { id: `superset-dashboard-${r}`, children: /* @__PURE__ */ s( "iframe", { src: p, seamless: "seamless", title: "superset-dashboard", style: { border: "none", width: n + "%", height: d + "px", margin: i + "px" } } ) }); }, m = (e, a) => ({}), u = {}, v = h(m, u)(l); export { v as default };