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) 898 B
import { jsx as e } from "react/jsx-runtime"; import "react"; import { connect as l } from "react-redux"; const u = (t) => /* @__PURE__ */ e(g, { ...t }), g = (t) => { const { editing: r = !1, unique: s, intl: C, "data-csv": S = "", "data-selected-chart-data": n = "{}", "data-height": o, "data-width": c = 100, "data-margin": d = 0, settings: a } = t, i = a ? a.apache_superset_url : "", p = decodeURIComponent(i), h = decodeURIComponent(n), m = `${p}/superset/explore/?form_data=${h}&standalone=1`; return /* @__PURE__ */ e("div", { id: `superset-chart-${s}`, children: /* @__PURE__ */ e( "iframe", { src: m, seamless: "seamless", title: "superset-chart", style: { border: "none", width: c + "%", height: o + "px", margin: d + "px" } } ) }); }, f = (t, r) => ({}), x = {}, _ = l(f, x)(u); export { _ as default };