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.

78 lines (77 loc) 3.45 kB
import a, { lazy as e } from "react"; import c from "./reducers/data.js"; import p from "./reducers/embeddable.js"; import { injectIntl as i } from "react-intl"; const l = e(() => import("./pagegallery/index.js")), d = e(() => import("./download/index.js")), u = e(() => import("./postscarousel/index.js")), b = e(() => import("./chart/index.js")), C = e(() => import("./filter/index.js")), g = e(() => import("./showcase/index.js")), f = e(() => import("./newsletter/index.js")), w = e(() => import("./tabbedposts/index.js")), y = e(() => import("./pagemodules/index.js")), L = e(() => import("./featuredtabs/index.js")), h = e(() => import("./vertical-featuredtabs/index.js")), F = e(() => import("./inlinelist/index.js")), P = e(() => import("./agree-and-download/index.js")), T = e(() => import("./downloadPDF/index.js")), N = e(() => import("./map/index.js")), D = e(() => import("./filter-reset-button/index.js")), M = e(() => import("./filters-apply-button/index.js")), k = e(() => import("./tooltip/index.js")), R = e(() => import("./references/ReferencesList.js")), B = e(() => import("./references/Reference.js")), j = e(() => import("./time-line/index.js")), A = e(() => import("./new-time-line/index.js")), I = e(() => import("./measures/index.js")), O = e(() => import("./menu/index.js")), S = e(() => import("./child-page-menu/index.js")), v = e(() => import("./d3Map/index.js")), x = e(() => import("./parallax/index.js")), W = e(() => import("./wrapped/index.js")), z = e(() => import("./sankeychart/index.js")), G = e(() => import("./datalabel/index.js")), E = e(() => import("./body/index.js")), V = e(() => import("./superset-chart/index.js")), q = e(() => import("./superset-dashboard/index.js")), H = e(() => import("./big-number/index.js")), J = e(() => import("./big-number-trend/index.js")), K = e(() => import("./posts-with-filters/index.js")), m = { pageGallery: l, postsCarousel: u, chart: b, filter: C, showCaseForm: g, newsLetter: f, tabbedPosts: w, pageModules: y, featuredTabs: L, verticalTabs: h, inlineList: F, download: d, downloadPdf: T, map: N, dataFiltersReset: D, dataFiltersApply: M, tooltip: k, references: R, reference: B, timeLine: j, newTimeLine: A, measures: I, menu: O, childPagesMenu: S, newMap: v, parallaxContainer: x, wrapped: W, sankeyChart: z, dataLabel: G, body: E, supersetChart: V, supersetDashboard: q, agreeAndDownload: P, bigNumber: H, bigNumberTrend: J, postsWithFilters: K, redirect: () => null }, s = { components: {}, reducers: {}, registerCustomEmbeddables: (r) => { for (const [o, t] of Object.entries(r)) s.components[o] = t; }, getComponentByNameIgnoreCase: (r) => { const o = Object.keys(s.components).find((t) => t.toLowerCase() === r.toLowerCase()); if (o) { const t = s.components[o]; return a.memo(i(t)); } return null; }, registerCustomReducers: (r) => { for (const [o, t] of Object.entries(r)) s.reducers[o] = t; }, getReducers: () => s.reducers }, Z = (r) => { const o = Object.keys(m).find((n) => n.toLowerCase() === r.toLowerCase()); if (o) { const n = m[o]; return a.memo(i(n)); } const t = s.getComponentByNameIgnoreCase(r); return t ? a.memo(i(t)) : null; }, _ = { data: c, embeddable: p, ...s.getReducers() }; export { m as components, s as customizer, Z as getComponentByNameIgnoreCase, _ as reducers };