vue-data-ui
Version:
A user-empowering data visualization Vue 3 components library for eloquent data storytelling
257 lines (256 loc) • 15.4 kB
JavaScript
import { V as O } from "./vue-ui-xy-GG6jRpRS.js";
import { _ as E } from "./Arrow-ChEFq9U7.js";
import { v as W } from "./vue-ui-3d-bar-HXoQbs8d.js";
import { default as H } from "./vue-ui-accordion-Dm0mNNKQ.js";
import { v as G } from "./vue-ui-age-pyramid-CGsJUmDL.js";
import { default as I } from "./vue-ui-annotator-BorYyD6t.js";
import { v as $ } from "./vue-ui-candlestick-COYxFrX8.js";
import { v as F } from "./vue-ui-chestnut-CPleio5s.js";
import { default as q } from "./vue-ui-cursor-CcGTsKr9.js";
import { default as Q } from "./vue-ui-dashboard-DU95z4Iw.js";
import { default as J } from "./vue-ui-digits-DsKNaw_K.js";
import { V as Z } from "./vue-ui-donut-CN7x4Wrm.js";
import { v as te } from "./vue-ui-donut-evolution-D4zNv3y3.js";
import { v as oe } from "./vue-ui-dumbbell-CWi8sl8t.js";
import { v as ue } from "./vue-ui-flow-BydA9ef6.js";
import { v as se } from "./vue-ui-galaxy-BnY90Ga4.js";
import { v as me } from "./vue-ui-gauge-HqwbKAiY.js";
import { v as le } from "./vue-ui-heatmap-Ctb6By74.js";
import { default as _e } from "./BaseIcon-CbVDYv89.js";
import { default as de } from "./vue-ui-kpi-CyQCcR37.js";
import { default as ce } from "./vue-ui-mini-loader-CXB5jl9q.js";
import { v as Ve } from "./vue-ui-molecule-B3f4D6xs.js";
import { v as je } from "./vue-ui-mood-radar-BymSOzbZ.js";
import { v as ke } from "./vue-ui-nested-donuts-Bm75G0c4.js";
import { v as ye } from "./vue-ui-onion-BPPHtjJs.js";
import { v as we } from "./vue-ui-parallel-coordinate-plot-CesySg69.js";
import { v as Pe } from "./vue-ui-quadrant-Dxhvwzha.js";
import { v as Oe } from "./vue-ui-quick-chart-CmfR2FF6.js";
import { v as Ee } from "./vue-ui-radar-9TUuj49-.js";
import { default as We } from "./vue-ui-rating-C-sJPTB9.js";
import { v as He } from "./vue-ui-relation-circle-CSw8wygj.js";
import { v as Ge } from "./vue-ui-rings-BQK3rKYv.js";
import { v as Ie } from "./vue-ui-scatter-DqGnrGmi.js";
import { default as $e } from "./vue-ui-skeleton-CprmuWSV.js";
import { default as Fe } from "./vue-ui-smiley-TGFkjkro.js";
import { v as qe } from "./vue-ui-sparkhistogram-BZPWjy4g.js";
import { v as Qe } from "./vue-ui-sparkstackbar-CBURF9DG.js";
import { v as Je } from "./vue-ui-spark-trend-BMgbFhyC.js";
import { _ as Ze } from "./vue-ui-sparkbar-BR9c9pzQ.js";
import { _ as tt } from "./vue-ui-sparkgauge-QR8NMM76.js";
import { v as ot } from "./vue-ui-sparkline-B7DUXyD7.js";
import { v as ut } from "./vue-ui-strip-plot-tBq-1HEl.js";
import { default as st } from "./vue-ui-table-DQtQ5vth.js";
import { v as mt } from "./vue-ui-table-heatmap-CUOXC4JX.js";
import { v as lt } from "./vue-ui-table-sparkline-B-fJpPuE.js";
import { v as _t } from "./vue-ui-thermometer-BjWvhObo.js";
import { default as dt } from "./vue-ui-timer-KHzMsLix.js";
import { v as ct } from "./vue-ui-tiremarks-DHTm-0Rk.js";
import { v as Vt } from "./vue-ui-treemap-BUskEYhL.js";
import { v as jt, v as gt } from "./vue-ui-horizontal-bar-Oj8JxE1o.js";
import { v as bt } from "./vue-ui-waffle-DB2x0hkH.js";
import { v as Ct } from "./vue-ui-wheel-CIF3OMNS.js";
import { v as St } from "./vue-ui-word-cloud-DA2S9vUS.js";
import { v as Tt } from "./vue-ui-xy-canvas-s7QCO2Kv.js";
import { default as Dt } from "./vue-ui-carousel-table-BsGu8u47.js";
import { default as At } from "./vue-ui-gizmo-B_MBb1r3.js";
import { v as Bt } from "./vue-ui-stackbar-8wfpQv75.js";
import { v as Mt } from "./vue-ui-stackline-KEkKIgeE.js";
import { v as Nt } from "./vue-ui-bullet-B5H4sazy.js";
import { v as Lt } from "./vue-ui-funnel-C83WaW6R.js";
import { v as zt } from "./vue-ui-history-plot-ptSYfBrS.js";
import { _ as Rt } from "./vue-ui-pattern-D5pNvoQp.js";
import { v as Kt } from "./vue-ui-circle-pack-Ctax0o8l.js";
import { default as Xt } from "./vue-ui-world-GYXka5Ap.js";
import { v as Yt } from "./vue-ui-ridgeline-pwJ8hRsj.js";
import { v as ea } from "./vue-ui-chord-BL2kiRYa.js";
import { v as aa } from "./vue-ui-dag-BZeJu8RB.js";
import { default as ra } from "./vue-data-ui-BWmTki6E.js";
import { v as na } from "./vue-ui-geo-wW6nP6hV.js";
import { u as c } from "./useNestedProp-2p4Tjzc8.js";
import { G as ia, A as ma, C as ha, H as la, I as fa, J as _a, K as pa, L as da, M as va } from "./lib-2iaAPQ_c.js";
import { d as xa, l as Va, m as Ua, s as ja } from "./BaseZoomControls-e4hnaBoq.js";
import { watchEffect as x, markRaw as V, computed as l, isRef as U } from "vue";
function C(e) {
return c()[e];
}
const j = /* @__PURE__ */ Object.assign({ "./themes/vue_ui_3d_bar.json": () => import("./vue-ui-3d-bar-HXoQbs8d.js").then((e) => e.a).then((e) => e.default), "./themes/vue_ui_age_pyramid.json": () => import("./vue-ui-age-pyramid-CGsJUmDL.js").then((e) => e.a).then((e) => e.default), "./themes/vue_ui_bullet.json": () => import("./vue-ui-bullet-B5H4sazy.js").then((e) => e.a).then((e) => e.default), "./themes/vue_ui_candlestick.json": () => import("./vue-ui-candlestick-COYxFrX8.js").then((e) => e.a).then((e) => e.default), "./themes/vue_ui_chestnut.json": () => import("./vue-ui-chestnut-CPleio5s.js").then((e) => e.a).then((e) => e.default), "./themes/vue_ui_chord.json": () => import("./vue-ui-chord-BL2kiRYa.js").then((e) => e.a).then((e) => e.default), "./themes/vue_ui_circle_pack.json": () => import("./vue-ui-circle-pack-Ctax0o8l.js").then((e) => e.a).then((e) => e.default), "./themes/vue_ui_dag.json": () => import("./vue-ui-dag-BZeJu8RB.js").then((e) => e.a).then((e) => e.default), "./themes/vue_ui_donut.json": () => import("./vue-ui-donut-CN7x4Wrm.js").then((e) => e.v).then((e) => e.default), "./themes/vue_ui_donut_evolution.json": () => import("./vue-ui-donut-evolution-D4zNv3y3.js").then((e) => e.a).then((e) => e.default), "./themes/vue_ui_dumbbell.json": () => import("./vue-ui-dumbbell-CWi8sl8t.js").then((e) => e.a).then((e) => e.default), "./themes/vue_ui_flow.json": () => import("./vue-ui-flow-BydA9ef6.js").then((e) => e.a).then((e) => e.default), "./themes/vue_ui_funnel.json": () => import("./vue-ui-funnel-C83WaW6R.js").then((e) => e.a).then((e) => e.default), "./themes/vue_ui_galaxy.json": () => import("./vue-ui-galaxy-BnY90Ga4.js").then((e) => e.a).then((e) => e.default), "./themes/vue_ui_gauge.json": () => import("./vue-ui-gauge-HqwbKAiY.js").then((e) => e.a).then((e) => e.default), "./themes/vue_ui_geo.json": () => import("./vue-ui-geo-wW6nP6hV.js").then((e) => e.a).then((e) => e.default), "./themes/vue_ui_heatmap.json": () => import("./vue-ui-heatmap-Ctb6By74.js").then((e) => e.a).then((e) => e.default), "./themes/vue_ui_history_plot.json": () => import("./vue-ui-history-plot-ptSYfBrS.js").then((e) => e.a).then((e) => e.default), "./themes/vue_ui_horizontal_bar.json": () => import("./vue-ui-horizontal-bar-Oj8JxE1o.js").then((e) => e.a).then((e) => e.default), "./themes/vue_ui_molecule.json": () => import("./vue-ui-molecule-B3f4D6xs.js").then((e) => e.a).then((e) => e.default), "./themes/vue_ui_mood_radar.json": () => import("./vue-ui-mood-radar-BymSOzbZ.js").then((e) => e.a).then((e) => e.default), "./themes/vue_ui_nested_donuts.json": () => import("./vue-ui-nested-donuts-Bm75G0c4.js").then((e) => e.a).then((e) => e.default), "./themes/vue_ui_onion.json": () => import("./vue-ui-onion-BPPHtjJs.js").then((e) => e.a).then((e) => e.default), "./themes/vue_ui_parallel_coordinate_plot.json": () => import("./vue-ui-parallel-coordinate-plot-CesySg69.js").then((e) => e.a).then((e) => e.default), "./themes/vue_ui_quadrant.json": () => import("./vue-ui-quadrant-Dxhvwzha.js").then((e) => e.a).then((e) => e.default), "./themes/vue_ui_quick_chart.json": () => import("./vue-ui-quick-chart-CmfR2FF6.js").then((e) => e.a).then((e) => e.default), "./themes/vue_ui_radar.json": () => import("./vue-ui-radar-9TUuj49-.js").then((e) => e.a).then((e) => e.default), "./themes/vue_ui_relation_circle.json": () => import("./vue-ui-relation-circle-CSw8wygj.js").then((e) => e.a).then((e) => e.default), "./themes/vue_ui_ridgeline.json": () => import("./vue-ui-ridgeline-pwJ8hRsj.js").then((e) => e.a).then((e) => e.default), "./themes/vue_ui_rings.json": () => import("./vue-ui-rings-BQK3rKYv.js").then((e) => e.a).then((e) => e.default), "./themes/vue_ui_scatter.json": () => import("./vue-ui-scatter-DqGnrGmi.js").then((e) => e.a).then((e) => e.default), "./themes/vue_ui_spark_trend.json": () => import("./vue-ui-spark-trend-BMgbFhyC.js").then((e) => e.a).then((e) => e.default), "./themes/vue_ui_sparkbar.json": () => import("./vue-ui-sparkbar-BR9c9pzQ.js").then((e) => e.v).then((e) => e.default), "./themes/vue_ui_sparkgauge.json": () => import("./vue-ui-sparkgauge-QR8NMM76.js").then((e) => e.v).then((e) => e.default), "./themes/vue_ui_sparkhistogram.json": () => import("./vue-ui-sparkhistogram-BZPWjy4g.js").then((e) => e.a).then((e) => e.default), "./themes/vue_ui_sparkline.json": () => import("./vue-ui-sparkline-B7DUXyD7.js").then((e) => e.a).then((e) => e.default), "./themes/vue_ui_sparkstackbar.json": () => import("./vue-ui-sparkstackbar-CBURF9DG.js").then((e) => e.a).then((e) => e.default), "./themes/vue_ui_stackbar.json": () => import("./vue-ui-stackbar-8wfpQv75.js").then((e) => e.a).then((e) => e.default), "./themes/vue_ui_stackline.json": () => import("./vue-ui-stackline-KEkKIgeE.js").then((e) => e.a).then((e) => e.default), "./themes/vue_ui_strip_plot.json": () => import("./vue-ui-strip-plot-tBq-1HEl.js").then((e) => e.a).then((e) => e.default), "./themes/vue_ui_table_heatmap.json": () => import("./vue-ui-table-heatmap-CUOXC4JX.js").then((e) => e.a).then((e) => e.default), "./themes/vue_ui_table_sparkline.json": () => import("./vue-ui-table-sparkline-B-fJpPuE.js").then((e) => e.a).then((e) => e.default), "./themes/vue_ui_thermometer.json": () => import("./vue-ui-thermometer-BjWvhObo.js").then((e) => e.a).then((e) => e.default), "./themes/vue_ui_tiremarks.json": () => import("./vue-ui-tiremarks-DHTm-0Rk.js").then((e) => e.a).then((e) => e.default), "./themes/vue_ui_treemap.json": () => import("./vue-ui-treemap-BUskEYhL.js").then((e) => e.a).then((e) => e.default), "./themes/vue_ui_vertical_bar.json": () => import("./vue_ui_vertical_bar-CELc39b8.js").then((e) => e.default), "./themes/vue_ui_waffle.json": () => import("./vue-ui-waffle-DB2x0hkH.js").then((e) => e.a).then((e) => e.default), "./themes/vue_ui_wheel.json": () => import("./vue-ui-wheel-CIF3OMNS.js").then((e) => e.a).then((e) => e.default), "./themes/vue_ui_word_cloud.json": () => import("./vue-ui-word-cloud-DA2S9vUS.js").then((e) => e.a).then((e) => e.default), "./themes/vue_ui_xy.json": () => import("./vue-ui-xy-GG6jRpRS.js").then((e) => e.v).then((e) => e.default), "./themes/vue_ui_xy_canvas.json": () => import("./vue-ui-xy-canvas-s7QCO2Kv.js").then((e) => e.a).then((e) => e.default) }), g = Object.fromEntries(
Object.entries(j).map(([e, a]) => {
const o = e.match(/\/themes\/(.+)\.json$/);
return [o ? o[1] : e, a];
})
), f = /* @__PURE__ */ new Map();
let k = async (e) => {
const a = g[e];
if (!a) {
const o = new Error("ENOENT");
throw o.code = "ENOENT", o;
}
return await a();
};
async function w(e) {
if (!e) return null;
if (f.has(e)) return f.get(e);
try {
const a = await k(e);
return f.set(e, a), a;
} catch (a) {
return console.warn(`[getThemeConfig] Missing theme file: ${e}.json`, a), null;
}
}
function v(e, a = [], o = !0) {
const n = [];
if (e && typeof e == "object") {
if (Array.isArray(e) && o)
return [];
for (const r of Object.keys(e)) {
const u = (
/** @type {any} */
e[r]
);
if (Array.isArray(u) && o)
continue;
const i = a.concat(r);
u && typeof u == "object" ? n.push(...v(u, i, o)) : n.push(i);
}
}
return n;
}
function _(e, a) {
return a.reduce((o, n) => o?.[n], e);
}
function p(e, a, o) {
let n = U(e) ? e.value : e;
for (let r = 0; r < a.length - 1; r += 1) {
const u = a[r];
(!Object.prototype.hasOwnProperty.call(n, u) || typeof n[u] != "object") && (n[u] = {}), n = n[u];
}
n[a[a.length - 1]] = o;
}
function d(e, a, o, n) {
const r = a.split(n);
let u = e;
for (let i = 0; i < r.length - 1; i += 1) {
const s = r[i];
u[s] || (u[s] = {}), u = u[s];
}
u[r[r.length - 1]] = o;
}
function S(e, a) {
const { delimiter: o = ".", skipArrays: n = !0 } = a || {}, r = {};
function u() {
Object.keys(r).forEach((t) => delete r[t]);
const s = v(e.value, [], n);
for (const t of s) {
const m = t.join(o);
r[m] = l({
get: () => _(e.value, t),
set: (h) => p(e.value, t, h)
});
}
}
x(u), u();
const i = {
get(s, t) {
return typeof t == "string" || t.startsWith("__v_") ? t in s ? Reflect.get(s, t) : (d(e.value, t, void 0, o), r[t] = l({
get: () => _(e.value, t),
set: (m) => p(e.value, t, m)
}), t.startsWith("__v_") || console.warn(`Vue Data UI - useObjectBindings: no binding found for key "${t}". Please verify you are binding to a property path which exists on the object.`), "") : !0;
},
set(s, t, m) {
return typeof t == "string" || t.startsWith("__v_") ? t in s ? Reflect.set(s, t, m) : (d(e.value, t, m, o), r[t] = l({
get: () => _(e.value, t),
set: (h) => p(e.value, t, h)
}), t.startsWith("__v_") || console.warn(`Vue Data UI - useObjectBindings: cannot set unknown binding "${t}".`), !0) : !0;
}
};
return V(new Proxy(r, i));
}
export {
E as Arrow,
ra as VueDataUi,
W as VueUi3dBar,
H as VueUiAccordion,
G as VueUiAgePyramid,
I as VueUiAnnotator,
Nt as VueUiBullet,
$ as VueUiCandlestick,
Dt as VueUiCarouselTable,
F as VueUiChestnut,
ea as VueUiChord,
Kt as VueUiCirclePack,
q as VueUiCursor,
aa as VueUiDag,
Q as VueUiDashboard,
J as VueUiDigits,
Z as VueUiDonut,
te as VueUiDonutEvolution,
oe as VueUiDumbbell,
ue as VueUiFlow,
Lt as VueUiFunnel,
se as VueUiGalaxy,
me as VueUiGauge,
na as VueUiGeo,
At as VueUiGizmo,
le as VueUiHeatmap,
zt as VueUiHistoryPlot,
jt as VueUiHorizontalBar,
_e as VueUiIcon,
de as VueUiKpi,
ce as VueUiMiniLoader,
Ve as VueUiMolecule,
je as VueUiMoodRadar,
ke as VueUiNestedDonuts,
ye as VueUiOnion,
we as VueUiParallelCoordinatePlot,
Rt as VueUiPattern,
Pe as VueUiQuadrant,
Oe as VueUiQuickChart,
Ee as VueUiRadar,
We as VueUiRating,
He as VueUiRelationCircle,
Yt as VueUiRidgeline,
Ge as VueUiRings,
Ie as VueUiScatter,
$e as VueUiSkeleton,
Fe as VueUiSmiley,
qe as VueUiSparkHistogram,
Qe as VueUiSparkStackbar,
Je as VueUiSparkTrend,
Ze as VueUiSparkbar,
tt as VueUiSparkgauge,
ot as VueUiSparkline,
Bt as VueUiStackbar,
Mt as VueUiStackline,
ut as VueUiStripPlot,
st as VueUiTable,
mt as VueUiTableHeatmap,
lt as VueUiTableSparkline,
_t as VueUiThermometer,
dt as VueUiTimer,
ct as VueUiTiremarks,
Vt as VueUiTreemap,
gt as VueUiVerticalBar,
bt as VueUiWaffle,
Ct as VueUiWheel,
St as VueUiWordCloud,
Xt as VueUiWorld,
O as VueUiXy,
Tt as VueUiXyCanvas,
ia as abbreviate,
ma as createSmoothPath,
ha as createStraightPath,
la as createTSpans,
fa as createWordCloudDatasetFromPlainText,
xa as darkenColor,
_a as formatSmallValue,
pa as getCumulativeAverage,
da as getCumulativeMedian,
va as getPalette,
w as getThemeConfig,
C as getVueDataUiConfig,
Va as lightenColor,
Ua as mergeConfigs,
ja as shiftColorHue,
S as useObjectBindings
};