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.

30 lines (29 loc) 856 B
import { jsx as s } from "react/jsx-runtime"; import "react"; import { connect as h } from "react-redux"; import "@devgateway/wp-react-lib"; const m = (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" } } ) }); }, l = (e, a) => ({}), u = {}, $ = h(l, u)(m); export { $ as default };