vue-data-ui 3.4.7 → 3.4.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{PackageVersion-QNVkHOgG.js → PackageVersion-D-auaEEJ.js} +1 -1
- package/dist/{UserOptions-CnzumGJj.js → UserOptions-CGnQt6Fd.js} +91 -91
- package/dist/components/vue-ui-3d-bar.js +1 -1
- package/dist/components/vue-ui-age-pyramid.js +1 -1
- package/dist/components/vue-ui-bullet.js +1 -1
- package/dist/components/vue-ui-candlestick.js +1 -1
- package/dist/components/vue-ui-carousel-table.js +1 -1
- package/dist/components/vue-ui-chestnut.js +1 -1
- package/dist/components/vue-ui-chord.js +1 -1
- package/dist/components/vue-ui-circle-pack.js +1 -1
- package/dist/components/vue-ui-dashboard.js +1 -1
- package/dist/components/vue-ui-donut-evolution.js +1 -1
- package/dist/components/vue-ui-donut.js +1 -1
- package/dist/components/vue-ui-dumbbell.js +1 -1
- package/dist/components/vue-ui-flow.js +1 -1
- package/dist/components/vue-ui-funnel.js +1 -1
- package/dist/components/vue-ui-galaxy.js +1 -1
- package/dist/components/vue-ui-gauge.js +1 -1
- package/dist/components/vue-ui-gizmo.js +1 -1
- package/dist/components/vue-ui-heatmap.js +1 -1
- package/dist/components/vue-ui-history-plot.js +1 -1
- package/dist/components/vue-ui-horizontal-bar.js +1 -1
- package/dist/components/vue-ui-molecule.js +1 -1
- package/dist/components/vue-ui-mood-radar.js +1 -1
- package/dist/components/vue-ui-nested-donuts.js +1 -1
- package/dist/components/vue-ui-onion.js +1 -1
- package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
- package/dist/components/vue-ui-quadrant.js +1 -1
- package/dist/components/vue-ui-quick-chart.js +1 -1
- package/dist/components/vue-ui-radar.js +1 -1
- package/dist/components/vue-ui-relation-circle.js +1 -1
- package/dist/components/vue-ui-ridgeline.js +1 -1
- package/dist/components/vue-ui-rings.js +1 -1
- package/dist/components/vue-ui-scatter.js +1 -1
- package/dist/components/vue-ui-skeleton.js +1 -1
- package/dist/components/vue-ui-spark-trend.js +1 -1
- package/dist/components/vue-ui-sparkbar.js +1 -1
- package/dist/components/vue-ui-sparkgauge.js +1 -1
- package/dist/components/vue-ui-sparkhistogram.js +1 -1
- package/dist/components/vue-ui-sparkline.js +1 -1
- package/dist/components/vue-ui-sparkstackbar.js +1 -1
- package/dist/components/vue-ui-stackbar.js +1 -1
- package/dist/components/vue-ui-strip-plot.js +1 -1
- package/dist/components/vue-ui-table-heatmap.js +1 -1
- package/dist/components/vue-ui-table-sparkline.js +1 -1
- package/dist/components/vue-ui-table.js +1 -1
- package/dist/components/vue-ui-thermometer.js +1 -1
- package/dist/components/vue-ui-timer.js +1 -1
- package/dist/components/vue-ui-tiremarks.js +1 -1
- package/dist/components/vue-ui-treemap.js +1 -1
- package/dist/components/vue-ui-vertical-bar.js +1 -1
- package/dist/components/vue-ui-waffle.js +1 -1
- package/dist/components/vue-ui-wheel.js +1 -1
- package/dist/components/vue-ui-word-cloud.js +1 -1
- package/dist/components/vue-ui-world.js +1 -1
- package/dist/components/vue-ui-xy-canvas.js +1 -1
- package/dist/components/vue-ui-xy.js +1 -1
- package/dist/style.css +1 -1
- package/dist/{vue-data-ui-BFwmY6si.js → vue-data-ui-CzqHcPqG.js} +55 -55
- package/dist/vue-data-ui.js +55 -55
- package/dist/{vue-ui-3d-bar-D1GoJWeg.js → vue-ui-3d-bar-CwXiD8zD.js} +49 -42
- package/dist/{vue-ui-age-pyramid-BDGFSsA5.js → vue-ui-age-pyramid-DlEPlWmV.js} +12 -5
- package/dist/{vue-ui-bullet-C3GtE3bF.js → vue-ui-bullet-DtzpeIu4.js} +59 -52
- package/dist/{vue-ui-candlestick-BlzmB2vM.js → vue-ui-candlestick-DzoiyaeB.js} +56 -49
- package/dist/{vue-ui-carousel-table-TKa7KYZ0.js → vue-ui-carousel-table-BqRERrjs.js} +79 -72
- package/dist/{vue-ui-chestnut-DNxARRsx.js → vue-ui-chestnut-CzBGckif.js} +77 -70
- package/dist/{vue-ui-chord-BM7tZig3.js → vue-ui-chord-B4waG93A.js} +71 -64
- package/dist/{vue-ui-circle-pack-BZU75WUb.js → vue-ui-circle-pack-DiTw_p5r.js} +58 -51
- package/dist/{vue-ui-dashboard-pNXFzQu4.js → vue-ui-dashboard-Bt-MUKqy.js} +56 -56
- package/dist/{vue-ui-donut-CRvfqCUO.js → vue-ui-donut-Bc492JeS.js} +95 -88
- package/dist/{vue-ui-donut-evolution-CCdIWlyZ.js → vue-ui-donut-evolution-D6TaZK2x.js} +80 -73
- package/dist/{vue-ui-dumbbell-CLmwZyrf.js → vue-ui-dumbbell-BlZr68Sq.js} +12 -5
- package/dist/{vue-ui-flow-BY8XQXKF.js → vue-ui-flow-ByEP18dA.js} +205 -198
- package/dist/{vue-ui-funnel-BmxhWoVW.js → vue-ui-funnel-BU7d_U6T.js} +98 -91
- package/dist/{vue-ui-galaxy-BgtKffX5.js → vue-ui-galaxy-CpVrxaTr.js} +140 -133
- package/dist/{vue-ui-gauge-DLpK4-Cd.js → vue-ui-gauge-B9Z4EXoj.js} +108 -101
- package/dist/{vue-ui-gizmo-CCNboEnL.js → vue-ui-gizmo-T1paJEJ3.js} +1 -1
- package/dist/{vue-ui-heatmap-BSDmuvq8.js → vue-ui-heatmap-Uw83eEMz.js} +97 -90
- package/dist/{vue-ui-history-plot-s8wYm7fn.js → vue-ui-history-plot-C93VwVCY.js} +41 -34
- package/dist/{vue-ui-molecule-BYWE2ONy.js → vue-ui-molecule-CFMWwXFN.js} +94 -87
- package/dist/{vue-ui-mood-radar-BOvaA1Jq.js → vue-ui-mood-radar-FkVaaOVG.js} +71 -64
- package/dist/{vue-ui-nested-donuts-BUGkuN56.js → vue-ui-nested-donuts-Cyi98NXq.js} +93 -86
- package/dist/{vue-ui-onion-CPshjlgf.js → vue-ui-onion-BCENNhsY.js} +82 -75
- package/dist/{vue-ui-parallel-coordinate-plot-orQotxDr.js → vue-ui-parallel-coordinate-plot-Dca9wkD0.js} +116 -109
- package/dist/{vue-ui-quadrant-CM3iH31f.js → vue-ui-quadrant-CEtFEZT3.js} +46 -39
- package/dist/{vue-ui-quick-chart-BhO2YQn0.js → vue-ui-quick-chart-bqcp6BIl.js} +171 -164
- package/dist/{vue-ui-radar-CNZVFG-v.js → vue-ui-radar-lgRCmyNP.js} +36 -29
- package/dist/{vue-ui-relation-circle-BX48Cgx3.js → vue-ui-relation-circle-cRRrbaIT.js} +100 -93
- package/dist/{vue-ui-ridgeline-MQAF9nvq.js → vue-ui-ridgeline-CaeFJq9a.js} +23 -16
- package/dist/{vue-ui-rings-BPhLSCUX.js → vue-ui-rings-DbsYfGjx.js} +55 -48
- package/dist/{vue-ui-scatter-C3dD6T6q.js → vue-ui-scatter-DcMnoNrY.js} +189 -182
- package/dist/{vue-ui-skeleton-Be8xm0gy.js → vue-ui-skeleton-b5fdgyHv.js} +1 -1
- package/dist/{vue-ui-spark-trend-suNsujGP.js → vue-ui-spark-trend-DrQ26BzL.js} +1 -1
- package/dist/{vue-ui-sparkbar-BjD2kUth.js → vue-ui-sparkbar-BlvXLcfO.js} +1 -1
- package/dist/{vue-ui-sparkgauge-C816ocz6.js → vue-ui-sparkgauge-CQmNePxu.js} +1 -1
- package/dist/{vue-ui-sparkhistogram-CAgfueUq.js → vue-ui-sparkhistogram-CJatqy8x.js} +1 -1
- package/dist/{vue-ui-sparkline-BmVwG9vw.js → vue-ui-sparkline-5m7hFiMq.js} +1 -1
- package/dist/{vue-ui-sparkstackbar-DoFTW_u_.js → vue-ui-sparkstackbar-Z5g6L2Hj.js} +1 -1
- package/dist/{vue-ui-stackbar-C1qHHSuI.js → vue-ui-stackbar-WrexTg8_.js} +53 -46
- package/dist/{vue-ui-strip-plot-Ccz9BiSl.js → vue-ui-strip-plot-DqX7yya9.js} +13 -6
- package/dist/{vue-ui-table-IKsrsEUh.js → vue-ui-table-BhrP9BCp.js} +2 -2
- package/dist/{vue-ui-table-heatmap-B4rjR34n.js → vue-ui-table-heatmap-BqCEBoUf.js} +1 -1
- package/dist/{vue-ui-table-sparkline-B71QVMkq.js → vue-ui-table-sparkline-BECa8n5_.js} +1 -1
- package/dist/{vue-ui-thermometer-fY5WxAbX.js → vue-ui-thermometer-BxBGrsSR.js} +83 -76
- package/dist/{vue-ui-timer-BBdNJ0fK.js → vue-ui-timer-BbHY5Ed5.js} +1 -1
- package/dist/{vue-ui-tiremarks-Co0t61HH.js → vue-ui-tiremarks-DzL3Sc1f.js} +43 -36
- package/dist/{vue-ui-treemap-ujTn_36A.js → vue-ui-treemap-DoHoS5NK.js} +114 -107
- package/dist/{vue-ui-vertical-bar-BNp-Vl0q.js → vue-ui-vertical-bar-D0N5btU-.js} +89 -82
- package/dist/{vue-ui-waffle-CRPYb9mZ.js → vue-ui-waffle-CTt7dxCY.js} +41 -34
- package/dist/{vue-ui-wheel-BvycoQ3Z.js → vue-ui-wheel--TIPvQ9I.js} +132 -125
- package/dist/{vue-ui-word-cloud-Cjs46-dC.js → vue-ui-word-cloud-D5pZq4Jq.js} +116 -109
- package/dist/{vue-ui-world-BTLAdJeD.js → vue-ui-world-BERHgePa.js} +71 -64
- package/dist/{vue-ui-xy-CBRHUbAn.js → vue-ui-xy-BI5stV8f.js} +163 -156
- package/dist/{vue-ui-xy-canvas-BGl_2pHw.js → vue-ui-xy-canvas-DXnLFwW3.js} +1 -1
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { useCssVars as bt, defineAsyncComponent as
|
|
1
|
+
import { useCssVars as bt, defineAsyncComponent as p, computed as h, onMounted as Ct, ref as r, toRefs as yt, watch as U, nextTick as H, createElementBlock as C, openBlock as v, unref as a, normalizeStyle as M, normalizeClass as Oe, createBlock as w, createCommentVNode as b, createVNode as D, createSlots as Se, withCtx as u, renderSlot as c, normalizeProps as T, guardReactiveProps as $, createElementVNode as P, Fragment as kt, renderList as At, resolveDynamicComponent as wt, mergeProps as Tt, createTextVNode as De, toDisplayString as Pe } from "vue";
|
|
2
2
|
import { o as $t, f as _t, c as Ie, t as Ot, b as St, p as Fe, e as Dt, a7 as Pt, X as It, S as Ft, k as Nt, h as Ne, P as Lt, Q as Bt, G as xt, H as Et } from "./lib-C_mNZmhD.js";
|
|
3
3
|
import { u as Rt, a as Le } from "./useNestedProp-BjZe1Y85.js";
|
|
4
4
|
import { u as Ut, B as Ht } from "./BaseScanner-BgWxam9d.js";
|
|
@@ -48,13 +48,13 @@ const Zt = ["id"], Qt = {
|
|
|
48
48
|
emits: ["selectNode"],
|
|
49
49
|
setup(Be, { expose: xe, emit: Ee }) {
|
|
50
50
|
bt((t) => ({
|
|
51
|
-
|
|
51
|
+
fddb4600: t.slicerColor
|
|
52
52
|
}));
|
|
53
|
-
const Re =
|
|
53
|
+
const Re = p(() => import("./Title-l36lOBMx.js")), Ue = p(() => import("./Tooltip-oWCO1HKy.js")), te = p(() => import("./BaseIcon-BmMbm4d0.js")), He = p(() => import("./vue-ui-accordion-CZ0thhxa.js")), Me = p(() => import("./DataTable-BT7VF2ua.js")), Ge = p(() => import("./PenAndPaper-DSvu9dwa.js")), Ve = p(() => import("./UserOptions-CGnQt6Fd.js")), ze = p(() => import("./PackageVersion-D-auaEEJ.js")), We = p(() => import("./RecursiveLinks-00zGWPf9.js")), Xe = p(() => import("./RecursiveLabels-Bgcv0pzu.js")), je = p(() => import("./RecursiveCircles-BcLb1aRS.js")), Ye = p(() => import("./BaseDraggableDialog-ymf2sfB8.js")), { vue_ui_molecule: Ze } = Rt(), k = Be, Qe = Ee, oe = h(() => !!k.dataset && k.dataset.length);
|
|
54
54
|
Ct(() => {
|
|
55
55
|
le();
|
|
56
56
|
});
|
|
57
|
-
const qe =
|
|
57
|
+
const qe = h(() => e.value.debug);
|
|
58
58
|
function le() {
|
|
59
59
|
$t(k.dataset) && _t({
|
|
60
60
|
componentName: "VueUiMolecule",
|
|
@@ -141,11 +141,11 @@ const Zt = ["id"], Qt = {
|
|
|
141
141
|
U([() => W.value, () => X.value], async ([t]) => {
|
|
142
142
|
t || (await H(), f.value = fe(), await H(), Je(), await H(), ct({ x: 0, y: 0, width: 400, height: 400 }), J(!1));
|
|
143
143
|
}, { flush: "post", deep: !1 });
|
|
144
|
-
const { isPrinting: ce, isImaging: ve, generatePdf: de, generateImage:
|
|
144
|
+
const { isPrinting: ce, isImaging: ve, generatePdf: de, generateImage: pe } = Mt({
|
|
145
145
|
elementId: `cluster_${G.value}`,
|
|
146
146
|
fileName: e.value.style.chart.title.text || "vue-ui-molecule",
|
|
147
147
|
options: e.value.userOptions.print
|
|
148
|
-
}), Ke =
|
|
148
|
+
}), Ke = h(() => e.value.userOptions.show && !e.value.style.chart.title.text), et = h(() => Dt(e.value.customPalette)), d = r({
|
|
149
149
|
showTable: e.value.table.show,
|
|
150
150
|
showDataLabels: !0,
|
|
151
151
|
showTooltip: e.value.style.chart.tooltip.show
|
|
@@ -157,11 +157,11 @@ const Zt = ["id"], Qt = {
|
|
|
157
157
|
showTooltip: e.value.style.chart.tooltip.show
|
|
158
158
|
};
|
|
159
159
|
}, { immediate: !0 });
|
|
160
|
-
function
|
|
161
|
-
return Array.isArray(t) && t.length > 0 && t[0].nodes ?
|
|
160
|
+
function he(t, l = 0) {
|
|
161
|
+
return Array.isArray(t) && t.length > 0 && t[0].nodes ? he(t[0].nodes, l + 1) : l;
|
|
162
162
|
}
|
|
163
163
|
function fe() {
|
|
164
|
-
const t =
|
|
164
|
+
const t = he(X.value);
|
|
165
165
|
let l = 100, o = l;
|
|
166
166
|
for (let n = 0; n < t; n += 1)
|
|
167
167
|
l /= 1, o += l;
|
|
@@ -171,26 +171,26 @@ const Zt = ["id"], Qt = {
|
|
|
171
171
|
};
|
|
172
172
|
}
|
|
173
173
|
const f = r(fe());
|
|
174
|
-
function
|
|
174
|
+
function ge(t, l = { x: -f.value.width / 2.43, y: f.value.height / 2 }, o = f.value.width / 1.1, n = 24, s = 0, i = 0, g = "#BBBBBB", K = 0) {
|
|
175
175
|
if (!Array.isArray(t) || t.length === 0) return t;
|
|
176
|
-
const
|
|
176
|
+
const mt = Nt({
|
|
177
177
|
plot: l,
|
|
178
178
|
radius: o,
|
|
179
179
|
sides: t.length,
|
|
180
180
|
rotation: s
|
|
181
181
|
});
|
|
182
|
-
return t.forEach((
|
|
183
|
-
const $e =
|
|
184
|
-
let ee = Ne(
|
|
182
|
+
return t.forEach((m, Te) => {
|
|
183
|
+
const $e = mt.coordinates[Te], _e = m.color ? (() => {
|
|
184
|
+
let ee = Ne(m.color);
|
|
185
185
|
return ee.startsWith("#") ? ee : `#${ee}`;
|
|
186
186
|
})() : null;
|
|
187
187
|
let S;
|
|
188
|
-
_e ? S = _e : K === 0 ? S =
|
|
189
|
-
|
|
188
|
+
_e ? S = _e : K === 0 ? S = g : K === 1 ? (S = et.value[i] || Fe[i] || g, i += 1) : S = g, m.polygonPath = { coordinates: [$e] }, m.circleRadius = n, m.color = S, m.uid = Ie(), Array.isArray(m.nodes) && m.nodes.length && (m.nodes = ge(
|
|
189
|
+
m.nodes,
|
|
190
190
|
$e,
|
|
191
191
|
o / 2.9,
|
|
192
192
|
n / 2.2,
|
|
193
|
-
s + Math.PI * Te /
|
|
193
|
+
s + Math.PI * Te / m.nodes.length,
|
|
194
194
|
i,
|
|
195
195
|
S,
|
|
196
196
|
K + 1
|
|
@@ -202,8 +202,8 @@ const Zt = ["id"], Qt = {
|
|
|
202
202
|
function o(s) {
|
|
203
203
|
s.forEach((i) => {
|
|
204
204
|
if (!i.color) return;
|
|
205
|
-
let
|
|
206
|
-
/^#?[0-9A-F]{6}$/i.test(
|
|
205
|
+
let g = i.color;
|
|
206
|
+
/^#?[0-9A-F]{6}$/i.test(g) || (g = Ne(g)), g.startsWith("#") || (g = `#${g}`), l.add(g), Array.isArray(i.nodes) && i.nodes.length && o(i.nodes);
|
|
207
207
|
});
|
|
208
208
|
}
|
|
209
209
|
o(t);
|
|
@@ -213,9 +213,9 @@ const Zt = ["id"], Qt = {
|
|
|
213
213
|
n[s] = `gradient_${i}`;
|
|
214
214
|
}), n;
|
|
215
215
|
}
|
|
216
|
-
const ot =
|
|
216
|
+
const ot = h(() => tt(y.value)), y = h(() => {
|
|
217
217
|
const t = Pt(X.value);
|
|
218
|
-
return
|
|
218
|
+
return ge(t);
|
|
219
219
|
}), Z = r(null);
|
|
220
220
|
function lt(t) {
|
|
221
221
|
Z.value = {
|
|
@@ -243,9 +243,9 @@ const Zt = ["id"], Qt = {
|
|
|
243
243
|
o += `<div style="display:flex;align-items:center;gap:3px"><div style="color:${t.color}">⬤</div><div>${t.name}</div></div>`, t.details && (o += `<div style="width:100%;border-top:1px solid ${e.value.style.chart.tooltip.borderColor};margin-top: 2px">${t.details}</div>`), B.value = `<div style="font-family:inherit">${o}</div>`;
|
|
244
244
|
}
|
|
245
245
|
}
|
|
246
|
-
const E = r(null), F = r(null),
|
|
246
|
+
const E = r(null), F = r(null), me = r(null);
|
|
247
247
|
function at(t) {
|
|
248
|
-
|
|
248
|
+
me.value = E.value, E.value = t, t ? e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: t, seriesIndex: -1 }) : e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: me.value || E.value, seriesIndex: -1 }), t ? (V.value = !0, lt(t), F.value = t.uid) : (V.value = !1, B.value = "", F.value = null);
|
|
249
249
|
}
|
|
250
250
|
function st(t) {
|
|
251
251
|
const l = [];
|
|
@@ -262,7 +262,7 @@ const Zt = ["id"], Qt = {
|
|
|
262
262
|
}
|
|
263
263
|
return o(t), l;
|
|
264
264
|
}
|
|
265
|
-
const nt =
|
|
265
|
+
const nt = h(() => st(y.value)), _ = h(() => {
|
|
266
266
|
const t = [
|
|
267
267
|
e.value.table.translations.nodeName,
|
|
268
268
|
e.value.table.translations.details,
|
|
@@ -324,7 +324,7 @@ const Zt = ["id"], Qt = {
|
|
|
324
324
|
function q() {
|
|
325
325
|
N.value = !N.value;
|
|
326
326
|
}
|
|
327
|
-
const it =
|
|
327
|
+
const it = h(() => !N.value), { viewBox: R, resetZoom: J, isZoom: ut, setInitialViewBox: ct } = jt(x, {
|
|
328
328
|
x: 0,
|
|
329
329
|
y: 0,
|
|
330
330
|
width: Math.max(10, f.value.width),
|
|
@@ -345,7 +345,7 @@ const Zt = ["id"], Qt = {
|
|
|
345
345
|
aspectRatio: n
|
|
346
346
|
};
|
|
347
347
|
}
|
|
348
|
-
const L =
|
|
348
|
+
const L = h(() => {
|
|
349
349
|
const t = e.value.table.useDialog && !e.value.table.show, l = d.value.showTable;
|
|
350
350
|
return {
|
|
351
351
|
component: t ? Ye : He,
|
|
@@ -381,14 +381,14 @@ const Zt = ["id"], Qt = {
|
|
|
381
381
|
function Ae() {
|
|
382
382
|
d.value.showTable = !1, z.value && z.value.setTableIconState(!1);
|
|
383
383
|
}
|
|
384
|
-
const
|
|
384
|
+
const pt = h(() => e.value.style.chart.backgroundColor), ht = h(() => e.value.style.chart.title), { exportSvg: ft, getSvg: gt } = Gt({
|
|
385
385
|
svg: x,
|
|
386
|
-
title:
|
|
387
|
-
backgroundColor:
|
|
386
|
+
title: ht,
|
|
387
|
+
backgroundColor: pt
|
|
388
388
|
});
|
|
389
389
|
async function we({ isCb: t }) {
|
|
390
390
|
if (t) {
|
|
391
|
-
const { blob: l, url: o, text: n, dataUrl: s } = await
|
|
391
|
+
const { blob: l, url: o, text: n, dataUrl: s } = await gt();
|
|
392
392
|
e.value.userOptions.callbacks.svg({ blob: l, url: o, text: n, dataUrl: s });
|
|
393
393
|
} else
|
|
394
394
|
ft();
|
|
@@ -398,14 +398,14 @@ const Zt = ["id"], Qt = {
|
|
|
398
398
|
getImage: dt,
|
|
399
399
|
generatePdf: de,
|
|
400
400
|
generateCsv: Q,
|
|
401
|
-
generateImage:
|
|
401
|
+
generateImage: pe,
|
|
402
402
|
generateSvg: we,
|
|
403
403
|
toggleTable: Ce,
|
|
404
404
|
toggleLabels: ye,
|
|
405
405
|
toggleTooltip: ke,
|
|
406
406
|
toggleAnnotator: q,
|
|
407
407
|
toggleFullscreen: be
|
|
408
|
-
}), (t, l) => (
|
|
408
|
+
}), (t, l) => (v(), C("div", {
|
|
409
409
|
ref_key: "moleculeChart",
|
|
410
410
|
ref: A,
|
|
411
411
|
class: Oe(`vue-data-ui-component vue-ui-molecule ${O.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
|
|
@@ -416,7 +416,7 @@ const Zt = ["id"], Qt = {
|
|
|
416
416
|
}),
|
|
417
417
|
onMouseenter: l[3] || (l[3] = () => a(re)(!0))
|
|
418
418
|
}, [
|
|
419
|
-
e.value.userOptions.buttons.annotator ? (
|
|
419
|
+
e.value.userOptions.buttons.annotator ? (v(), w(a(Ge), {
|
|
420
420
|
key: 0,
|
|
421
421
|
svgRef: a(x),
|
|
422
422
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
@@ -424,9 +424,9 @@ const Zt = ["id"], Qt = {
|
|
|
424
424
|
active: N.value,
|
|
425
425
|
onClose: q
|
|
426
426
|
}, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : b("", !0),
|
|
427
|
-
Ke.value ? (
|
|
428
|
-
e.value.style.chart.title.text ? (
|
|
429
|
-
(
|
|
427
|
+
Ke.value ? (v(), C("div", Qt, null, 512)) : b("", !0),
|
|
428
|
+
e.value.style.chart.title.text ? (v(), C("div", qt, [
|
|
429
|
+
(v(), w(a(Re), {
|
|
430
430
|
key: `title_${se.value}`,
|
|
431
431
|
config: {
|
|
432
432
|
title: {
|
|
@@ -440,7 +440,7 @@ const Zt = ["id"], Qt = {
|
|
|
440
440
|
}
|
|
441
441
|
}, null, 8, ["config"]))
|
|
442
442
|
])) : b("", !0),
|
|
443
|
-
e.value.userOptions.show && oe.value && (a(ie) || a(j)) ? (
|
|
443
|
+
e.value.userOptions.show && oe.value && (a(ie) || a(j)) ? (v(), w(a(Ve), {
|
|
444
444
|
ref_key: "userOptionsRef",
|
|
445
445
|
ref: z,
|
|
446
446
|
key: `user_options_${ae.value}`,
|
|
@@ -469,7 +469,7 @@ const Zt = ["id"], Qt = {
|
|
|
469
469
|
onToggleFullscreen: be,
|
|
470
470
|
onGeneratePdf: a(de),
|
|
471
471
|
onGenerateCsv: Q,
|
|
472
|
-
onGenerateImage: a(
|
|
472
|
+
onGenerateImage: a(pe),
|
|
473
473
|
onGenerateSvg: we,
|
|
474
474
|
onToggleTable: Ce,
|
|
475
475
|
onToggleLabels: ye,
|
|
@@ -481,69 +481,76 @@ const Zt = ["id"], Qt = {
|
|
|
481
481
|
}, Se({ _: 2 }, [
|
|
482
482
|
t.$slots.menuIcon ? {
|
|
483
483
|
name: "menuIcon",
|
|
484
|
-
fn:
|
|
485
|
-
|
|
484
|
+
fn: u(({ isOpen: o, color: n }) => [
|
|
485
|
+
c(t.$slots, "menuIcon", T($({ isOpen: o, color: n })), void 0, !0)
|
|
486
486
|
]),
|
|
487
487
|
key: "0"
|
|
488
488
|
} : void 0,
|
|
489
489
|
t.$slots.optionTooltip ? {
|
|
490
490
|
name: "optionTooltip",
|
|
491
|
-
fn:
|
|
492
|
-
|
|
491
|
+
fn: u(() => [
|
|
492
|
+
c(t.$slots, "optionTooltip", {}, void 0, !0)
|
|
493
493
|
]),
|
|
494
494
|
key: "1"
|
|
495
495
|
} : void 0,
|
|
496
496
|
t.$slots.optionPdf ? {
|
|
497
497
|
name: "optionPdf",
|
|
498
|
-
fn:
|
|
499
|
-
|
|
498
|
+
fn: u(() => [
|
|
499
|
+
c(t.$slots, "optionPdf", {}, void 0, !0)
|
|
500
500
|
]),
|
|
501
501
|
key: "2"
|
|
502
502
|
} : void 0,
|
|
503
503
|
t.$slots.optionCsv ? {
|
|
504
504
|
name: "optionCsv",
|
|
505
|
-
fn:
|
|
506
|
-
|
|
505
|
+
fn: u(() => [
|
|
506
|
+
c(t.$slots, "optionCsv", {}, void 0, !0)
|
|
507
507
|
]),
|
|
508
508
|
key: "3"
|
|
509
509
|
} : void 0,
|
|
510
510
|
t.$slots.optionImg ? {
|
|
511
511
|
name: "optionImg",
|
|
512
|
-
fn:
|
|
513
|
-
|
|
512
|
+
fn: u(() => [
|
|
513
|
+
c(t.$slots, "optionImg", {}, void 0, !0)
|
|
514
514
|
]),
|
|
515
515
|
key: "4"
|
|
516
516
|
} : void 0,
|
|
517
|
+
t.$slots.optionSvg ? {
|
|
518
|
+
name: "optionSvg",
|
|
519
|
+
fn: u(() => [
|
|
520
|
+
c(t.$slots, "optionSvg", {}, void 0, !0)
|
|
521
|
+
]),
|
|
522
|
+
key: "5"
|
|
523
|
+
} : void 0,
|
|
517
524
|
t.$slots.optionTable ? {
|
|
518
525
|
name: "optionTable",
|
|
519
|
-
fn:
|
|
520
|
-
|
|
526
|
+
fn: u(() => [
|
|
527
|
+
c(t.$slots, "optionTable", {}, void 0, !0)
|
|
521
528
|
]),
|
|
522
|
-
key: "
|
|
529
|
+
key: "6"
|
|
523
530
|
} : void 0,
|
|
524
531
|
t.$slots.optionLabels ? {
|
|
525
532
|
name: "optionLabels",
|
|
526
|
-
fn:
|
|
527
|
-
|
|
533
|
+
fn: u(() => [
|
|
534
|
+
c(t.$slots, "optionLabels", {}, void 0, !0)
|
|
528
535
|
]),
|
|
529
|
-
key: "
|
|
536
|
+
key: "7"
|
|
530
537
|
} : void 0,
|
|
531
538
|
t.$slots.optionFullscreen ? {
|
|
532
539
|
name: "optionFullscreen",
|
|
533
|
-
fn:
|
|
534
|
-
|
|
540
|
+
fn: u(({ toggleFullscreen: o, isFullscreen: n }) => [
|
|
541
|
+
c(t.$slots, "optionFullscreen", T($({ toggleFullscreen: o, isFullscreen: n })), void 0, !0)
|
|
535
542
|
]),
|
|
536
|
-
key: "
|
|
543
|
+
key: "8"
|
|
537
544
|
} : void 0,
|
|
538
545
|
t.$slots.optionAnnotator ? {
|
|
539
546
|
name: "optionAnnotator",
|
|
540
|
-
fn:
|
|
541
|
-
|
|
547
|
+
fn: u(({ toggleAnnotator: o, isAnnotator: n }) => [
|
|
548
|
+
c(t.$slots, "optionAnnotator", T($({ toggleAnnotator: o, isAnnotator: n })), void 0, !0)
|
|
542
549
|
]),
|
|
543
|
-
key: "
|
|
550
|
+
key: "9"
|
|
544
551
|
} : void 0
|
|
545
552
|
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasXls", "hasImg", "hasSvg", "hasTable", "hasLabel", "hasFullscreen", "isTooltip", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "tableDialog", "onGeneratePdf", "onGenerateImage", "style"])) : b("", !0),
|
|
546
|
-
(
|
|
553
|
+
(v(), C("svg", {
|
|
547
554
|
ref_key: "svgRef",
|
|
548
555
|
ref: x,
|
|
549
556
|
key: `svg_${ue.value}`,
|
|
@@ -553,7 +560,7 @@ const Zt = ["id"], Qt = {
|
|
|
553
560
|
style: M(`overflow: hidden; background:transparent;color:${e.value.style.chart.color}`)
|
|
554
561
|
}, [
|
|
555
562
|
D(a(ze)),
|
|
556
|
-
t.$slots["chart-background"] ? (
|
|
563
|
+
t.$slots["chart-background"] ? (v(), C("foreignObject", {
|
|
557
564
|
key: 0,
|
|
558
565
|
x: 0,
|
|
559
566
|
y: 0,
|
|
@@ -563,10 +570,10 @@ const Zt = ["id"], Qt = {
|
|
|
563
570
|
pointerEvents: "none"
|
|
564
571
|
}
|
|
565
572
|
}, [
|
|
566
|
-
|
|
573
|
+
c(t.$slots, "chart-background", {}, void 0, !0)
|
|
567
574
|
], 8, Kt)) : b("", !0),
|
|
568
575
|
P("defs", null, [
|
|
569
|
-
(
|
|
576
|
+
(v(!0), C(kt, null, At(Object.keys(ot.value), (o) => (v(), C("radialGradient", {
|
|
570
577
|
id: `gradient_${o}`,
|
|
571
578
|
cx: "50%",
|
|
572
579
|
cy: "30%",
|
|
@@ -597,24 +604,24 @@ const Zt = ["id"], Qt = {
|
|
|
597
604
|
onClick: vt,
|
|
598
605
|
onHover: at
|
|
599
606
|
}, {
|
|
600
|
-
node:
|
|
601
|
-
|
|
607
|
+
node: u(({ node: o }) => [
|
|
608
|
+
c(t.$slots, "node", T($({ node: o })), void 0, !0)
|
|
602
609
|
]),
|
|
603
610
|
_: 3
|
|
604
611
|
}, 8, ["dataset", "hoveredUid", "stroke", "strokeHovered"]),
|
|
605
|
-
d.value.showDataLabels && !a(W) ? (
|
|
612
|
+
d.value.showDataLabels && !a(W) ? (v(), w(a(Xe), {
|
|
606
613
|
key: 1,
|
|
607
614
|
dataset: y.value,
|
|
608
615
|
color: e.value.style.chart.color,
|
|
609
616
|
hoveredUid: F.value
|
|
610
617
|
}, null, 8, ["dataset", "color", "hoveredUid"])) : b("", !0),
|
|
611
|
-
|
|
618
|
+
c(t.$slots, "svg", { svg: f.value }, void 0, !0)
|
|
612
619
|
], 14, Jt)),
|
|
613
|
-
t.$slots.watermark ? (
|
|
614
|
-
|
|
620
|
+
t.$slots.watermark ? (v(), C("div", lo, [
|
|
621
|
+
c(t.$slots, "watermark", T($({ isPrinting: a(ce) || a(ve) })), void 0, !0)
|
|
615
622
|
])) : b("", !0),
|
|
616
|
-
a(ut) ? (
|
|
617
|
-
|
|
623
|
+
a(ut) ? (v(), C("div", ao, [
|
|
624
|
+
c(t.$slots, "reset-action", { reset: a(J) }, () => [
|
|
618
625
|
P("button", {
|
|
619
626
|
"data-cy-reset": "",
|
|
620
627
|
tabindex: "0",
|
|
@@ -632,8 +639,8 @@ const Zt = ["id"], Qt = {
|
|
|
632
639
|
], 4)
|
|
633
640
|
], !0)
|
|
634
641
|
])) : b("", !0),
|
|
635
|
-
t.$slots.source ? (
|
|
636
|
-
|
|
642
|
+
t.$slots.source ? (v(), C("div", so, [
|
|
643
|
+
c(t.$slots, "source", {}, void 0, !0)
|
|
637
644
|
], 512)) : b("", !0),
|
|
638
645
|
D(a(Ue), {
|
|
639
646
|
show: d.value.showTooltip && V.value,
|
|
@@ -655,21 +662,21 @@ const Zt = ["id"], Qt = {
|
|
|
655
662
|
smoothForce: e.value.style.chart.tooltip.smoothForce,
|
|
656
663
|
smoothSnapThreshold: e.value.style.chart.tooltip.smoothSnapThreshold
|
|
657
664
|
}, {
|
|
658
|
-
"tooltip-before":
|
|
659
|
-
|
|
665
|
+
"tooltip-before": u(() => [
|
|
666
|
+
c(t.$slots, "tooltip-before", T($({ ...Z.value })), void 0, !0)
|
|
660
667
|
]),
|
|
661
|
-
"tooltip-after":
|
|
662
|
-
|
|
668
|
+
"tooltip-after": u(() => [
|
|
669
|
+
c(t.$slots, "tooltip-after", T($({ ...Z.value })), void 0, !0)
|
|
663
670
|
]),
|
|
664
671
|
_: 3
|
|
665
672
|
}, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "fontSize", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom", "smooth", "backdropFilter", "smoothForce", "smoothSnapThreshold"]),
|
|
666
|
-
oe.value && e.value.userOptions.buttons.table ? (
|
|
673
|
+
oe.value && e.value.userOptions.buttons.table ? (v(), w(wt(L.value.component), Tt({ key: 7 }, L.value.props, {
|
|
667
674
|
ref_key: "tableUnit",
|
|
668
675
|
ref: I,
|
|
669
676
|
onClose: Ae
|
|
670
677
|
}), Se({
|
|
671
|
-
content:
|
|
672
|
-
(
|
|
678
|
+
content: u(() => [
|
|
679
|
+
(v(), w(a(Me), {
|
|
673
680
|
key: `table_${ne.value}`,
|
|
674
681
|
colNames: _.value.colNames,
|
|
675
682
|
head: _.value.head,
|
|
@@ -679,13 +686,13 @@ const Zt = ["id"], Qt = {
|
|
|
679
686
|
withCloseButton: !e.value.table.useDialog,
|
|
680
687
|
onClose: Ae
|
|
681
688
|
}, {
|
|
682
|
-
th:
|
|
689
|
+
th: u(({ th: o }) => [
|
|
683
690
|
P("div", {
|
|
684
691
|
innerHTML: o,
|
|
685
692
|
style: { display: "flex", "align-items": "center" }
|
|
686
693
|
}, null, 8, no)
|
|
687
694
|
]),
|
|
688
|
-
td:
|
|
695
|
+
td: u(({ td: o }) => [
|
|
689
696
|
De(Pe(o.name || o), 1)
|
|
690
697
|
]),
|
|
691
698
|
_: 1
|
|
@@ -695,14 +702,14 @@ const Zt = ["id"], Qt = {
|
|
|
695
702
|
}, [
|
|
696
703
|
e.value.table.useDialog ? {
|
|
697
704
|
name: "title",
|
|
698
|
-
fn:
|
|
705
|
+
fn: u(() => [
|
|
699
706
|
De(Pe(L.value.title), 1)
|
|
700
707
|
]),
|
|
701
708
|
key: "0"
|
|
702
709
|
} : void 0,
|
|
703
710
|
e.value.table.useDialog ? {
|
|
704
711
|
name: "actions",
|
|
705
|
-
fn:
|
|
712
|
+
fn: u(() => [
|
|
706
713
|
P("button", {
|
|
707
714
|
tabindex: "0",
|
|
708
715
|
class: "vue-ui-user-options-button",
|
|
@@ -717,10 +724,10 @@ const Zt = ["id"], Qt = {
|
|
|
717
724
|
key: "1"
|
|
718
725
|
} : void 0
|
|
719
726
|
]), 1040)) : b("", !0),
|
|
720
|
-
a(W) ? (
|
|
727
|
+
a(W) ? (v(), w(Ht, { key: 8 })) : b("", !0)
|
|
721
728
|
], 46, Zt));
|
|
722
729
|
}
|
|
723
|
-
}, ko = /* @__PURE__ */ Yt(ro, [["__scopeId", "data-v-
|
|
730
|
+
}, ko = /* @__PURE__ */ Yt(ro, [["__scopeId", "data-v-0a207d5f"]]);
|
|
724
731
|
export {
|
|
725
732
|
ko as default
|
|
726
733
|
};
|