vue-data-ui 3.7.1 → 3.7.3
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-C82JCJOX.js → PackageVersion-BEYRLPkk.js} +1 -1
- package/dist/{Title-DfFUb9hd.js → Title-C-XBwSUb.js} +1 -1
- package/dist/components/vue-ui-3d-bar.js +1 -1
- package/dist/components/vue-ui-accordion.js +1 -1
- package/dist/components/vue-ui-age-pyramid.js +1 -1
- package/dist/components/vue-ui-annotator.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-cursor.js +1 -1
- package/dist/components/vue-ui-dashboard.js +1 -1
- package/dist/components/vue-ui-digits.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-kpi.js +1 -1
- package/dist/components/vue-ui-mini-loader.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-rating.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-smiley.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-stackline.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/types/vue-data-ui.d.ts +8 -2
- package/dist/{useNestedProp-CWo6bftQ.js → useNestedProp-BaGpMaAh.js} +7 -1
- package/dist/{vue-data-ui-d-OXgGG3.js → vue-data-ui-D1M9qwkt.js} +65 -65
- package/dist/vue-data-ui.js +66 -66
- package/dist/{vue-ui-3d-bar-BLbSbx2V.js → vue-ui-3d-bar-CoCbgOJO.js} +15 -11
- package/dist/{vue-ui-accordion-DSdZUn2C.js → vue-ui-accordion-D5cPubW1.js} +1 -1
- package/dist/{vue-ui-age-pyramid-DQ-xc-if.js → vue-ui-age-pyramid-DEUhypFN.js} +3 -3
- package/dist/{vue-ui-annotator-DRaH8hXn.js → vue-ui-annotator-DtD0jPWt.js} +2 -2
- package/dist/{vue-ui-bullet-BvMdxLkK.js → vue-ui-bullet-7qjgalGO.js} +3 -3
- package/dist/{vue-ui-candlestick-DIWeygxV.js → vue-ui-candlestick-Bnm1B432.js} +3 -3
- package/dist/{vue-ui-carousel-table-DM2HJFMH.js → vue-ui-carousel-table-BLUxWLuW.js} +2 -2
- package/dist/{vue-ui-chestnut-DNOG6dqY.js → vue-ui-chestnut-BP4oNfqg.js} +2 -2
- package/dist/{vue-ui-chord-D2wPt2JV.js → vue-ui-chord-BMAajT3t.js} +3 -3
- package/dist/vue-ui-circle-pack-gWCG8aBq.js +868 -0
- package/dist/{vue-ui-cursor-BMe8ZiV6.js → vue-ui-cursor-CC7T1GfH.js} +1 -1
- package/dist/{vue-ui-dashboard-BMby447A.js → vue-ui-dashboard-BMHV5DBC.js} +67 -66
- package/dist/{vue-ui-digits-D382I0-w.js → vue-ui-digits-rtZhtT7Q.js} +1 -1
- package/dist/{vue-ui-donut-evolution-BL7HtdsP.js → vue-ui-donut-evolution-4jLjTu8o.js} +3 -3
- package/dist/{vue-ui-donut-BqiNPW3q.js → vue-ui-donut-kXNdqByu.js} +3 -3
- package/dist/{vue-ui-dumbbell-BlTDnM8L.js → vue-ui-dumbbell-CHUrDJ5v.js} +3 -3
- package/dist/{vue-ui-flow-BxIv20FH.js → vue-ui-flow-BgrCtFbB.js} +3 -3
- package/dist/{vue-ui-funnel-Tnjg4srR.js → vue-ui-funnel-kh_nHQ_d.js} +3 -3
- package/dist/{vue-ui-galaxy-CYDVXdNj.js → vue-ui-galaxy-q61N1Ca1.js} +3 -3
- package/dist/{vue-ui-gauge-DAcpazK7.js → vue-ui-gauge--vrEx1Q7.js} +3 -3
- package/dist/{vue-ui-gizmo-Bg2TpPwm.js → vue-ui-gizmo-Dz9zqNx3.js} +2 -2
- package/dist/{vue-ui-heatmap-BPEE_cLi.js → vue-ui-heatmap-C7_RtGNx.js} +4 -4
- package/dist/{vue-ui-history-plot-BhfbLer8.js → vue-ui-history-plot-Bm2VFF17.js} +3 -3
- package/dist/vue-ui-horizontal-bar-00ME25d_.js +1429 -0
- package/dist/{vue-ui-kpi-CKMZDc3n.js → vue-ui-kpi-PyPAVDAf.js} +2 -2
- package/dist/{vue-ui-mini-loader-BN72OfS0.js → vue-ui-mini-loader-CRcsZUk3.js} +1 -1
- package/dist/{vue-ui-molecule-DnzXYuUi.js → vue-ui-molecule-YqIXct4B.js} +2 -2
- package/dist/{vue-ui-mood-radar-CXyQEfeM.js → vue-ui-mood-radar-DpFJ58Of.js} +3 -3
- package/dist/{vue-ui-nested-donuts-Dq8JoU5d.js → vue-ui-nested-donuts-QOkMLnTa.js} +3 -3
- package/dist/{vue-ui-onion-D0KUHi-Z.js → vue-ui-onion-BeR46Y3m.js} +3 -3
- package/dist/{vue-ui-parallel-coordinate-plot-DNc2L4Rg.js → vue-ui-parallel-coordinate-plot-CqqaOF3n.js} +3 -3
- package/dist/{vue-ui-quadrant-Cp8loNVN.js → vue-ui-quadrant-D7Gv09be.js} +3 -3
- package/dist/{vue-ui-quick-chart-kuTdgAKG.js → vue-ui-quick-chart-DCAB-JpR.js} +2 -2
- package/dist/{vue-ui-radar-x2Ry_IGa.js → vue-ui-radar-BVz8gkrT.js} +3 -3
- package/dist/{vue-ui-rating-DtzmtJwF.js → vue-ui-rating-DFSztiJk.js} +1 -1
- package/dist/{vue-ui-relation-circle-DbYE9UHq.js → vue-ui-relation-circle-BvDGkAhO.js} +3 -3
- package/dist/{vue-ui-ridgeline-yaMl8iIE.js → vue-ui-ridgeline-BER8WtYP.js} +3 -3
- package/dist/{vue-ui-rings-BowsO9I8.js → vue-ui-rings-BC4kVZO9.js} +3 -3
- package/dist/{vue-ui-scatter-C_nz0A4x.js → vue-ui-scatter-Cj_nwUQe.js} +3 -3
- package/dist/{vue-ui-skeleton-DdXq2gl1.js → vue-ui-skeleton-pbQFe1ZR.js} +2 -2
- package/dist/{vue-ui-smiley-OYyM-ukP.js → vue-ui-smiley-DXOpLaan.js} +1 -1
- package/dist/{vue-ui-spark-trend-BLticwHl.js → vue-ui-spark-trend-CCD59vRH.js} +2 -2
- package/dist/{vue-ui-sparkbar-DC2sDr9_.js → vue-ui-sparkbar-B3XicXOw.js} +19 -15
- package/dist/{vue-ui-sparkgauge-BENUfyuR.js → vue-ui-sparkgauge-BUIEKt3Z.js} +2 -2
- package/dist/{vue-ui-sparkhistogram-BY0jsNsc.js → vue-ui-sparkhistogram-DOi-0q9p.js} +2 -2
- package/dist/{vue-ui-sparkline-fS36LGCB.js → vue-ui-sparkline-CUzBxJZc.js} +2 -2
- package/dist/{vue-ui-sparkstackbar-C59ocU83.js → vue-ui-sparkstackbar-BQZVQ_JH.js} +2 -2
- package/dist/{vue-ui-stackbar-BtWWtzDp.js → vue-ui-stackbar-DJRAGeUd.js} +3 -3
- package/dist/{vue-ui-stackline-CsGEHOOr.js → vue-ui-stackline-D7SfgedR.js} +3 -3
- package/dist/{vue-ui-strip-plot-n_rEdwkM.js → vue-ui-strip-plot-Bt_bGY52.js} +3 -3
- package/dist/{vue-ui-table-Kv2YL5OU.js → vue-ui-table-AqUmxgT5.js} +3 -3
- package/dist/{vue-ui-table-heatmap-vQEFrjCX.js → vue-ui-table-heatmap-BbyoCxwN.js} +1 -1
- package/dist/{vue-ui-table-sparkline-B8CCAdco.js → vue-ui-table-sparkline-C4pm7LI9.js} +2 -2
- package/dist/{vue-ui-thermometer-C1Hr_LrY.js → vue-ui-thermometer-Xh1Bnwhw.js} +3 -3
- package/dist/{vue-ui-timer-CmnO99_j.js → vue-ui-timer-BtI2vXFo.js} +3 -3
- package/dist/{vue-ui-tiremarks-DbZbhw6Q.js → vue-ui-tiremarks-DtPAl8zg.js} +3 -3
- package/dist/{vue-ui-treemap-BGMpUu5v.js → vue-ui-treemap-BivBPd1f.js} +3 -3
- package/dist/{vue-ui-waffle-BVVrMghT.js → vue-ui-waffle-Diw2vY76.js} +3 -3
- package/dist/{vue-ui-wheel-B2pFBeKR.js → vue-ui-wheel-KdYtvamL.js} +3 -3
- package/dist/{vue-ui-word-cloud-BqKSDn2J.js → vue-ui-word-cloud-B5W6ae-y.js} +3 -3
- package/dist/{vue-ui-world-glj9mQAg.js → vue-ui-world-D5IEhVC2.js} +2 -2
- package/dist/{vue-ui-xy-BdXV4naK.js → vue-ui-xy-DI0siwIM.js} +4 -4
- package/dist/{vue-ui-xy-canvas-Cr13t9M5.js → vue-ui-xy-canvas-CGuAhUPl.js} +3 -3
- package/package.json +1 -1
- package/dist/vue-ui-circle-pack-D_GDv7OV.js +0 -832
- package/dist/vue-ui-vertical-bar-CWlGQoB3.js +0 -1271
|
@@ -1,832 +0,0 @@
|
|
|
1
|
-
import { useCssVars as Dt, computed as x, defineAsyncComponent as B, ref as m, toRefs as Ft, watch as se, shallowRef as qe, onMounted as Pt, onBeforeUnmount as It, watchEffect as Et, createElementBlock as C, openBlock as p, unref as i, normalizeStyle as re, normalizeClass as Xe, createBlock as V, createCommentVNode as $, renderSlot as b, withCtx as g, normalizeProps as A, guardReactiveProps as S, createSlots as Ye, createVNode as Ze, Fragment as ue, renderList as Mt, createElementVNode as z, mergeProps as Ce, toDisplayString as H, resolveDynamicComponent as Nt, createTextVNode as Je, nextTick as Ke } from "vue";
|
|
2
|
-
import { u as Bt, a as we } from "./useNestedProp-CWo6bftQ.js";
|
|
3
|
-
import { c as Qe, t as Rt, i as xe, p as ie, o as Lt, g as Ut, j as jt, l as Vt, r as et, d as _e, X as Ht, n as Gt, w as K, T as Wt, u as qt, q as Xt, a as tt } from "./lib-C5BH09_g.js";
|
|
4
|
-
import { t as Yt, u as Zt } from "./useResponsive-DfdjqQps.js";
|
|
5
|
-
import { u as Jt } from "./usePrinter-DCJzEiS8.js";
|
|
6
|
-
import { u as Kt, B as Qt } from "./BaseScanner-BgWxam9d.js";
|
|
7
|
-
import { u as eo } from "./useSvgExport-DrjCWun4.js";
|
|
8
|
-
import { u as to } from "./useThemeCheck-DGJ31Vi5.js";
|
|
9
|
-
import { u as oo } from "./useUserOptionState-BIvW1Kz7.js";
|
|
10
|
-
import { u as lo } from "./useChartAccessibility-9icAAmYg.js";
|
|
11
|
-
import ao from "./img-DUzJeMlr.js";
|
|
12
|
-
import no from "./Title-DfFUb9hd.js";
|
|
13
|
-
import { _ as so } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
14
|
-
function ot(u, c = 0) {
|
|
15
|
-
const h = u.reduce((a, { x: s, r: d }) => Math.min(a, s - d - c), 1 / 0), y = u.reduce((a, { x: s, r: d }) => Math.max(a, s + d + c), -1 / 0), v = u.reduce((a, { y: s, r: d }) => Math.min(a, s - d - c), 1 / 0), n = u.reduce((a, { y: s, r: d }) => Math.max(a, s + d + c), -1 / 0);
|
|
16
|
-
return [h, v, y - h, n - v];
|
|
17
|
-
}
|
|
18
|
-
function ro(u, c, h) {
|
|
19
|
-
const y = u._, v = u.next._, n = y.r + v.r, a = (y.x * v.r + v.x * y.r) / n, s = (y.y * v.r + v.y * y.r) / n;
|
|
20
|
-
return Math.max(Math.abs(a * h), Math.abs(s * c));
|
|
21
|
-
}
|
|
22
|
-
function lt(u, c, h) {
|
|
23
|
-
const y = ro, v = u.length;
|
|
24
|
-
if (!v) return u;
|
|
25
|
-
let n, a, s;
|
|
26
|
-
if (n = u[0], n.x = 0, n.y = 0, !(v > 1) || (a = u[1], n.x = -a.r, a.x = n.r, a.y = 0, !(v > 2))) return u;
|
|
27
|
-
at(a, n, s = u[2]), n = new ce(n), a = new ce(a), s = new ce(s), n.next = s.previous = a, a.next = n.previous = s, s.next = a.previous = n;
|
|
28
|
-
e: for (let d = 3; d < v; ++d) {
|
|
29
|
-
at(n._, a._, s = u[d]), s = new ce(s);
|
|
30
|
-
let _ = a.next, w = n.previous, Q = a._.r, ee = n._.r;
|
|
31
|
-
do
|
|
32
|
-
if (Q <= ee) {
|
|
33
|
-
if (nt(_._, s._)) {
|
|
34
|
-
a = _, n.next = a, a.previous = n, --d;
|
|
35
|
-
continue e;
|
|
36
|
-
}
|
|
37
|
-
Q += _._.r, _ = _.next;
|
|
38
|
-
} else {
|
|
39
|
-
if (nt(w._, s._)) {
|
|
40
|
-
n = w, n.next = a, a.previous = n, --d;
|
|
41
|
-
continue e;
|
|
42
|
-
}
|
|
43
|
-
ee += w._.r, w = w.previous;
|
|
44
|
-
}
|
|
45
|
-
while (_ !== w.next);
|
|
46
|
-
s.previous = n, s.next = a, n.next = a.previous = a = s;
|
|
47
|
-
let te = y(n, h, c), oe;
|
|
48
|
-
for (; (s = s.next) !== a; )
|
|
49
|
-
(oe = y(s, h, c)) < te && (n = s, te = oe);
|
|
50
|
-
a = n.next;
|
|
51
|
-
}
|
|
52
|
-
return u;
|
|
53
|
-
}
|
|
54
|
-
function at(u, c, h) {
|
|
55
|
-
const y = u.x - c.x, v = u.y - c.y, n = y * y + v * v;
|
|
56
|
-
if (n) {
|
|
57
|
-
const a = (c.r + h.r) ** 2, s = (u.r + h.r) ** 2;
|
|
58
|
-
if (a > s) {
|
|
59
|
-
const d = (n + s - a) / (2 * n), _ = Math.sqrt(Math.max(0, s / n - d * d));
|
|
60
|
-
h.x = u.x - d * y - _ * v, h.y = u.y - d * v + _ * y;
|
|
61
|
-
} else {
|
|
62
|
-
const d = (n + a - s) / (2 * n), _ = Math.sqrt(Math.max(0, a / n - d * d));
|
|
63
|
-
h.x = c.x + d * y - _ * v, h.y = c.y + d * v + _ * y;
|
|
64
|
-
}
|
|
65
|
-
} else
|
|
66
|
-
h.x = c.x + h.r, h.y = c.y;
|
|
67
|
-
}
|
|
68
|
-
function nt(u, c) {
|
|
69
|
-
const h = u.r + c.r - 1e-6, y = c.x - u.x, v = c.y - u.y;
|
|
70
|
-
return h > 0 && h * h > y * y + v * v;
|
|
71
|
-
}
|
|
72
|
-
class ce {
|
|
73
|
-
constructor(c) {
|
|
74
|
-
this._ = c, this.next = null, this.previous = null;
|
|
75
|
-
}
|
|
76
|
-
}
|
|
77
|
-
const st = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", circles: { stroke: "#1A1A1A" }, title: { color: "#CCCCCC", subtitle: { color: "#757575" } } } } }, rt = { style: { chart: { backgroundColor: "#FFF8E1", color: "#424242", title: { color: "#424242", subtitle: { color: "#757575" } } } } }, ut = { style: { chart: { backgroundColor: "#1E1E1E", color: "#BDBDBD", title: { color: "#FFF8E1", subtitle: { color: "#BDBDBD" } }, circles: { stroke: "#3A3A3A" } } } }, it = { style: { chart: { backgroundColor: "#1A1A1A", color: "#99AA99", title: { color: "#66CC66", subtitle: { color: "#99AA99" } }, circles: { stroke: "#3A3A3A" } } } }, ct = { style: { chart: { backgroundColor: "#fbfafa", color: "#8A9892", title: { color: "#8A9892", subtitle: { color: "#99AA99" } } } } }, vt = { style: { chart: { backgroundColor: "#f6f6fb", color: "#50606C", title: { color: "#50606C", subtitle: { color: "#718890" } } } } }, dt = {
|
|
78
|
-
default: {},
|
|
79
|
-
dark: st,
|
|
80
|
-
celebration: rt,
|
|
81
|
-
celebrationNight: ut,
|
|
82
|
-
hack: it,
|
|
83
|
-
zen: ct,
|
|
84
|
-
concrete: vt
|
|
85
|
-
}, Vo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
86
|
-
__proto__: null,
|
|
87
|
-
celebration: rt,
|
|
88
|
-
celebrationNight: ut,
|
|
89
|
-
concrete: vt,
|
|
90
|
-
dark: st,
|
|
91
|
-
default: dt,
|
|
92
|
-
hack: it,
|
|
93
|
-
zen: ct
|
|
94
|
-
}, Symbol.toStringTag, { value: "Module" })), uo = ["id"], io = ["xmlns", "viewBox", "height", "width"], co = ["x", "y", "width", "height"], vo = ["id"], fo = ["stop-color"], ho = ["stop-color"], mo = ["stop-color"], po = { key: 0 }, yo = ["x", "y", "width", "height", "stroke", "stroke-width", "fill", "rx", "onMouseenter", "onMouseout", "onClick"], bo = ["x", "y", "width", "height", "stroke", "stroke-width", "fill", "rx"], go = ["opacity", "x", "y", "font-size", "fill", "font-weight"], ko = ["opacity", "x", "y", "font-size", "fill", "font-weight"], Co = ["cx", "cy", "r", "opacity", "stroke", "stroke-width", "fill"], wo = {
|
|
95
|
-
key: 0,
|
|
96
|
-
style: { pointerEvents: "none" }
|
|
97
|
-
}, xo = { key: 1 }, _o = ["opacity", "x", "y", "font-size", "fill", "font-weight"], $o = ["opacity", "x", "y", "font-size", "fill", "font-weight"], zo = {
|
|
98
|
-
key: 4,
|
|
99
|
-
class: "vue-data-ui-watermark"
|
|
100
|
-
}, To = ["innerHTML"], Ao = {
|
|
101
|
-
__name: "vue-ui-circle-pack",
|
|
102
|
-
props: {
|
|
103
|
-
config: {
|
|
104
|
-
type: Object,
|
|
105
|
-
default() {
|
|
106
|
-
return {};
|
|
107
|
-
}
|
|
108
|
-
},
|
|
109
|
-
dataset: {
|
|
110
|
-
type: Array,
|
|
111
|
-
default() {
|
|
112
|
-
return [];
|
|
113
|
-
}
|
|
114
|
-
}
|
|
115
|
-
},
|
|
116
|
-
emits: ["selectDatapoint"],
|
|
117
|
-
setup(u, { expose: c, emit: h }) {
|
|
118
|
-
Dt((t) => ({
|
|
119
|
-
v8d91f5c4: U.value,
|
|
120
|
-
v06026ed2: pe.value
|
|
121
|
-
}));
|
|
122
|
-
const y = B(() => import("./BaseIcon-CofSxalQ.js")), v = B(() => import("./vue-ui-accordion-DSdZUn2C.js")), n = B(() => import("./DataTable-CHaOCmsE.js")), a = B(() => import("./UserOptions-B3I-s3Lw.js")), s = B(() => import("./PenAndPaper-HCZQTkqi.js")), d = B(() => import("./PackageVersion-C82JCJOX.js")), _ = B(() => import("./BaseDraggableDialog-CRF94NJQ.js")), w = u, Q = h, { vue_ui_circle_pack: ee } = Bt(), { isThemeValid: te, warnInvalidTheme: oe } = to(), $e = x(() => !!w.dataset && w.dataset.length), G = m(Qe()), T = m(null), ze = m(null), Te = m(null), Ae = m(0), Se = m(0), Oe = m(0), ft = m(null), W = m(null), ve = m(null), e = m(he()), { loading: De, FINAL_DATASET: Fe } = Kt({
|
|
123
|
-
...Ft(w),
|
|
124
|
-
FINAL_CONFIG: e,
|
|
125
|
-
prepareConfig: he,
|
|
126
|
-
skeletonDataset: [
|
|
127
|
-
{ name: "_", value: 13, color: "#F2F2F2" },
|
|
128
|
-
{ name: "_", value: 8, color: "#DBDBDB" },
|
|
129
|
-
{ name: "_", value: 5, color: "#ADADAD" },
|
|
130
|
-
{ name: "_", value: 3, color: "#969696" },
|
|
131
|
-
{ name: "_", value: 2, color: "#808080" },
|
|
132
|
-
{ name: "_", value: 1, color: "#696969" }
|
|
133
|
-
],
|
|
134
|
-
skeletonConfig: Rt({
|
|
135
|
-
defaultConfig: e.value,
|
|
136
|
-
userConfig: {
|
|
137
|
-
userOptions: { show: !1 },
|
|
138
|
-
table: { show: !1 },
|
|
139
|
-
style: {
|
|
140
|
-
chart: {
|
|
141
|
-
backgroundColor: "#99999930",
|
|
142
|
-
circles: {
|
|
143
|
-
stroke: "#6A6A6A",
|
|
144
|
-
labels: {
|
|
145
|
-
name: { show: !1 },
|
|
146
|
-
value: { show: !1 }
|
|
147
|
-
}
|
|
148
|
-
}
|
|
149
|
-
}
|
|
150
|
-
}
|
|
151
|
-
}
|
|
152
|
-
})
|
|
153
|
-
}), { svgRef: de } = lo({ config: e.value.style.chart.title }), {
|
|
154
|
-
userOptionsVisible: fe,
|
|
155
|
-
setUserOptionsVisibility: Pe,
|
|
156
|
-
keepUserOptionState: Ie
|
|
157
|
-
} = oo({ config: e.value });
|
|
158
|
-
function he() {
|
|
159
|
-
const t = we({
|
|
160
|
-
userConfig: w.config,
|
|
161
|
-
defaultConfig: ee
|
|
162
|
-
}), l = t.theme;
|
|
163
|
-
if (!l) return t;
|
|
164
|
-
if (!te.value(t))
|
|
165
|
-
return oe(t), t;
|
|
166
|
-
const o = we({
|
|
167
|
-
userConfig: dt[l] || w.config,
|
|
168
|
-
defaultConfig: t
|
|
169
|
-
}), r = we({
|
|
170
|
-
userConfig: w.config,
|
|
171
|
-
defaultConfig: o
|
|
172
|
-
});
|
|
173
|
-
return {
|
|
174
|
-
...r,
|
|
175
|
-
customPalette: r.customPalette.length ? r.customPalette : xe[l] || ie
|
|
176
|
-
};
|
|
177
|
-
}
|
|
178
|
-
se(() => w.config, (t) => {
|
|
179
|
-
e.value = he(), fe.value = !e.value.userOptions.showOnChartHover, me(), Ae.value += 1, Se.value += 1, I.value.showTable = e.value.table.show;
|
|
180
|
-
}, { deep: !0 });
|
|
181
|
-
const { isPrinting: Ee, isImaging: Me, generatePdf: Ne, generateImage: Be } = Jt({
|
|
182
|
-
elementId: `vue-ui-circle-pack_${G.value}`,
|
|
183
|
-
fileName: e.value.style.chart.title.text || "vue-ui-circle-pack",
|
|
184
|
-
options: e.value.userOptions.print
|
|
185
|
-
}), ht = x(() => e.value.userOptions.show && !e.value.style.chart.title.text), I = m({
|
|
186
|
-
showTable: e.value.table.show
|
|
187
|
-
});
|
|
188
|
-
se(e, () => {
|
|
189
|
-
I.value = {
|
|
190
|
-
showTable: e.value.table.show
|
|
191
|
-
};
|
|
192
|
-
}, { immediate: !0 });
|
|
193
|
-
const O = qe(null), R = qe(null), E = m({ h: 10, w: 10 }), Re = m(0), M = m([0, 0, 100, 100]), q = m({ h: 0, w: 0 }), mt = x(() => e.value.debug);
|
|
194
|
-
async function me() {
|
|
195
|
-
Lt(w.dataset) && Ut({
|
|
196
|
-
componentName: "VueUiCirclePack",
|
|
197
|
-
type: "dataset",
|
|
198
|
-
debug: mt.value
|
|
199
|
-
}), E.value = { h: 10, w: 10 }, M.value = [0, 0, 100, 100], q.value = { h: 0, w: 0 }, L.value = await lt(le.value), D.value = ot(L.value, 1).join(" "), q.value = Le(T.value);
|
|
200
|
-
const t = Yt(() => {
|
|
201
|
-
const { width: l, height: o, heightTitle: r, heightNoTitle: k } = Zt({
|
|
202
|
-
chart: T.value,
|
|
203
|
-
title: ze.value,
|
|
204
|
-
noTitle: Te.value
|
|
205
|
-
}), N = Math.max(10, l), ke = Math.max(10, o - 12);
|
|
206
|
-
Re.value = e.value.style.chart.title.text ? r : k, requestAnimationFrame(() => {
|
|
207
|
-
E.value.w = N, E.value.h = ke - Re.value, Ke(async () => {
|
|
208
|
-
const St = le.value.map((Ot) => ({ ...Ot }));
|
|
209
|
-
L.value = await lt(St, E.value.h, E.value.w), M.value = ot(L.value, 1), D.value = M.value.join(" "), q.value = Le(T.value);
|
|
210
|
-
});
|
|
211
|
-
});
|
|
212
|
-
});
|
|
213
|
-
O.value && (R.value && O.value.unobserve(R.value), O.value.disconnect()), O.value = new ResizeObserver(t), R.value = T.value.parentNode, O.value.observe(R.value);
|
|
214
|
-
}
|
|
215
|
-
Pt(me), It(() => {
|
|
216
|
-
O.value && (R.value && O.value.unobserve(R.value), O.value.disconnect());
|
|
217
|
-
});
|
|
218
|
-
function Le(t) {
|
|
219
|
-
if (!t || !t.parentElement)
|
|
220
|
-
return console.warn("Component or parent element is missing."), { w: 0, h: 0 };
|
|
221
|
-
const l = t.parentElement;
|
|
222
|
-
if (l.offsetWidth > 0 && l.offsetHeight > 0)
|
|
223
|
-
return { w: l.offsetWidth, h: l.offsetHeight };
|
|
224
|
-
const o = window.getComputedStyle(l), r = o.width, k = o.height;
|
|
225
|
-
return r !== "auto" && k !== "auto" && parseFloat(r) > 0 && parseFloat(k) > 0 ? { w: parseFloat(r), h: parseFloat(k) } : { w: 0, h: 0 };
|
|
226
|
-
}
|
|
227
|
-
se(() => Fe.value, async (t) => {
|
|
228
|
-
await me();
|
|
229
|
-
}, { deep: !0 });
|
|
230
|
-
const pt = x(() => jt(e.value.customPalette)), le = x(() => Fe.value.map((t, l) => {
|
|
231
|
-
const o = Vt(t.color) || pt.value[l] || xe[e.value.theme || "default"][l % xe[e.value.theme || "default"].length] || ie[l] || ie[l % ie.length];
|
|
232
|
-
return {
|
|
233
|
-
...t,
|
|
234
|
-
r: t.value,
|
|
235
|
-
id: Qe(),
|
|
236
|
-
color: o
|
|
237
|
-
};
|
|
238
|
-
}).filter((t) => ![null, void 0, 1 / 0, -1 / 0].includes(t.value))), L = m([]), D = m("0 0 100 100"), X = x(() => Math.max(...L.value.map((t) => t.r)));
|
|
239
|
-
function Ue(t, l) {
|
|
240
|
-
return l / X.value * t;
|
|
241
|
-
}
|
|
242
|
-
function yt(t, l) {
|
|
243
|
-
f.value = null, e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: t, seriesIndex: l });
|
|
244
|
-
}
|
|
245
|
-
function bt(t, l) {
|
|
246
|
-
Q("selectDatapoint", t), e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: t, seriesIndex: l });
|
|
247
|
-
}
|
|
248
|
-
function gt(t, l) {
|
|
249
|
-
kt(t), e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: t, seriesIndex: l });
|
|
250
|
-
}
|
|
251
|
-
const f = m(null);
|
|
252
|
-
function kt(t) {
|
|
253
|
-
e.value.style.chart.circles.zoom.show && (f.value = t);
|
|
254
|
-
}
|
|
255
|
-
const U = x(() => f.value ? f.value.r : 0), pe = x(() => P.value ? U.value : f.value ? f.value.r > M.value[3] / 6 * e.value.style.chart.circles.zoom.zoomRatio ? f.value.r : M.value[3] / 6 * e.value.style.chart.circles.zoom.zoomRatio : 0), F = m(0), Ct = x(() => ({
|
|
256
|
-
pointerEvents: "none",
|
|
257
|
-
opacity: F.value,
|
|
258
|
-
filter: `drop-shadow(0px 0px 6px ${et(f.value.color, e.value.style.chart.circles.zoom.shadowForce)})`
|
|
259
|
-
})), Y = m(U.value);
|
|
260
|
-
Et(() => {
|
|
261
|
-
Y.value = U.value, F.value = 0;
|
|
262
|
-
let t = null;
|
|
263
|
-
function l(o) {
|
|
264
|
-
t || (t = o);
|
|
265
|
-
const r = (o - t) / e.value.style.chart.circles.zoom.animationFrameMs;
|
|
266
|
-
r < 1 ? (Y.value = U.value + (pe.value - U.value) * r, F.value = 0 + e.value.style.chart.circles.zoom.opacity * r, requestAnimationFrame(l)) : (Y.value = pe.value, F.value = e.value.style.chart.circles.zoom.opacity);
|
|
267
|
-
}
|
|
268
|
-
requestAnimationFrame(l);
|
|
269
|
-
});
|
|
270
|
-
const Z = x(() => ({
|
|
271
|
-
name: e.value.style.chart.circles.zoom.label.name.fontSize * M.value[3] / 300,
|
|
272
|
-
value: e.value.style.chart.circles.zoom.label.value.fontSize * M.value[3] / 300
|
|
273
|
-
}));
|
|
274
|
-
function ye(t) {
|
|
275
|
-
return tt(
|
|
276
|
-
e.value.style.chart.circles.labels.value.formatter,
|
|
277
|
-
t.value,
|
|
278
|
-
_e({
|
|
279
|
-
p: e.value.style.chart.circles.labels.value.prefix,
|
|
280
|
-
v: t.value,
|
|
281
|
-
s: e.value.style.chart.circles.labels.value.suffix,
|
|
282
|
-
r: e.value.style.chart.circles.labels.value.rounding
|
|
283
|
-
})
|
|
284
|
-
);
|
|
285
|
-
}
|
|
286
|
-
function wt() {
|
|
287
|
-
return tt(
|
|
288
|
-
e.value.style.chart.circles.zoom.label.value.formatter,
|
|
289
|
-
f.value.value,
|
|
290
|
-
_e({
|
|
291
|
-
p: e.value.style.chart.circles.zoom.label.value.prefix,
|
|
292
|
-
v: f.value.value,
|
|
293
|
-
s: e.value.style.chart.circles.zoom.label.value.suffix,
|
|
294
|
-
r: e.value.style.chart.circles.zoom.label.value.rounding
|
|
295
|
-
})
|
|
296
|
-
);
|
|
297
|
-
}
|
|
298
|
-
function je(t) {
|
|
299
|
-
if (!t)
|
|
300
|
-
return 0;
|
|
301
|
-
const l = t.r / ye(t).length * (ye(t).length === 1 ? 1 : 2);
|
|
302
|
-
return Math.min(t.r / 2.5, l);
|
|
303
|
-
}
|
|
304
|
-
const j = m(!1);
|
|
305
|
-
function Ve(t) {
|
|
306
|
-
j.value = t, Oe.value += 1;
|
|
307
|
-
}
|
|
308
|
-
const P = m(!1);
|
|
309
|
-
function be() {
|
|
310
|
-
P.value = !P.value;
|
|
311
|
-
}
|
|
312
|
-
const ae = x(() => {
|
|
313
|
-
const t = le.value.map((o) => ({
|
|
314
|
-
name: o.name,
|
|
315
|
-
value: o.value,
|
|
316
|
-
color: o.color
|
|
317
|
-
})).toSorted((o, r) => r.value - o.value), l = t.map((o) => o.value);
|
|
318
|
-
return { head: t, body: l };
|
|
319
|
-
});
|
|
320
|
-
function ge(t = null) {
|
|
321
|
-
Ke(() => {
|
|
322
|
-
const l = ae.value.head.map((k, N) => [[
|
|
323
|
-
k.name
|
|
324
|
-
], [ae.value.body[N]]]), o = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [[""], [e.value.table.columnNames.value]]].concat(l), r = qt(o);
|
|
325
|
-
t ? t(r) : Xt({ csvContent: r, title: e.value.style.chart.title.text || "vue-ui-circle-pack" });
|
|
326
|
-
});
|
|
327
|
-
}
|
|
328
|
-
const ne = x(() => {
|
|
329
|
-
const t = [
|
|
330
|
-
e.value.table.columnNames.datapoint,
|
|
331
|
-
e.value.table.columnNames.value
|
|
332
|
-
], l = ae.value.head.map((k, N) => {
|
|
333
|
-
const ke = _e({
|
|
334
|
-
p: e.value.style.chart.circles.labels.value.prefix,
|
|
335
|
-
v: ae.value.body[N],
|
|
336
|
-
s: e.value.style.chart.circles.labels.value.suffix,
|
|
337
|
-
r: e.value.style.chart.circles.labels.value.rounding
|
|
338
|
-
});
|
|
339
|
-
return [
|
|
340
|
-
{
|
|
341
|
-
color: k.color,
|
|
342
|
-
name: k.name
|
|
343
|
-
},
|
|
344
|
-
ke
|
|
345
|
-
];
|
|
346
|
-
}), o = {
|
|
347
|
-
th: {
|
|
348
|
-
backgroundColor: e.value.table.th.backgroundColor,
|
|
349
|
-
color: e.value.table.th.color,
|
|
350
|
-
outline: e.value.table.th.outline
|
|
351
|
-
},
|
|
352
|
-
td: {
|
|
353
|
-
backgroundColor: e.value.table.td.backgroundColor,
|
|
354
|
-
color: e.value.table.td.color,
|
|
355
|
-
outline: e.value.table.td.outline
|
|
356
|
-
},
|
|
357
|
-
breakpoint: e.value.table.responsiveBreakpoint
|
|
358
|
-
};
|
|
359
|
-
return {
|
|
360
|
-
colNames: [
|
|
361
|
-
e.value.table.columnNames.datapoint,
|
|
362
|
-
e.value.table.columnNames.value
|
|
363
|
-
],
|
|
364
|
-
head: t,
|
|
365
|
-
body: l,
|
|
366
|
-
config: o
|
|
367
|
-
};
|
|
368
|
-
});
|
|
369
|
-
function He() {
|
|
370
|
-
I.value.showTable = !I.value.showTable;
|
|
371
|
-
}
|
|
372
|
-
function xt() {
|
|
373
|
-
return le.value;
|
|
374
|
-
}
|
|
375
|
-
async function _t({ scale: t = 2 } = {}) {
|
|
376
|
-
if (!T.value) return;
|
|
377
|
-
const { width: l, height: o } = T.value.getBoundingClientRect(), r = l / o, { imageUri: k, base64: N } = await ao({ domElement: T.value, base64: !0, img: !0, scale: t });
|
|
378
|
-
return {
|
|
379
|
-
imageUri: k,
|
|
380
|
-
base64: N,
|
|
381
|
-
title: e.value.style.chart.title.text,
|
|
382
|
-
width: l,
|
|
383
|
-
height: o,
|
|
384
|
-
aspectRatio: r
|
|
385
|
-
};
|
|
386
|
-
}
|
|
387
|
-
const J = x(() => {
|
|
388
|
-
const t = e.value.table.useDialog && !e.value.table.show, l = I.value.showTable;
|
|
389
|
-
return {
|
|
390
|
-
component: t ? _ : v,
|
|
391
|
-
title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? `: ${e.value.style.chart.title.subtitle.text}` : ""}`,
|
|
392
|
-
props: t ? {
|
|
393
|
-
backgroundColor: e.value.table.th.backgroundColor,
|
|
394
|
-
color: e.value.table.th.color,
|
|
395
|
-
headerColor: e.value.table.th.color,
|
|
396
|
-
headerBg: e.value.table.th.backgroundColor,
|
|
397
|
-
isFullscreen: j.value,
|
|
398
|
-
fullscreenParent: T.value,
|
|
399
|
-
forcedWidth: Math.min(500, window.innerWidth * 0.8)
|
|
400
|
-
} : {
|
|
401
|
-
hideDetails: !0,
|
|
402
|
-
config: {
|
|
403
|
-
open: l,
|
|
404
|
-
maxHeight: 1e4,
|
|
405
|
-
body: {
|
|
406
|
-
backgroundColor: e.value.style.chart.backgroundColor,
|
|
407
|
-
color: e.value.style.chart.color
|
|
408
|
-
},
|
|
409
|
-
head: {
|
|
410
|
-
backgroundColor: e.value.style.chart.backgroundColor,
|
|
411
|
-
color: e.value.style.chart.color
|
|
412
|
-
}
|
|
413
|
-
}
|
|
414
|
-
}
|
|
415
|
-
};
|
|
416
|
-
});
|
|
417
|
-
se(() => I.value.showTable, (t) => {
|
|
418
|
-
e.value.table.show || (t && e.value.table.useDialog && W.value ? W.value.open() : "close" in W.value && W.value.close());
|
|
419
|
-
});
|
|
420
|
-
function Ge() {
|
|
421
|
-
I.value.showTable = !1, ve.value && ve.value.setTableIconState(!1);
|
|
422
|
-
}
|
|
423
|
-
const $t = x(() => e.value.style.chart.backgroundColor), zt = x(() => e.value.style.chart.title), { exportSvg: Tt, getSvg: At } = eo({
|
|
424
|
-
svg: de,
|
|
425
|
-
title: zt,
|
|
426
|
-
backgroundColor: $t
|
|
427
|
-
});
|
|
428
|
-
async function We({ isCb: t }) {
|
|
429
|
-
if (t) {
|
|
430
|
-
const { blob: l, url: o, text: r, dataUrl: k } = await At();
|
|
431
|
-
e.value.userOptions.callbacks.svg({ blob: l, url: o, text: r, dataUrl: k });
|
|
432
|
-
} else
|
|
433
|
-
Tt();
|
|
434
|
-
}
|
|
435
|
-
return c({
|
|
436
|
-
getData: xt,
|
|
437
|
-
getImage: _t,
|
|
438
|
-
generateCsv: ge,
|
|
439
|
-
generatePdf: Ne,
|
|
440
|
-
generateImage: Be,
|
|
441
|
-
generateSvg: We,
|
|
442
|
-
toggleTable: He,
|
|
443
|
-
toggleAnnotator: be,
|
|
444
|
-
toggleFullscreen: Ve
|
|
445
|
-
}), (t, l) => (p(), C("div", {
|
|
446
|
-
id: `vue-ui-circle-pack_${G.value}`,
|
|
447
|
-
class: Xe(`vue-data-ui-component vue-ui-circle-pack ${j.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${i(De) ? "loading" : ""}`),
|
|
448
|
-
ref_key: "circlePackChart",
|
|
449
|
-
ref: T,
|
|
450
|
-
style: re(`font-family:${e.value.style.fontFamily};text-align:center;background:${e.value.style.chart.backgroundColor}; height: ${q.value.h}px; width:${q.value.w}px`),
|
|
451
|
-
onMouseenter: l[1] || (l[1] = () => i(Pe)(!0)),
|
|
452
|
-
onMouseleave: l[2] || (l[2] = () => i(Pe)(!1))
|
|
453
|
-
}, [
|
|
454
|
-
e.value.userOptions.buttons.annotator ? (p(), V(i(s), {
|
|
455
|
-
key: 0,
|
|
456
|
-
svgRef: i(de),
|
|
457
|
-
backgroundColor: e.value.style.chart.backgroundColor,
|
|
458
|
-
color: e.value.style.chart.color,
|
|
459
|
-
active: P.value,
|
|
460
|
-
scale: X.value / 100,
|
|
461
|
-
onClose: be
|
|
462
|
-
}, {
|
|
463
|
-
"annotator-action-close": g(() => [
|
|
464
|
-
b(t.$slots, "annotator-action-close", {}, void 0, !0)
|
|
465
|
-
]),
|
|
466
|
-
"annotator-action-color": g(({ color: o }) => [
|
|
467
|
-
b(t.$slots, "annotator-action-color", A(S({ color: o })), void 0, !0)
|
|
468
|
-
]),
|
|
469
|
-
"annotator-action-draw": g(({ mode: o }) => [
|
|
470
|
-
b(t.$slots, "annotator-action-draw", A(S({ mode: o })), void 0, !0)
|
|
471
|
-
]),
|
|
472
|
-
"annotator-action-undo": g(({ disabled: o }) => [
|
|
473
|
-
b(t.$slots, "annotator-action-undo", A(S({ disabled: o })), void 0, !0)
|
|
474
|
-
]),
|
|
475
|
-
"annotator-action-redo": g(({ disabled: o }) => [
|
|
476
|
-
b(t.$slots, "annotator-action-redo", A(S({ disabled: o })), void 0, !0)
|
|
477
|
-
]),
|
|
478
|
-
"annotator-action-delete": g(({ disabled: o }) => [
|
|
479
|
-
b(t.$slots, "annotator-action-delete", A(S({ disabled: o })), void 0, !0)
|
|
480
|
-
]),
|
|
481
|
-
_: 3
|
|
482
|
-
}, 8, ["svgRef", "backgroundColor", "color", "active", "scale"])) : $("", !0),
|
|
483
|
-
b(t.$slots, "userConfig", {}, void 0, !0),
|
|
484
|
-
ht.value ? (p(), C("div", {
|
|
485
|
-
key: 1,
|
|
486
|
-
ref_key: "noTitle",
|
|
487
|
-
ref: Te,
|
|
488
|
-
class: "vue-data-ui-no-title-space",
|
|
489
|
-
style: "height:36px; width: 100%;background:transparent"
|
|
490
|
-
}, null, 512)) : $("", !0),
|
|
491
|
-
e.value.style.chart.title.text ? (p(), C("div", {
|
|
492
|
-
key: 2,
|
|
493
|
-
ref_key: "chartTitle",
|
|
494
|
-
ref: ze,
|
|
495
|
-
style: "width:100%;background:transparent;padding-bottom:12px"
|
|
496
|
-
}, [
|
|
497
|
-
(p(), V(no, {
|
|
498
|
-
key: `title_${Ae.value}`,
|
|
499
|
-
config: {
|
|
500
|
-
title: {
|
|
501
|
-
cy: "donut-div-title",
|
|
502
|
-
...e.value.style.chart.title
|
|
503
|
-
},
|
|
504
|
-
subtitle: {
|
|
505
|
-
cy: "donut-div-subtitle",
|
|
506
|
-
...e.value.style.chart.title.subtitle
|
|
507
|
-
}
|
|
508
|
-
}
|
|
509
|
-
}, null, 8, ["config"]))
|
|
510
|
-
], 512)) : $("", !0),
|
|
511
|
-
e.value.userOptions.show && $e.value && (i(Ie) || i(fe)) ? (p(), V(i(a), {
|
|
512
|
-
ref_key: "userOptionsRef",
|
|
513
|
-
ref: ve,
|
|
514
|
-
key: `user_option_${Oe.value}`,
|
|
515
|
-
backgroundColor: e.value.style.chart.backgroundColor,
|
|
516
|
-
color: e.value.style.chart.color,
|
|
517
|
-
isPrinting: i(Ee),
|
|
518
|
-
isImaging: i(Me),
|
|
519
|
-
uid: G.value,
|
|
520
|
-
hasTooltip: !1,
|
|
521
|
-
hasLabel: !1,
|
|
522
|
-
hasPdf: e.value.userOptions.buttons.pdf,
|
|
523
|
-
hasImg: e.value.userOptions.buttons.img,
|
|
524
|
-
hasSvg: e.value.userOptions.buttons.svg,
|
|
525
|
-
hasXls: e.value.userOptions.buttons.csv,
|
|
526
|
-
hasTable: e.value.userOptions.buttons.table,
|
|
527
|
-
hasFullscreen: e.value.userOptions.buttons.fullscreen,
|
|
528
|
-
isFullscreen: j.value,
|
|
529
|
-
chartElement: T.value,
|
|
530
|
-
position: e.value.userOptions.position,
|
|
531
|
-
callbacks: e.value.userOptions.callbacks,
|
|
532
|
-
printScale: e.value.userOptions.print.scale,
|
|
533
|
-
titles: { ...e.value.userOptions.buttonTitles },
|
|
534
|
-
hasAnnotator: e.value.userOptions.buttons.annotator,
|
|
535
|
-
isAnnotation: P.value,
|
|
536
|
-
tableDialog: e.value.table.useDialog,
|
|
537
|
-
onToggleFullscreen: Ve,
|
|
538
|
-
onGeneratePdf: i(Ne),
|
|
539
|
-
onGenerateCsv: ge,
|
|
540
|
-
onGenerateImage: i(Be),
|
|
541
|
-
onGenerateSvg: We,
|
|
542
|
-
onToggleTable: He,
|
|
543
|
-
onToggleAnnotator: be,
|
|
544
|
-
style: re({ visibility: i(Ie) ? i(fe) ? "visible" : "hidden" : "visible" })
|
|
545
|
-
}, Ye({ _: 2 }, [
|
|
546
|
-
t.$slots.menuIcon ? {
|
|
547
|
-
name: "menuIcon",
|
|
548
|
-
fn: g(({ isOpen: o, color: r }) => [
|
|
549
|
-
b(t.$slots, "menuIcon", A(S({ isOpen: o, color: r })), void 0, !0)
|
|
550
|
-
]),
|
|
551
|
-
key: "0"
|
|
552
|
-
} : void 0,
|
|
553
|
-
t.$slots.optionPdf ? {
|
|
554
|
-
name: "optionPdf",
|
|
555
|
-
fn: g(() => [
|
|
556
|
-
b(t.$slots, "optionPdf", {}, void 0, !0)
|
|
557
|
-
]),
|
|
558
|
-
key: "1"
|
|
559
|
-
} : void 0,
|
|
560
|
-
t.$slots.optionCsv ? {
|
|
561
|
-
name: "optionCsv",
|
|
562
|
-
fn: g(() => [
|
|
563
|
-
b(t.$slots, "optionCsv", {}, void 0, !0)
|
|
564
|
-
]),
|
|
565
|
-
key: "2"
|
|
566
|
-
} : void 0,
|
|
567
|
-
t.$slots.optionImg ? {
|
|
568
|
-
name: "optionImg",
|
|
569
|
-
fn: g(() => [
|
|
570
|
-
b(t.$slots, "optionImg", {}, void 0, !0)
|
|
571
|
-
]),
|
|
572
|
-
key: "3"
|
|
573
|
-
} : void 0,
|
|
574
|
-
t.$slots.optionSvg ? {
|
|
575
|
-
name: "optionSvg",
|
|
576
|
-
fn: g(() => [
|
|
577
|
-
b(t.$slots, "optionSvg", {}, void 0, !0)
|
|
578
|
-
]),
|
|
579
|
-
key: "4"
|
|
580
|
-
} : void 0,
|
|
581
|
-
t.$slots.optionTable ? {
|
|
582
|
-
name: "optionTable",
|
|
583
|
-
fn: g(() => [
|
|
584
|
-
b(t.$slots, "optionTable", {}, void 0, !0)
|
|
585
|
-
]),
|
|
586
|
-
key: "5"
|
|
587
|
-
} : void 0,
|
|
588
|
-
t.$slots.optionFullscreen ? {
|
|
589
|
-
name: "optionFullscreen",
|
|
590
|
-
fn: g(({ toggleFullscreen: o, isFullscreen: r }) => [
|
|
591
|
-
b(t.$slots, "optionFullscreen", A(S({ toggleFullscreen: o, isFullscreen: r })), void 0, !0)
|
|
592
|
-
]),
|
|
593
|
-
key: "6"
|
|
594
|
-
} : void 0,
|
|
595
|
-
t.$slots.optionAnnotator ? {
|
|
596
|
-
name: "optionAnnotator",
|
|
597
|
-
fn: g(({ toggleAnnotator: o, isAnnotator: r }) => [
|
|
598
|
-
b(t.$slots, "optionAnnotator", A(S({ toggleAnnotator: o, isAnnotator: r })), void 0, !0)
|
|
599
|
-
]),
|
|
600
|
-
key: "7"
|
|
601
|
-
} : void 0
|
|
602
|
-
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasPdf", "hasImg", "hasSvg", "hasXls", "hasTable", "hasFullscreen", "isFullscreen", "chartElement", "position", "callbacks", "printScale", "titles", "hasAnnotator", "isAnnotation", "tableDialog", "onGeneratePdf", "onGenerateImage", "style"])) : $("", !0),
|
|
603
|
-
(p(), C("svg", {
|
|
604
|
-
ref_key: "svgRef",
|
|
605
|
-
ref: de,
|
|
606
|
-
xmlns: i(Ht),
|
|
607
|
-
viewBox: D.value,
|
|
608
|
-
height: Math.max(10, E.value.h),
|
|
609
|
-
width: Math.max(10, E.value.w),
|
|
610
|
-
class: Xe({ "vue-data-ui-fullscreen--on": j.value, "vue-data-ui-fulscreen--off": !j.value }),
|
|
611
|
-
style: re(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.chart.color};background:${e.value.style.chart.backgroundColor};`)
|
|
612
|
-
}, [
|
|
613
|
-
Ze(i(d)),
|
|
614
|
-
t.$slots["chart-background"] ? (p(), C("foreignObject", {
|
|
615
|
-
key: 0,
|
|
616
|
-
x: D.value.x,
|
|
617
|
-
y: D.value.y,
|
|
618
|
-
width: D.value.width,
|
|
619
|
-
height: D.value.height,
|
|
620
|
-
style: {
|
|
621
|
-
pointerEvents: "none"
|
|
622
|
-
}
|
|
623
|
-
}, [
|
|
624
|
-
b(t.$slots, "chart-background", {}, void 0, !0)
|
|
625
|
-
], 8, co)) : $("", !0),
|
|
626
|
-
(p(!0), C(ue, null, Mt(L.value, (o, r) => (p(), C(ue, null, [
|
|
627
|
-
z("defs", null, [
|
|
628
|
-
z("radialGradient", {
|
|
629
|
-
id: o.id,
|
|
630
|
-
fy: "30%"
|
|
631
|
-
}, [
|
|
632
|
-
z("stop", {
|
|
633
|
-
offset: "10%",
|
|
634
|
-
"stop-color": i(Gt)(o.color, e.value.style.chart.circles.gradient.intensity / 100)
|
|
635
|
-
}, null, 8, fo),
|
|
636
|
-
z("stop", {
|
|
637
|
-
offset: "90%",
|
|
638
|
-
"stop-color": i(et)(o.color, 0.1)
|
|
639
|
-
}, null, 8, ho),
|
|
640
|
-
z("stop", {
|
|
641
|
-
offset: "100%",
|
|
642
|
-
"stop-color": o.color
|
|
643
|
-
}, null, 8, mo)
|
|
644
|
-
], 8, vo)
|
|
645
|
-
]),
|
|
646
|
-
t.$slots.pattern ? (p(), C("g", po, [
|
|
647
|
-
z("defs", null, [
|
|
648
|
-
b(t.$slots, "pattern", Ce({ ref_for: !0 }, { ...o, patternId: `pattern_${G.value}_${o.id}` }), void 0, !0)
|
|
649
|
-
])
|
|
650
|
-
])) : $("", !0),
|
|
651
|
-
z("rect", {
|
|
652
|
-
x: o.x - o.r,
|
|
653
|
-
y: o.y - o.r,
|
|
654
|
-
width: o.r * 2,
|
|
655
|
-
height: o.r * 2,
|
|
656
|
-
stroke: e.value.style.chart.circles.stroke,
|
|
657
|
-
"stroke-width": e.value.style.chart.circles.strokeWidth * X.value / 100,
|
|
658
|
-
fill: e.value.style.chart.circles.gradient.show ? `url(#${o.id})` : o.color,
|
|
659
|
-
rx: o.r,
|
|
660
|
-
onMouseenter: (k) => gt(o, r),
|
|
661
|
-
onMouseout: (k) => yt(o, r),
|
|
662
|
-
onClick: (k) => bt(o, r)
|
|
663
|
-
}, null, 40, yo),
|
|
664
|
-
t.$slots.pattern ? (p(), C("rect", {
|
|
665
|
-
key: 1,
|
|
666
|
-
x: o.x - o.r,
|
|
667
|
-
y: o.y - o.r,
|
|
668
|
-
width: o.r * 2,
|
|
669
|
-
height: o.r * 2,
|
|
670
|
-
stroke: e.value.style.chart.circles.stroke,
|
|
671
|
-
"stroke-width": e.value.style.chart.circles.strokeWidth * X.value / 100,
|
|
672
|
-
fill: `url(#pattern_${G.value}_${o.id})`,
|
|
673
|
-
rx: o.r,
|
|
674
|
-
style: {
|
|
675
|
-
pointerEvents: "none"
|
|
676
|
-
}
|
|
677
|
-
}, null, 8, bo)) : $("", !0),
|
|
678
|
-
t.$slots["data-label"] ? b(t.$slots, "data-label", Ce({
|
|
679
|
-
key: 2,
|
|
680
|
-
ref_for: !0
|
|
681
|
-
}, { ...o, createTSpans: i(Wt), fontSize: { name: o.r / 3 * e.value.style.chart.circles.labels.name.fontSizeRatio, value: je(o) * e.value.style.chart.circles.labels.value.fontSizeRatio }, color: e.value.style.chart.circles.labels.name.color ? e.value.style.chart.circles.labels.name.color : i(K)(o.color) }), void 0, !0) : (p(), C(ue, { key: 3 }, [
|
|
682
|
-
e.value.style.chart.circles.labels.name.show && o.name ? (p(), C("text", {
|
|
683
|
-
key: 0,
|
|
684
|
-
style: {
|
|
685
|
-
pointerEvents: "none",
|
|
686
|
-
transition: "opacity 0.2s ease-in-out"
|
|
687
|
-
},
|
|
688
|
-
opacity: f.value && !P.value ? 0.2 : 1,
|
|
689
|
-
x: o.x,
|
|
690
|
-
y: o.y + Ue(o.r, e.value.style.chart.circles.labels.name.offsetY) - o.r / 10,
|
|
691
|
-
"font-size": o.r / 3 * e.value.style.chart.circles.labels.name.fontSizeRatio,
|
|
692
|
-
fill: e.value.style.chart.circles.labels.name.color ? e.value.style.chart.circles.labels.name.color : i(K)(o.color),
|
|
693
|
-
"font-weight": e.value.style.chart.circles.labels.name.bold ? "bold" : "normal",
|
|
694
|
-
"text-anchor": "middle"
|
|
695
|
-
}, H(o.name), 9, go)) : $("", !0),
|
|
696
|
-
e.value.style.chart.circles.labels.value.show ? (p(), C("text", {
|
|
697
|
-
key: 1,
|
|
698
|
-
style: {
|
|
699
|
-
pointerEvents: "none",
|
|
700
|
-
transition: "opacity 0.2s ease-in-out"
|
|
701
|
-
},
|
|
702
|
-
opacity: f.value && !P.value ? 0.2 : 1,
|
|
703
|
-
x: o.x,
|
|
704
|
-
y: o.y + Ue(o.r, e.value.style.chart.circles.labels.value.offsetY) + o.r / 2.5,
|
|
705
|
-
"font-size": je(o) * e.value.style.chart.circles.labels.value.fontSizeRatio,
|
|
706
|
-
fill: e.value.style.chart.circles.labels.value.color ? e.value.style.chart.circles.labels.value.color : i(K)(o.color),
|
|
707
|
-
"font-weight": e.value.style.chart.circles.labels.value.bold ? "bold" : "normal",
|
|
708
|
-
"text-anchor": "middle"
|
|
709
|
-
}, H(ye(o)), 9, ko)) : $("", !0)
|
|
710
|
-
], 64))
|
|
711
|
-
], 64))), 256)),
|
|
712
|
-
f.value && e.value.style.chart.circles.zoom.show && !P.value ? (p(), C(ue, { key: 1 }, [
|
|
713
|
-
z("circle", {
|
|
714
|
-
style: re(Ct.value),
|
|
715
|
-
cx: f.value.x,
|
|
716
|
-
cy: f.value.y,
|
|
717
|
-
r: Y.value,
|
|
718
|
-
opacity: F.value,
|
|
719
|
-
stroke: e.value.style.chart.circles.stroke,
|
|
720
|
-
"stroke-width": e.value.style.chart.circles.strokeWidth * X.value / 100,
|
|
721
|
-
fill: e.value.style.chart.circles.gradient.show ? `url(#${f.value.id})` : f.value.color
|
|
722
|
-
}, null, 12, Co),
|
|
723
|
-
t.$slots["zoom-label"] ? (p(), C("g", wo, [
|
|
724
|
-
b(t.$slots, "zoom-label", A(S({ ...f.value, zoomOpacity: F.value, currentRadius: Y.value, fontSize: Z.value })), void 0, !0)
|
|
725
|
-
])) : (p(), C("g", xo, [
|
|
726
|
-
z("text", {
|
|
727
|
-
style: {
|
|
728
|
-
pointerEvents: "none"
|
|
729
|
-
},
|
|
730
|
-
opacity: F.value,
|
|
731
|
-
x: f.value.x,
|
|
732
|
-
y: f.value.y + e.value.style.chart.circles.zoom.label.name.offsetY - Z.value.name / 4,
|
|
733
|
-
"text-anchor": "middle",
|
|
734
|
-
"font-size": Z.value.name,
|
|
735
|
-
fill: e.value.style.chart.circles.zoom.label.name.color ? e.value.style.chart.circles.zoom.label.name.color : i(K)(f.value.color),
|
|
736
|
-
"font-weight": e.value.style.chart.circles.zoom.label.name.bold ? "bold" : "normal"
|
|
737
|
-
}, H(f.value.name), 9, _o),
|
|
738
|
-
z("text", {
|
|
739
|
-
style: {
|
|
740
|
-
pointerEvents: "none"
|
|
741
|
-
},
|
|
742
|
-
opacity: F.value,
|
|
743
|
-
x: f.value.x,
|
|
744
|
-
y: f.value.y + Z.value.value + e.value.style.chart.circles.zoom.label.value.offsetY,
|
|
745
|
-
"text-anchor": "middle",
|
|
746
|
-
"font-size": Z.value.value,
|
|
747
|
-
fill: e.value.style.chart.circles.zoom.label.value.color ? e.value.style.chart.circles.zoom.label.value.color : i(K)(f.value.color),
|
|
748
|
-
"font-weight": e.value.style.chart.circles.zoom.label.value.bold ? "bold" : "normal"
|
|
749
|
-
}, H(wt()), 9, $o)
|
|
750
|
-
]))
|
|
751
|
-
], 64)) : $("", !0),
|
|
752
|
-
b(t.$slots, "svg", {
|
|
753
|
-
svg: { ...D.value }
|
|
754
|
-
}, void 0, !0)
|
|
755
|
-
], 14, io)),
|
|
756
|
-
t.$slots.watermark ? (p(), C("div", zo, [
|
|
757
|
-
b(t.$slots, "watermark", A(S({ isPrinting: i(Ee) || i(Me) })), void 0, !0)
|
|
758
|
-
])) : $("", !0),
|
|
759
|
-
t.$slots.source ? (p(), C("div", {
|
|
760
|
-
key: 5,
|
|
761
|
-
ref_key: "source",
|
|
762
|
-
ref: ft,
|
|
763
|
-
dir: "auto"
|
|
764
|
-
}, [
|
|
765
|
-
b(t.$slots, "source", {}, void 0, !0)
|
|
766
|
-
], 512)) : $("", !0),
|
|
767
|
-
$e.value && e.value.userOptions.buttons.table ? (p(), V(Nt(J.value.component), Ce({ key: 6 }, J.value.props, {
|
|
768
|
-
ref_key: "tableUnit",
|
|
769
|
-
ref: W,
|
|
770
|
-
onClose: Ge
|
|
771
|
-
}), Ye({
|
|
772
|
-
content: g(() => [
|
|
773
|
-
(p(), V(i(n), {
|
|
774
|
-
key: `table_${Se.value}`,
|
|
775
|
-
colNames: ne.value.colNames,
|
|
776
|
-
head: ne.value.head,
|
|
777
|
-
body: ne.value.body,
|
|
778
|
-
config: ne.value.config,
|
|
779
|
-
title: e.value.table.useDialog ? "" : J.value.title,
|
|
780
|
-
withCloseButton: !e.value.table.useDialog,
|
|
781
|
-
onClose: Ge
|
|
782
|
-
}, {
|
|
783
|
-
th: g(({ th: o }) => [
|
|
784
|
-
z("div", {
|
|
785
|
-
innerHTML: o,
|
|
786
|
-
style: { display: "flex", "align-items": "center" }
|
|
787
|
-
}, null, 8, To)
|
|
788
|
-
]),
|
|
789
|
-
td: g(({ td: o }) => [
|
|
790
|
-
Je(H(o.name || o), 1)
|
|
791
|
-
]),
|
|
792
|
-
_: 1
|
|
793
|
-
}, 8, ["colNames", "head", "body", "config", "title", "withCloseButton"]))
|
|
794
|
-
]),
|
|
795
|
-
_: 2
|
|
796
|
-
}, [
|
|
797
|
-
e.value.table.useDialog ? {
|
|
798
|
-
name: "title",
|
|
799
|
-
fn: g(() => [
|
|
800
|
-
Je(H(J.value.title), 1)
|
|
801
|
-
]),
|
|
802
|
-
key: "0"
|
|
803
|
-
} : void 0,
|
|
804
|
-
e.value.table.useDialog ? {
|
|
805
|
-
name: "actions",
|
|
806
|
-
fn: g(() => [
|
|
807
|
-
z("button", {
|
|
808
|
-
tabindex: "0",
|
|
809
|
-
class: "vue-ui-user-options-button",
|
|
810
|
-
onClick: l[0] || (l[0] = (o) => ge(e.value.userOptions.callbacks.csv))
|
|
811
|
-
}, [
|
|
812
|
-
Ze(i(y), {
|
|
813
|
-
name: "excel",
|
|
814
|
-
stroke: J.value.props.color
|
|
815
|
-
}, null, 8, ["stroke"])
|
|
816
|
-
])
|
|
817
|
-
]),
|
|
818
|
-
key: "1"
|
|
819
|
-
} : void 0
|
|
820
|
-
]), 1040)) : $("", !0),
|
|
821
|
-
i(De) ? (p(), V(Qt, { key: 7 })) : $("", !0)
|
|
822
|
-
], 46, uo));
|
|
823
|
-
}
|
|
824
|
-
}, So = /* @__PURE__ */ so(Ao, [["__scopeId", "data-v-a413f09c"]]), Ho = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
825
|
-
__proto__: null,
|
|
826
|
-
default: So
|
|
827
|
-
}, Symbol.toStringTag, { value: "Module" }));
|
|
828
|
-
export {
|
|
829
|
-
Vo as a,
|
|
830
|
-
Ho as b,
|
|
831
|
-
So as v
|
|
832
|
-
};
|