vue-data-ui 3.25.7 → 3.25.9
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/{BaseScanner-DZvpgOjM.js → BaseScanner-Dzc8VT3j.js} +6 -3
- package/dist/{PackageVersion-UfoQuPMf.js → PackageVersion-KBMdaOXg.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-bump.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-dag.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-geo.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-hill.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-label.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/{package-B-3S5q00.js → package-BL27Ev_h.js} +1 -1
- package/dist/{render-common-CAXK7ycr.js → render-common-By8J0AE-.js} +1 -1
- package/dist/ssr/vue-ui-donut.js +1 -1
- package/dist/ssr/vue-ui-xy.js +1 -1
- package/dist/ssr.js +2 -2
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.ts +2 -0
- package/dist/{useConfig-CIQZ6_r7.js → useConfig-D32D002m.js} +2 -0
- package/dist/{useObjectBindings---mHNfbS.js → useObjectBindings-Cd_WuYIn.js} +1 -1
- package/dist/utils.js +1 -1
- package/dist/{vue-data-ui-DlWT702n.js → vue-data-ui-CBWuUAXT.js} +69 -69
- package/dist/vue-data-ui.js +70 -70
- package/dist/{vue-ui-3d-bar-DbOk2kpM.js → vue-ui-3d-bar-BSbq90H3.js} +3 -3
- package/dist/{vue-ui-accordion-BSmBUjwZ.js → vue-ui-accordion-DmkL8A59.js} +1 -1
- package/dist/{vue-ui-age-pyramid-C7_mGIRk.js → vue-ui-age-pyramid-CrXl71iC.js} +263 -251
- package/dist/{vue-ui-annotator-CTQHAPho.js → vue-ui-annotator-BO5ihHOB.js} +2 -2
- package/dist/{vue-ui-bullet-CDy_dkYz.js → vue-ui-bullet-B2Y3Wqh9.js} +3 -3
- package/dist/{vue-ui-bump-DP24leiD.js → vue-ui-bump-DXvvjG4I.js} +3 -3
- package/dist/{vue-ui-candlestick-kJLmYaR7.js → vue-ui-candlestick-CFqR6W56.js} +453 -441
- package/dist/{vue-ui-carousel-table-BQzAQDw6.js → vue-ui-carousel-table-D-ZkPRta.js} +2 -2
- package/dist/{vue-ui-chestnut-DnnRp3Kl.js → vue-ui-chestnut-CyW3IoYC.js} +3 -3
- package/dist/{vue-ui-chord-DO15ZDCS.js → vue-ui-chord-DS0jni9A.js} +3 -3
- package/dist/{vue-ui-circle-pack-DYTllMPV.js → vue-ui-circle-pack-j2ChgLWr.js} +494 -482
- package/dist/{vue-ui-cursor-CtViSjNp.js → vue-ui-cursor-qOONOtcv.js} +2 -2
- package/dist/{vue-ui-dag-NXtGYzqg.js → vue-ui-dag-CmeFsKhR.js} +3 -3
- package/dist/{vue-ui-dashboard-D3_4QohV.js → vue-ui-dashboard-C7Z5BTN4.js} +65 -65
- package/dist/{vue-ui-digits-CB09pLQx.js → vue-ui-digits-Bf68x6fb.js} +2 -2
- package/dist/{vue-ui-donut-yTE6D8yV.js → vue-ui-donut-CkBPJW_T.js} +837 -825
- package/dist/{vue-ui-donut-eysaEyTy.js → vue-ui-donut-DzDSYgVp.js} +2 -2
- package/dist/{vue-ui-donut-evolution-DhrtxvAd.js → vue-ui-donut-evolution-CDJumo0t.js} +3 -3
- package/dist/{vue-ui-dumbbell-CmGIeULQ.js → vue-ui-dumbbell-Cr__26dN.js} +3 -3
- package/dist/vue-ui-flow-Cz6WRi2c.js +1229 -0
- package/dist/{vue-ui-funnel-CLAii4wi.js → vue-ui-funnel-BlC7KxS6.js} +2 -2
- package/dist/vue-ui-galaxy-Bg2smlcI.js +1097 -0
- package/dist/{vue-ui-gauge-D76-4Z_0.js → vue-ui-gauge-BHsaent1.js} +3 -3
- package/dist/{vue-ui-geo-BQ7-UnuG.js → vue-ui-geo-CE3Cr0or.js} +407 -395
- package/dist/{vue-ui-gizmo-C47zjcs-.js → vue-ui-gizmo-DqFUBEai.js} +3 -3
- package/dist/{vue-ui-heatmap-XJef60IZ.js → vue-ui-heatmap-DXqj9ial.js} +478 -446
- package/dist/{vue-ui-hill-D5BYGPXB.js → vue-ui-hill-B3fPAfhL.js} +2 -2
- package/dist/vue-ui-history-plot-CrnTnpaM.js +1710 -0
- package/dist/{vue-ui-horizontal-bar-BgFHi6_7.js → vue-ui-horizontal-bar-DqvN3imH.js} +432 -420
- package/dist/{vue-ui-kpi-Cb8QJeaj.js → vue-ui-kpi-Mf318HvK.js} +2 -2
- package/dist/{vue-ui-label-ClMQ5Gez.js → vue-ui-label-C1UAzvAu.js} +1 -1
- package/dist/{vue-ui-mini-loader-DtPOVIkK.js → vue-ui-mini-loader-wGeACd-Y.js} +1 -1
- package/dist/{vue-ui-molecule-BzwMl-in.js → vue-ui-molecule-CaLReo4h.js} +346 -334
- package/dist/{vue-ui-mood-radar-BUR_YCcr.js → vue-ui-mood-radar-jkE2ENX5.js} +3 -3
- package/dist/{vue-ui-nested-donuts-BEB4nfsD.js → vue-ui-nested-donuts-BgMOKjil.js} +360 -348
- package/dist/vue-ui-onion-DBN3Ev4j.js +1247 -0
- package/dist/{vue-ui-parallel-coordinate-plot-CSO4johj.js → vue-ui-parallel-coordinate-plot-BcJzEGJ-.js} +387 -375
- package/dist/{vue-ui-quadrant-CKav0I6g.js → vue-ui-quadrant-BvoVlxTI.js} +418 -406
- package/dist/{vue-ui-quick-chart-BAQNS9_2.js → vue-ui-quick-chart-2hn8-F_C.js} +550 -538
- package/dist/{vue-ui-radar-ClPAgf5I.js → vue-ui-radar-O3AjGrc-.js} +330 -318
- package/dist/{vue-ui-rating-CWFMoYpE.js → vue-ui-rating-Criq0ofQ.js} +1 -1
- package/dist/{vue-ui-relation-circle-Da2MhrVe.js → vue-ui-relation-circle-CRnH2ikm.js} +3 -3
- package/dist/{vue-ui-ridgeline-D7gFs8yR.js → vue-ui-ridgeline-Blejn8LY.js} +3 -3
- package/dist/{vue-ui-rings-DkDJ0k5b.js → vue-ui-rings-C1U38Bp0.js} +321 -309
- package/dist/{vue-ui-scatter-yv4JzJID.js → vue-ui-scatter-DTsCc9hg.js} +584 -572
- package/dist/{vue-ui-skeleton-oFnh5zWs.js → vue-ui-skeleton-BPr3u7IL.js} +2 -2
- package/dist/{vue-ui-smiley-DJVusLnp.js → vue-ui-smiley-BIjAIpJ9.js} +1 -1
- package/dist/{vue-ui-spark-trend-IqZWPvSB.js → vue-ui-spark-trend-B7w4Mg8O.js} +3 -3
- package/dist/{vue-ui-sparkbar-_FW47iYj.js → vue-ui-sparkbar-lVDnYEYA.js} +3 -3
- package/dist/{vue-ui-sparkgauge--2vk2Y23.js → vue-ui-sparkgauge-BryoGCoc.js} +3 -3
- package/dist/{vue-ui-sparkhistogram-CFEIPa5n.js → vue-ui-sparkhistogram-BdNoLb9L.js} +3 -3
- package/dist/{vue-ui-sparkline-Cs9CJR6W.js → vue-ui-sparkline-CNFD5K6z.js} +3 -3
- package/dist/vue-ui-sparkstackbar-CZ4tGL-_.js +750 -0
- package/dist/vue-ui-stackbar-DfsgaZy7.js +2369 -0
- package/dist/vue-ui-stackline-Cx7q2sGF.js +2483 -0
- package/dist/vue-ui-strip-plot-BcYhLPHM.js +1752 -0
- package/dist/{vue-ui-table-CiccGbRB.js → vue-ui-table-BzF75YjN.js} +3 -3
- package/dist/{vue-ui-table-heatmap-DnP3pzh2.js → vue-ui-table-heatmap-BSUab4fG.js} +1 -1
- package/dist/{vue-ui-table-sparkline-Bp7RiZh4.js → vue-ui-table-sparkline-B9ICTtoE.js} +2 -2
- package/dist/{vue-ui-thermometer-CawumQKP.js → vue-ui-thermometer-Am7llqdI.js} +3 -3
- package/dist/{vue-ui-timer-CXinMW7q.js → vue-ui-timer-D6EvkM31.js} +2 -2
- package/dist/{vue-ui-tiremarks-BnI2uhki.js → vue-ui-tiremarks-DiQJu8Em.js} +3 -3
- package/dist/{vue-ui-treemap-DTlFbfD6.js → vue-ui-treemap-wUZpijpr.js} +310 -298
- package/dist/vue-ui-waffle-6hO0flDT.js +1633 -0
- package/dist/{vue-ui-wheel-B02tiG0p.js → vue-ui-wheel-DnyCE0CK.js} +3 -3
- package/dist/{vue-ui-word-cloud-BZnCOMHx.js → vue-ui-word-cloud-D_MZ3gCS.js} +385 -372
- package/dist/{vue-ui-world-DO2VZ-T-.js → vue-ui-world-QNGY2WPz.js} +474 -462
- package/dist/{vue-ui-xy-CD6BiP_g.js → vue-ui-xy-BD-ighya.js} +2 -2
- package/dist/{vue-ui-xy-BC9GVdWE.js → vue-ui-xy-Ctcwn7Rk.js} +1447 -1432
- package/dist/{vue-ui-xy-canvas-DANPuyf4.js → vue-ui-xy-canvas-DUeglcdP.js} +523 -511
- package/package.json +1 -1
- package/dist/vue-ui-flow-qYAq3Rmn.js +0 -1217
- package/dist/vue-ui-galaxy-BVX-o2f-.js +0 -1085
- package/dist/vue-ui-history-plot-D-d-1ZiM.js +0 -1698
- package/dist/vue-ui-onion-CG6myK7a.js +0 -1235
- package/dist/vue-ui-sparkstackbar-Cvbue77A.js +0 -738
- package/dist/vue-ui-stackbar-C5ANS2hd.js +0 -2355
- package/dist/vue-ui-stackline-7yajJFW4.js +0 -2469
- package/dist/vue-ui-strip-plot-BT6Eqhup.js +0 -1740
- package/dist/vue-ui-waffle-CjgRkQAp.js +0 -1621
|
@@ -1,26 +1,26 @@
|
|
|
1
1
|
import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
|
|
2
|
-
import { $ as t, Ct as n, D as r, Jt as i, Lt as a, Pt as o, S as s, W as c, X as l, Y as u, Yt as d,
|
|
3
|
-
import { n as
|
|
4
|
-
import { t as
|
|
5
|
-
import { t as
|
|
6
|
-
import { n as
|
|
7
|
-
import { t as
|
|
8
|
-
import { t as
|
|
9
|
-
import { t as
|
|
10
|
-
import { t as
|
|
11
|
-
import { t as
|
|
12
|
-
import { n as
|
|
13
|
-
import { t as
|
|
14
|
-
import { l as
|
|
15
|
-
import { t as
|
|
16
|
-
import { t as
|
|
17
|
-
import { t as
|
|
18
|
-
import { t as
|
|
19
|
-
import { t as
|
|
20
|
-
import { t as
|
|
21
|
-
import { Fragment as _, computed as v, createBlock as y, createCommentVNode as b, createElementBlock as x, createElementVNode as S, createSlots as
|
|
2
|
+
import { $ as t, Ct as n, D as r, Jt as i, Lt as a, Pt as o, S as s, W as c, X as l, Y as u, Yt as d, Z as f, Zt as p, i as m, jt as ee, nt as h, q as g, r as te, t as ne, w as re } from "./lib-Dql7cqyA.js";
|
|
3
|
+
import { n as ie, t as ae } from "./useHints-Dq_w2E8B.js";
|
|
4
|
+
import { t as oe } from "./useConfig-D32D002m.js";
|
|
5
|
+
import { t as se } from "./usePrinter-DISD7q5m.js";
|
|
6
|
+
import { n as ce, t as le } from "./BaseScanner-Dzc8VT3j.js";
|
|
7
|
+
import { t as ue } from "./useNestedProp-Chvyfpl-.js";
|
|
8
|
+
import { t as de } from "./useThemeCheck-C43Tcqmk.js";
|
|
9
|
+
import { t as fe } from "./useChartExport-iwOqiIWX.js";
|
|
10
|
+
import { t as pe } from "./useTransitions-g_zBREk2.js";
|
|
11
|
+
import { t as me } from "./img-DhGApYG0.js";
|
|
12
|
+
import { n as he } from "./Title-CPHi-evi.js";
|
|
13
|
+
import { t as ge } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
14
|
+
import { l as _e, t as ve } from "./useResponsive-ZtArZtUf.js";
|
|
15
|
+
import { t as ye } from "./DefGrad-DVBqDjhO.js";
|
|
16
|
+
import { t as be } from "./A11yDataTable-DdRsVULz.js";
|
|
17
|
+
import { t as xe } from "./useUserOptionState-DK-_1ddE.js";
|
|
18
|
+
import { t as Se } from "./useChartAccessibility-DYqac8yF.js";
|
|
19
|
+
import { t as Ce } from "./usePanZoom-CYU3B4T3.js";
|
|
20
|
+
import { t as we } from "./vue_ui_circle_pack-DZC_rdfn.js";
|
|
21
|
+
import { Fragment as _, computed as v, createBlock as y, createCommentVNode as b, createElementBlock as x, createElementVNode as S, createSlots as Te, createTextVNode as Ee, createVNode as De, defineAsyncComponent as C, guardReactiveProps as w, mergeProps as Oe, nextTick as ke, normalizeClass as T, normalizeProps as E, normalizeStyle as Ae, onBeforeUnmount as je, onMounted as Me, openBlock as D, ref as O, renderList as Ne, renderSlot as k, resolveDynamicComponent as Pe, toDisplayString as A, toRefs as Fe, unref as j, useCssVars as Ie, watch as Le, withCtx as M } from "vue";
|
|
22
22
|
//#region src/packCircles.js
|
|
23
|
-
function
|
|
23
|
+
function Re(e, t = 0) {
|
|
24
24
|
let n = e.reduce((e, { x: n, r }) => Math.min(e, n - r - t), Infinity), r = e.reduce((e, { x: n, r }) => Math.max(e, n + r + t), -Infinity), i = e.reduce((e, { y: n, r }) => Math.min(e, n - r - t), Infinity), a = e.reduce((e, { y: n, r }) => Math.max(e, n + r + t), -Infinity);
|
|
25
25
|
return [
|
|
26
26
|
n,
|
|
@@ -29,30 +29,30 @@ function Le(e, t = 0) {
|
|
|
29
29
|
a - i
|
|
30
30
|
];
|
|
31
31
|
}
|
|
32
|
-
function
|
|
32
|
+
function ze(e, t, n) {
|
|
33
33
|
let r = e._, i = e.next._, a = r.r + i.r, o = (r.x * i.r + i.x * r.r) / a, s = (r.y * i.r + i.y * r.r) / a;
|
|
34
34
|
return Math.max(Math.abs(o * n), Math.abs(s * t));
|
|
35
35
|
}
|
|
36
|
-
function
|
|
37
|
-
let r =
|
|
36
|
+
function Be(e, t, n) {
|
|
37
|
+
let r = ze, i = e.length;
|
|
38
38
|
if (!i) return e;
|
|
39
39
|
e.sort((e, t) => t.r - e.r);
|
|
40
40
|
let a, o, s;
|
|
41
41
|
if (a = e[0], a.x = 0, a.y = 0, !(i > 1)) return e;
|
|
42
42
|
if (o = e[1], a.x = -o.r, o.x = a.r, o.y = 0, !(i > 2)) return He(e, n, t), e;
|
|
43
|
-
|
|
43
|
+
Ve(o, a, s = e[2]), a = new Ye(a), o = new Ye(o), s = new Ye(s), a.next = s.previous = o, o.next = a.previous = s, s.next = o.previous = a;
|
|
44
44
|
packLoop: for (let c = 3; c < i; ++c) {
|
|
45
|
-
|
|
45
|
+
Ve(a._, o._, s = e[c]), s = new Ye(s);
|
|
46
46
|
let i = o.next, l = a.previous, u = o._.r, d = a._.r;
|
|
47
47
|
do
|
|
48
48
|
if (u <= d) {
|
|
49
|
-
if (
|
|
49
|
+
if (N(i._, s._)) {
|
|
50
50
|
o = i, a.next = o, o.previous = a, --c;
|
|
51
51
|
continue packLoop;
|
|
52
52
|
}
|
|
53
53
|
u += i._.r, i = i.next;
|
|
54
54
|
} else {
|
|
55
|
-
if (
|
|
55
|
+
if (N(l._, s._)) {
|
|
56
56
|
a = l, a.next = o, o.previous = a, --c;
|
|
57
57
|
continue packLoop;
|
|
58
58
|
}
|
|
@@ -69,7 +69,7 @@ function ze(e, t, n) {
|
|
|
69
69
|
}
|
|
70
70
|
return He(e, n, t), Ge(e, n, t), e;
|
|
71
71
|
}
|
|
72
|
-
function
|
|
72
|
+
function Ve(e, t, n) {
|
|
73
73
|
let r = e.x - t.x, i = e.y - t.y, a = r * r + i * i;
|
|
74
74
|
if (a) {
|
|
75
75
|
let o = (t.r + n.r) ** 2, s = (e.r + n.r) ** 2;
|
|
@@ -82,7 +82,7 @@ function Be(e, t, n) {
|
|
|
82
82
|
}
|
|
83
83
|
} else n.x = t.x + n.r, n.y = t.y;
|
|
84
84
|
}
|
|
85
|
-
function
|
|
85
|
+
function N(e, t) {
|
|
86
86
|
let n = e.r + t.r - 1e-6, r = t.x - e.x, i = t.y - e.y;
|
|
87
87
|
return n > 0 && n * n > r * r + i * i;
|
|
88
88
|
}
|
|
@@ -103,7 +103,7 @@ function He(e, t, n) {
|
|
|
103
103
|
function Ue(e, t, n, r) {
|
|
104
104
|
let i = e.x, a = e.y;
|
|
105
105
|
e.x = t, e.y = n;
|
|
106
|
-
for (let t of r) if (t !== e &&
|
|
106
|
+
for (let t of r) if (t !== e && N(e, t)) return e.x = i, e.y = a, !1;
|
|
107
107
|
return e.x = i, e.y = a, !0;
|
|
108
108
|
}
|
|
109
109
|
function We(e) {
|
|
@@ -139,7 +139,7 @@ function Ke(e, t, n, r) {
|
|
|
139
139
|
x: o.x,
|
|
140
140
|
y: o.y
|
|
141
141
|
};
|
|
142
|
-
if (!
|
|
142
|
+
if (!P(s, t)) continue;
|
|
143
143
|
let c = Je(s, t, n, r);
|
|
144
144
|
c < a && (a = c, i = o);
|
|
145
145
|
}
|
|
@@ -160,8 +160,8 @@ function qe(e, t, n) {
|
|
|
160
160
|
y: ee - g
|
|
161
161
|
}];
|
|
162
162
|
}
|
|
163
|
-
function
|
|
164
|
-
for (let n of t) if (
|
|
163
|
+
function P(e, t) {
|
|
164
|
+
for (let n of t) if (N(n, e)) return !1;
|
|
165
165
|
return !0;
|
|
166
166
|
}
|
|
167
167
|
function Je(e, t, n, r) {
|
|
@@ -277,7 +277,7 @@ var Ye = class {
|
|
|
277
277
|
}, gt = { style: {
|
|
278
278
|
display: "flex",
|
|
279
279
|
"align-items": "center"
|
|
280
|
-
} }, _t = /*#__PURE__*/
|
|
280
|
+
} }, _t = /*#__PURE__*/ ge({
|
|
281
281
|
__name: "vue-ui-circle-pack",
|
|
282
282
|
props: {
|
|
283
283
|
config: {
|
|
@@ -294,18 +294,18 @@ var Ye = class {
|
|
|
294
294
|
}
|
|
295
295
|
},
|
|
296
296
|
emits: ["selectDatapoint", "copyAlt"],
|
|
297
|
-
setup(e, { expose:
|
|
298
|
-
|
|
299
|
-
let
|
|
297
|
+
setup(e, { expose: ge, emit: ze }) {
|
|
298
|
+
Ie((e) => ({ e036d6dc: fr.value }));
|
|
299
|
+
let Ve = C(() => import("./Tooltip-hhrkQ3Lk.js")), N = C(() => import("./BaseIcon-D8R6_sKH.js").then((e) => e.n)), He = C(() => import("./vue-ui-accordion-DmkL8A59.js").then((e) => e.n)), Ue = C(() => import("./DataTable-oiM9uWrQ.js")), We = C(() => import("./UserOptions-2x4VklMW.js").then((e) => e.n)), Ge = C(() => import("./PenAndPaper-KFzKlvbi.js").then((e) => e.t)), Ke = C(() => import("./PackageVersion-KBMdaOXg.js").then((e) => e.t)), qe = C(() => import("./BaseDraggableDialog-Gm4Q30j0.js").then((e) => e.n)), P = e, Je = ze, { vue_ui_circle_pack: Ye } = oe(), { isThemeValid: Xe, warnInvalidTheme: _t } = de(), vt = v(() => !!P.dataset && P.dataset.length), F = O(g()), I = O(null), yt = O(null), bt = O(null), xt = O(0), St = O(0), Ct = O(0), wt = O(null), L = O(null), Tt = O(null), Et = O(!1), Dt = O(""), R = O(null), z = O(null), Ot = O({
|
|
300
300
|
x: 0,
|
|
301
301
|
y: 0
|
|
302
|
-
}), kt = O("pointer"), At = O(!1),
|
|
303
|
-
|
|
304
|
-
config: () =>
|
|
305
|
-
dataset: () =>
|
|
302
|
+
}), kt = O("pointer"), At = O(!1), B = O(Rt()), V = v(() => B.value.style.chart.circles.labels), H = v(() => B.value.style.chart.circles), U = v(() => B.value.style.chart);
|
|
303
|
+
ie({
|
|
304
|
+
config: () => B.value,
|
|
305
|
+
dataset: () => P.dataset,
|
|
306
306
|
component: "VueUiCirclePack",
|
|
307
307
|
rules: [
|
|
308
|
-
|
|
308
|
+
ae.emptyArray,
|
|
309
309
|
{
|
|
310
310
|
test: (e) => e.length === 1 && (!e[0].children || e[0]?.children.length === 0),
|
|
311
311
|
message: [
|
|
@@ -324,10 +324,10 @@ var Ye = class {
|
|
|
324
324
|
}
|
|
325
325
|
]
|
|
326
326
|
});
|
|
327
|
-
let { transitionEnabled:
|
|
328
|
-
config: () =>
|
|
329
|
-
dataset: () =>
|
|
330
|
-
}),
|
|
327
|
+
let { transitionEnabled: W } = pe({
|
|
328
|
+
config: () => B.value.transitions,
|
|
329
|
+
dataset: () => P.dataset
|
|
330
|
+
}), jt = v(() => B.value.userOptions.useCursorPointer), Mt = v(() => p({
|
|
331
331
|
defaultConfig: {
|
|
332
332
|
userOptions: { show: !1 },
|
|
333
333
|
table: { show: !1 },
|
|
@@ -342,12 +342,12 @@ var Ye = class {
|
|
|
342
342
|
}
|
|
343
343
|
} }
|
|
344
344
|
},
|
|
345
|
-
userConfig:
|
|
346
|
-
})), { loading:
|
|
347
|
-
...
|
|
348
|
-
FINAL_CONFIG:
|
|
349
|
-
prepareConfig:
|
|
350
|
-
skeletonDataset:
|
|
345
|
+
userConfig: B.value.skeletonConfig ?? {}
|
|
346
|
+
})), { loading: Nt, FINAL_DATASET: Pt } = ce({
|
|
347
|
+
...Fe(P),
|
|
348
|
+
FINAL_CONFIG: B,
|
|
349
|
+
prepareConfig: Rt,
|
|
350
|
+
skeletonDataset: P.config?.skeletonDataset ?? [
|
|
351
351
|
{
|
|
352
352
|
name: "_",
|
|
353
353
|
value: 13,
|
|
@@ -379,23 +379,23 @@ var Ye = class {
|
|
|
379
379
|
color: "#696969"
|
|
380
380
|
}
|
|
381
381
|
],
|
|
382
|
-
skeletonConfig:
|
|
383
|
-
defaultConfig:
|
|
384
|
-
userConfig:
|
|
382
|
+
skeletonConfig: p({
|
|
383
|
+
defaultConfig: B.value,
|
|
384
|
+
userConfig: Mt.value
|
|
385
385
|
})
|
|
386
|
-
}), { svgRef: G } =
|
|
387
|
-
function
|
|
388
|
-
let e =
|
|
389
|
-
userConfig:
|
|
386
|
+
}), { svgRef: G } = Se({ config: U.value.title }), { userOptionsVisible: Ft, setUserOptionsVisibility: It, keepUserOptionState: Lt } = xe({ config: B.value });
|
|
387
|
+
function Rt() {
|
|
388
|
+
let e = ue({
|
|
389
|
+
userConfig: P.config,
|
|
390
390
|
defaultConfig: Ye
|
|
391
391
|
}), t = e.theme;
|
|
392
392
|
if (!t) return e;
|
|
393
393
|
if (!Xe.value(e)) return _t(e), e;
|
|
394
|
-
let n =
|
|
395
|
-
userConfig:
|
|
394
|
+
let n = ue({
|
|
395
|
+
userConfig: we[t] || P.config,
|
|
396
396
|
defaultConfig: e
|
|
397
|
-
}), r =
|
|
398
|
-
userConfig:
|
|
397
|
+
}), r = ue({
|
|
398
|
+
userConfig: P.config,
|
|
399
399
|
defaultConfig: n
|
|
400
400
|
});
|
|
401
401
|
return {
|
|
@@ -403,51 +403,63 @@ var Ye = class {
|
|
|
403
403
|
customPalette: r.customPalette.length ? r.customPalette : d[t] || a
|
|
404
404
|
};
|
|
405
405
|
}
|
|
406
|
-
|
|
407
|
-
|
|
406
|
+
function zt(e) {
|
|
407
|
+
let t = f(e);
|
|
408
|
+
return t?.style?.chart && delete t.style.chart.tooltip, JSON.stringify(t);
|
|
409
|
+
}
|
|
410
|
+
let Bt = zt(P.config);
|
|
411
|
+
Le(() => P.config, (e, t) => {
|
|
412
|
+
let n = zt(e), r = n !== Bt;
|
|
413
|
+
Bt = n;
|
|
414
|
+
let i = Rt();
|
|
415
|
+
if (!r) {
|
|
416
|
+
B.value.style.chart.tooltip = i.style.chart.tooltip, K.value.showTooltip = B.value.style.chart.tooltip.show;
|
|
417
|
+
return;
|
|
418
|
+
}
|
|
419
|
+
B.value = i, Ft.value = !B.value.userOptions.showOnChartHover, un(), xt.value += 1, St.value += 1, K.value.showTable = B.value.table.show, K.value.showTooltip = U.value.tooltip.show, K.value.showZoom = U.value.zoom?.show ?? !1;
|
|
408
420
|
}, { deep: !0 });
|
|
409
|
-
let { isPrinting:
|
|
410
|
-
elementId: `vue-ui-circle-pack_${
|
|
411
|
-
fileName:
|
|
412
|
-
options:
|
|
413
|
-
}),
|
|
414
|
-
showTable:
|
|
415
|
-
showTooltip:
|
|
416
|
-
showZoom:
|
|
421
|
+
let { isPrinting: Vt, isImaging: Ht, generatePdf: Ut, generateImage: Wt } = se({
|
|
422
|
+
elementId: `vue-ui-circle-pack_${F.value}`,
|
|
423
|
+
fileName: U.value.title.text || "vue-ui-circle-pack",
|
|
424
|
+
options: B.value.userOptions.print
|
|
425
|
+
}), Gt = v(() => B.value.userOptions.show && !U.value.title.text), K = O({
|
|
426
|
+
showTable: B.value.table.show,
|
|
427
|
+
showTooltip: U.value.tooltip.show,
|
|
428
|
+
showZoom: U.value.zoom?.show ?? !1
|
|
417
429
|
});
|
|
418
|
-
|
|
430
|
+
Le(B, () => {
|
|
419
431
|
K.value = {
|
|
420
|
-
showTable:
|
|
421
|
-
showTooltip:
|
|
422
|
-
showZoom:
|
|
432
|
+
showTable: B.value.table.show,
|
|
433
|
+
showTooltip: U.value.tooltip.show,
|
|
434
|
+
showZoom: U.value.zoom?.show ?? !1
|
|
423
435
|
};
|
|
424
436
|
}, { immediate: !0 });
|
|
425
437
|
let q = O({
|
|
426
438
|
h: 10,
|
|
427
439
|
w: 10
|
|
428
|
-
}),
|
|
440
|
+
}), Kt = O([
|
|
429
441
|
0,
|
|
430
442
|
0,
|
|
431
443
|
100,
|
|
432
444
|
100
|
|
433
|
-
]),
|
|
445
|
+
]), qt = O({
|
|
434
446
|
x: 0,
|
|
435
447
|
y: 0,
|
|
436
448
|
width: 100,
|
|
437
449
|
height: 100
|
|
438
|
-
}),
|
|
439
|
-
let e =
|
|
450
|
+
}), Jt = v(() => B.value.debug), Yt = v(() => {
|
|
451
|
+
let e = B.value.style?.chart || {};
|
|
440
452
|
return e.dimensions && typeof e.dimensions.width == "number" ? e.dimensions.width : typeof e.width == "number" ? e.width : 300;
|
|
441
|
-
}),
|
|
442
|
-
let e =
|
|
453
|
+
}), Xt = v(() => {
|
|
454
|
+
let e = B.value.style?.chart || {};
|
|
443
455
|
return e.dimensions && typeof e.dimensions.height == "number" ? e.dimensions.height : typeof e.height == "number" ? e.height : 300;
|
|
444
456
|
}), J = O([]), Y = O([]), X = O(null), Z = O(null);
|
|
445
|
-
function
|
|
457
|
+
function Zt(e, t) {
|
|
446
458
|
q.value = {
|
|
447
459
|
w: e,
|
|
448
460
|
h: t
|
|
449
461
|
};
|
|
450
|
-
let n =
|
|
462
|
+
let n = fn.value.map(Qt);
|
|
451
463
|
if (!n.length) {
|
|
452
464
|
let n = {
|
|
453
465
|
x: 0,
|
|
@@ -455,56 +467,56 @@ var Ye = class {
|
|
|
455
467
|
width: e,
|
|
456
468
|
height: t
|
|
457
469
|
};
|
|
458
|
-
J.value = [], Y.value = [],
|
|
470
|
+
J.value = [], Y.value = [], Kt.value = [
|
|
459
471
|
n.x,
|
|
460
472
|
n.y,
|
|
461
473
|
n.width,
|
|
462
474
|
n.height
|
|
463
|
-
],
|
|
475
|
+
], qt.value = { ...n }, On(n);
|
|
464
476
|
return;
|
|
465
477
|
}
|
|
466
|
-
let r =
|
|
478
|
+
let r = Be(n, t, e), [i, a, o, s] = Re(r, 1), c = Math.min(o ? e / o : 1, s ? t / s : 1), l = (e - o * c) / 2, u = (t - s * c) / 2, d = r.map((e) => ({
|
|
467
479
|
...e,
|
|
468
480
|
x: (e.x - i) * c + l,
|
|
469
481
|
y: (e.y - a) * c + u,
|
|
470
482
|
r: e.r * c
|
|
471
483
|
}));
|
|
472
|
-
J.value =
|
|
473
|
-
let f =
|
|
484
|
+
J.value = an(d), Y.value = J.value;
|
|
485
|
+
let f = zn({
|
|
474
486
|
x: 0,
|
|
475
487
|
y: 0,
|
|
476
488
|
width: e,
|
|
477
489
|
height: t
|
|
478
490
|
});
|
|
479
|
-
|
|
491
|
+
Kt.value = [
|
|
480
492
|
f.x,
|
|
481
493
|
f.y,
|
|
482
494
|
f.width,
|
|
483
495
|
f.height
|
|
484
|
-
],
|
|
496
|
+
], qt.value = { ...f }, On(f);
|
|
485
497
|
}
|
|
486
|
-
function
|
|
498
|
+
function Qt(e) {
|
|
487
499
|
return {
|
|
488
500
|
...e,
|
|
489
|
-
children: Array.isArray(e.children) ? e.children.map(
|
|
501
|
+
children: Array.isArray(e.children) ? e.children.map(Qt) : []
|
|
490
502
|
};
|
|
491
503
|
}
|
|
492
|
-
function
|
|
504
|
+
function $t(e) {
|
|
493
505
|
let t = Number(e?.value);
|
|
494
|
-
return Number.isFinite(t) && t > 0 ? t : Array.isArray(e?.children) ? e.children.reduce((e, t) => e +
|
|
506
|
+
return Number.isFinite(t) && t > 0 ? t : Array.isArray(e?.children) ? e.children.reduce((e, t) => e + $t(t), 0) : 0;
|
|
495
507
|
}
|
|
496
|
-
function
|
|
497
|
-
let n = d[
|
|
508
|
+
function en(e, t) {
|
|
509
|
+
let n = d[B.value.theme || "default"] || a, r = dn.value.length ? dn.value : n.length ? n : a;
|
|
498
510
|
return s(e.color) || r[t % r.length] || a[t % a.length];
|
|
499
511
|
}
|
|
500
|
-
function
|
|
501
|
-
return !Array.isArray(e.children) || !e.children.length ? 1 : e.children.reduce((e, t) => e +
|
|
512
|
+
function tn(e) {
|
|
513
|
+
return !Array.isArray(e.children) || !e.children.length ? 1 : e.children.reduce((e, t) => e + tn(t), 0);
|
|
502
514
|
}
|
|
503
|
-
function
|
|
515
|
+
function nn(e, t = null, n = 0, r = []) {
|
|
504
516
|
return Array.isArray(e) ? e.map((e, i) => {
|
|
505
|
-
let a =
|
|
517
|
+
let a = $t(e);
|
|
506
518
|
if (!Number.isFinite(a) || a <= 0) return null;
|
|
507
|
-
let o =
|
|
519
|
+
let o = g(), c = [...r, i], l = c.reduce((e, t, n) => e + t + n, 0), u = e.color || t?.color ? s(e.color || t?.color) : en(e, l), d = nn(e.children, {
|
|
508
520
|
id: o,
|
|
509
521
|
name: e.name,
|
|
510
522
|
color: u,
|
|
@@ -522,17 +534,17 @@ var Ye = class {
|
|
|
522
534
|
rootId: t?.rootId ?? o,
|
|
523
535
|
hasChildren: d.length > 0,
|
|
524
536
|
childCount: d.length,
|
|
525
|
-
leafCount: d.length ?
|
|
537
|
+
leafCount: d.length ? tn({ children: d }) : 1,
|
|
526
538
|
hierarchyPath: c,
|
|
527
539
|
children: d
|
|
528
540
|
};
|
|
529
541
|
}).filter(Boolean) : [];
|
|
530
542
|
}
|
|
531
|
-
function
|
|
543
|
+
function rn(e) {
|
|
532
544
|
if (!Array.isArray(e.children) || !e.children.length) return [];
|
|
533
545
|
let t = e.r * 2;
|
|
534
546
|
if (!t) return [];
|
|
535
|
-
let n =
|
|
547
|
+
let n = Be(e.children.map(Qt), t, t), [r, i, a, o] = Re(n, 1), s = Math.min(a ? t / a : 1, o ? t / o : 1) * .9, c = a * s, l = o * s, u = e.x - c / 2, d = e.y - l / 2;
|
|
536
548
|
return n.map((e) => ({
|
|
537
549
|
...e,
|
|
538
550
|
x: (e.x - r) * s + u,
|
|
@@ -540,146 +552,146 @@ var Ye = class {
|
|
|
540
552
|
r: e.r * s
|
|
541
553
|
}));
|
|
542
554
|
}
|
|
543
|
-
function
|
|
555
|
+
function an(e) {
|
|
544
556
|
let t = [];
|
|
545
557
|
return e.forEach((e) => {
|
|
546
|
-
let n =
|
|
558
|
+
let n = rn(e);
|
|
547
559
|
t.push({
|
|
548
560
|
...e,
|
|
549
561
|
children: n
|
|
550
|
-
}), t.push(...
|
|
562
|
+
}), t.push(...an(n));
|
|
551
563
|
}), t;
|
|
552
564
|
}
|
|
553
|
-
function
|
|
565
|
+
function on(e, t) {
|
|
554
566
|
return !e || !t || !Array.isArray(e.hierarchyPath) || !Array.isArray(t.hierarchyPath) || e.hierarchyPath.length <= t.hierarchyPath.length ? !1 : t.hierarchyPath.every((t, n) => e.hierarchyPath[n] === t);
|
|
555
567
|
}
|
|
556
|
-
function
|
|
557
|
-
return e.hasChildren ?
|
|
568
|
+
function sn(e) {
|
|
569
|
+
return e.hasChildren ? V.value.parents.show : V.value.children.show;
|
|
558
570
|
}
|
|
559
|
-
function
|
|
560
|
-
if (!
|
|
561
|
-
let e =
|
|
562
|
-
let { width: e, height: t } =
|
|
563
|
-
chart:
|
|
564
|
-
title:
|
|
571
|
+
function cn() {
|
|
572
|
+
if (!B.value.responsive || !I.value) return;
|
|
573
|
+
let e = _e(() => {
|
|
574
|
+
let { width: e, height: t } = ve({
|
|
575
|
+
chart: I.value,
|
|
576
|
+
title: U.value.title.text ? yt.value : null,
|
|
565
577
|
legend: null,
|
|
566
578
|
source: wt.value,
|
|
567
579
|
noTitle: bt.value
|
|
568
580
|
});
|
|
569
581
|
requestAnimationFrame(() => {
|
|
570
|
-
!e || !t || (G.value && (G.value.setAttribute("width", e), G.value.setAttribute("height", t)),
|
|
582
|
+
!e || !t || (G.value && (G.value.setAttribute("width", e), G.value.setAttribute("height", t)), Zt(e, t));
|
|
571
583
|
});
|
|
572
584
|
});
|
|
573
|
-
X.value && (Z.value && X.value.unobserve(Z.value), X.value.disconnect()), X.value = new ResizeObserver(e), Z.value =
|
|
585
|
+
X.value && (Z.value && X.value.unobserve(Z.value), X.value.disconnect()), X.value = new ResizeObserver(e), Z.value = I.value.parentNode || I.value, Z.value && X.value.observe(Z.value), e();
|
|
574
586
|
}
|
|
575
|
-
function
|
|
587
|
+
function ln() {
|
|
576
588
|
X.value && (Z.value && X.value.unobserve(Z.value), X.value.disconnect(), X.value = null, Z.value = null);
|
|
577
589
|
}
|
|
578
|
-
async function
|
|
579
|
-
o(
|
|
590
|
+
async function un() {
|
|
591
|
+
o(P.dataset) && h({
|
|
580
592
|
componentName: "VueUiCirclePack",
|
|
581
593
|
type: "dataset",
|
|
582
|
-
debug:
|
|
594
|
+
debug: Jt.value
|
|
583
595
|
});
|
|
584
|
-
let e =
|
|
585
|
-
|
|
596
|
+
let e = Yt.value, t = Xt.value;
|
|
597
|
+
Zt(e, t), B.value.responsive ? cn() : ln();
|
|
586
598
|
}
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
}),
|
|
590
|
-
await
|
|
599
|
+
Me(un), je(() => {
|
|
600
|
+
ln();
|
|
601
|
+
}), Le(() => Pt.value, async (e) => {
|
|
602
|
+
await un();
|
|
591
603
|
}, { deep: !0 });
|
|
592
|
-
let
|
|
593
|
-
function
|
|
594
|
-
return
|
|
604
|
+
let dn = v(() => re(B.value.customPalette)), fn = v(() => nn(Pt.value)), pn = v(() => J.value.length ? Math.max(...J.value.map((e) => e.r)) : 0);
|
|
605
|
+
function mn(e, t) {
|
|
606
|
+
return pn.value ? t / pn.value * e : 0;
|
|
595
607
|
}
|
|
596
|
-
function
|
|
597
|
-
|
|
608
|
+
function hn(e, t) {
|
|
609
|
+
B.value.events.datapointLeave && B.value.events.datapointLeave({
|
|
598
610
|
datapoint: e,
|
|
599
611
|
seriesIndex: t
|
|
600
|
-
}), (kt.value !== "keyboard" ||
|
|
612
|
+
}), (kt.value !== "keyboard" || R.value?.id !== e?.id) && (Et.value = !1, R.value = null, z.value = null, kt.value = "pointer");
|
|
601
613
|
}
|
|
602
|
-
function
|
|
603
|
-
Je("selectDatapoint", e),
|
|
614
|
+
function gn(e, t) {
|
|
615
|
+
Je("selectDatapoint", e), B.value.events.datapointClick && B.value.events.datapointClick({
|
|
604
616
|
datapoint: e,
|
|
605
617
|
seriesIndex: t
|
|
606
618
|
});
|
|
607
619
|
}
|
|
608
|
-
let
|
|
609
|
-
function
|
|
610
|
-
|
|
620
|
+
let _n = O(null), vn = O(!1);
|
|
621
|
+
function yn(e, t, r = "pointer") {
|
|
622
|
+
R.value = e, z.value = t, kt.value = r, B.value.events.datapointEnter && B.value.events.datapointEnter({
|
|
611
623
|
datapoint: e,
|
|
612
624
|
seriesIndex: t
|
|
613
|
-
}),
|
|
625
|
+
}), _n.value = {
|
|
614
626
|
datapoint: e,
|
|
615
627
|
seriesIndex: t,
|
|
616
|
-
config:
|
|
628
|
+
config: B.value,
|
|
617
629
|
series: Y.value
|
|
618
630
|
}, Et.value = !0;
|
|
619
|
-
let i =
|
|
620
|
-
if (
|
|
631
|
+
let i = U.value.tooltip.customFormat;
|
|
632
|
+
if (vn.value = !1, n(i)) try {
|
|
621
633
|
let n = i({
|
|
622
634
|
seriesIndex: t,
|
|
623
635
|
datapoint: e,
|
|
624
636
|
series: Y.value,
|
|
625
|
-
config:
|
|
637
|
+
config: B.value
|
|
626
638
|
});
|
|
627
|
-
typeof n == "string" && (Dt.value = n,
|
|
639
|
+
typeof n == "string" && (Dt.value = n, vn.value = !0);
|
|
628
640
|
} catch {
|
|
629
|
-
console.warn("Custom format cannot be applied."),
|
|
641
|
+
console.warn("Custom format cannot be applied."), vn.value = !1;
|
|
630
642
|
}
|
|
631
|
-
if (!
|
|
643
|
+
if (!vn.value) {
|
|
632
644
|
let t = "";
|
|
633
645
|
t += `
|
|
634
646
|
<div style="display:flex;align-items:center;gap:4px;">
|
|
635
|
-
<svg viewBox="0 0 10 10" height="${
|
|
647
|
+
<svg viewBox="0 0 10 10" height="${U.value.tooltip.fontSize}" width="${U.value.tooltip.fontSize}">
|
|
636
648
|
<circle
|
|
637
649
|
cx="5"
|
|
638
650
|
cy="5"
|
|
639
651
|
r="5"
|
|
640
|
-
fill="${
|
|
652
|
+
fill="${H.value.gradient.show ? `url(#${e.id})` : e.color}"
|
|
641
653
|
/>
|
|
642
654
|
</svg>
|
|
643
|
-
<span>${e.name}: <b>${
|
|
655
|
+
<span>${e.name}: <b>${bn(e)}</b></span>
|
|
644
656
|
</div>
|
|
645
657
|
`, Dt.value = t;
|
|
646
658
|
}
|
|
647
659
|
}
|
|
648
|
-
function
|
|
649
|
-
return
|
|
650
|
-
p:
|
|
660
|
+
function bn(e) {
|
|
661
|
+
return m(V.value.value.formatter, e.value, l({
|
|
662
|
+
p: V.value.value.prefix,
|
|
651
663
|
v: e.value,
|
|
652
|
-
s:
|
|
653
|
-
r:
|
|
664
|
+
s: V.value.value.suffix,
|
|
665
|
+
r: V.value.value.rounding
|
|
654
666
|
}));
|
|
655
667
|
}
|
|
656
|
-
function
|
|
668
|
+
function xn(e) {
|
|
657
669
|
if (!e) return 0;
|
|
658
|
-
let t =
|
|
670
|
+
let t = bn(e), n = e.r / (t.length || 1) * (t.length === 1 ? 1 : 2);
|
|
659
671
|
return Math.min(e.r / 2.5, n);
|
|
660
672
|
}
|
|
661
673
|
let Q = O(!1);
|
|
662
|
-
function
|
|
674
|
+
function Sn(e) {
|
|
663
675
|
Q.value = e, Ct.value += 1;
|
|
664
676
|
}
|
|
665
|
-
let
|
|
666
|
-
function
|
|
667
|
-
|
|
677
|
+
let Cn = O(!1);
|
|
678
|
+
function wn() {
|
|
679
|
+
Cn.value = !Cn.value;
|
|
668
680
|
}
|
|
669
|
-
let
|
|
681
|
+
let Tn = v(() => !Cn.value && K.value.showZoom), { viewBox: $, resetZoom: En, isZoom: Dn, setInitialViewBox: On } = Ce(G, {
|
|
670
682
|
x: 0,
|
|
671
683
|
y: 0,
|
|
672
684
|
width: Math.max(10, q.value.w),
|
|
673
685
|
height: Math.max(10, q.value.h)
|
|
674
|
-
},
|
|
675
|
-
function
|
|
686
|
+
}, U.value.zoom?.speed ?? 1, Tn);
|
|
687
|
+
function kn(e, t, n = 0) {
|
|
676
688
|
return !(e.x + e.width + n < t.x || t.x + t.width + n < e.x || e.y + e.height + n < t.y || t.y + t.height + n < e.y);
|
|
677
689
|
}
|
|
678
|
-
function
|
|
690
|
+
function An(e, t, n = 0) {
|
|
679
691
|
let r = Math.min(Math.max(t.x, e.x - n), e.x + e.width + n), i = Math.min(Math.max(t.y, e.y - n), e.y + e.height + n), a = t.x - r, o = t.y - i;
|
|
680
692
|
return a * a + o * o <= t.r * t.r;
|
|
681
693
|
}
|
|
682
|
-
function
|
|
694
|
+
function jn(e, t, n = 1) {
|
|
683
695
|
let r = Math.max(4 * n, Math.min(t.width, t.height) * .01);
|
|
684
696
|
return {
|
|
685
697
|
...e,
|
|
@@ -687,11 +699,11 @@ var Ye = class {
|
|
|
687
699
|
y: Math.min(Math.max(e.y, t.y + r), t.y + t.height - e.height - r)
|
|
688
700
|
};
|
|
689
701
|
}
|
|
690
|
-
function
|
|
702
|
+
function Mn(e) {
|
|
691
703
|
let t = [e.name];
|
|
692
|
-
return
|
|
704
|
+
return V.value.value.show && t.push(bn(e)), t.filter(Boolean);
|
|
693
705
|
}
|
|
694
|
-
function
|
|
706
|
+
function Nn(e, t, n, r, i) {
|
|
695
707
|
let a = e.x, o = e.y;
|
|
696
708
|
return {
|
|
697
709
|
right: {
|
|
@@ -744,12 +756,12 @@ var Ye = class {
|
|
|
744
756
|
}
|
|
745
757
|
}[r];
|
|
746
758
|
}
|
|
747
|
-
function
|
|
759
|
+
function Pn(e, t) {
|
|
748
760
|
let n = [], r = t.get(e.parentId);
|
|
749
761
|
for (; r;) n.push(r), r = t.get(r.parentId);
|
|
750
762
|
return n;
|
|
751
763
|
}
|
|
752
|
-
function
|
|
764
|
+
function Fn(e, t, n, r, i, a) {
|
|
753
765
|
let o = e.x, s = e.y, c = t || e, l = a * .6, u = {
|
|
754
766
|
right: {
|
|
755
767
|
x: c.x + c.r + a,
|
|
@@ -790,10 +802,10 @@ var Ye = class {
|
|
|
790
802
|
anchorY: s + Math.sin(p) * e.r
|
|
791
803
|
};
|
|
792
804
|
}
|
|
793
|
-
function
|
|
805
|
+
function In(e, t = {}) {
|
|
794
806
|
let { clamp: n = !0, scale: r = 1 } = t;
|
|
795
|
-
if (!J.value.length || !q.value.w || !q.value.h || !
|
|
796
|
-
let i = Math.max(8,
|
|
807
|
+
if (!J.value.length || !q.value.w || !q.value.h || !U.value.parentTooltips.show) return [];
|
|
808
|
+
let i = Math.max(8, U.value.parentTooltips.fontSizeRatio * 10) * r, a = i * 1.25, o = i * .75, s = i * .55, c = Math.max(8 * r, Math.min(e.width, e.height) * .025), l = Math.max(2 * r, Math.min(e.width, e.height) * .006), u = [
|
|
797
809
|
"right",
|
|
798
810
|
"left",
|
|
799
811
|
"top",
|
|
@@ -804,8 +816,8 @@ var Ye = class {
|
|
|
804
816
|
"bottomLeft"
|
|
805
817
|
], d = [], f = new Map(J.value.map((e) => [e.id, e]));
|
|
806
818
|
return J.value.filter((e) => e.hasChildren && e.name).sort((e, t) => t.r - e.r).forEach((t) => {
|
|
807
|
-
let p =
|
|
808
|
-
let i = n ?
|
|
819
|
+
let p = Pn(t, f).at(-1), m = Mn(t), ee = m.reduce((e, t) => Math.max(e, String(t).length), 0), h = Math.max(i * 5, ee * i * .62 + o * 2), g = m.length * a + s * 2, te = p ? u.map((e) => Fn(t, p, h, g, e, c)) : [], ne = u.map((e) => Nn(t, h, g, e, c)), re = [...te, ...ne].map((t) => {
|
|
820
|
+
let i = n ? jn({
|
|
809
821
|
x: t.x,
|
|
810
822
|
y: t.y,
|
|
811
823
|
width: h,
|
|
@@ -823,7 +835,7 @@ var Ye = class {
|
|
|
823
835
|
lineX: i.x + i.width / 2,
|
|
824
836
|
lineY: i.y + i.height / 2
|
|
825
837
|
};
|
|
826
|
-
}).find((e) => !d.some((t) =>
|
|
838
|
+
}).find((e) => !d.some((t) => kn(e, t, l)) && !J.value.some((t) => An(e, t, l)));
|
|
827
839
|
re && d.push({
|
|
828
840
|
...re,
|
|
829
841
|
datapoint: t,
|
|
@@ -838,18 +850,18 @@ var Ye = class {
|
|
|
838
850
|
});
|
|
839
851
|
}), d;
|
|
840
852
|
}
|
|
841
|
-
function
|
|
842
|
-
let t =
|
|
853
|
+
function Ln(e) {
|
|
854
|
+
let t = qt.value;
|
|
843
855
|
if (!t.width || !t.height || !e.width || !e.height) return 1;
|
|
844
856
|
let n = Math.min(e.width / t.width, e.height / t.height);
|
|
845
857
|
return Number.isFinite(n) && n > 0 ? n : 1;
|
|
846
858
|
}
|
|
847
|
-
let
|
|
859
|
+
let Rn = v(() => In($.value, {
|
|
848
860
|
clamp: !0,
|
|
849
|
-
scale:
|
|
861
|
+
scale: Ln($.value)
|
|
850
862
|
}));
|
|
851
|
-
function
|
|
852
|
-
let t =
|
|
863
|
+
function zn(e) {
|
|
864
|
+
let t = In(e, { clamp: !1 });
|
|
853
865
|
if (!t.length) return e;
|
|
854
866
|
let n = Math.min(e.x, ...t.map((e) => e.x)), r = Math.min(e.y, ...t.map((e) => e.y)), i = Math.max(e.x + e.width, ...t.map((e) => e.x + e.width)), a = Math.max(e.y + e.height, ...t.map((e) => e.y + e.height)), o = Math.max(8, Math.min(e.width, e.height) * .025);
|
|
855
867
|
return {
|
|
@@ -859,7 +871,7 @@ var Ye = class {
|
|
|
859
871
|
height: a - r + o * 2
|
|
860
872
|
};
|
|
861
873
|
}
|
|
862
|
-
function
|
|
874
|
+
function Bn(e) {
|
|
863
875
|
let t = [];
|
|
864
876
|
function n(e, r = 0, i = "") {
|
|
865
877
|
e.forEach((e) => {
|
|
@@ -874,8 +886,8 @@ var Ye = class {
|
|
|
874
886
|
}
|
|
875
887
|
return n(e), t;
|
|
876
888
|
}
|
|
877
|
-
let
|
|
878
|
-
let e =
|
|
889
|
+
let Vn = v(() => {
|
|
890
|
+
let e = Bn(fn.value);
|
|
879
891
|
return {
|
|
880
892
|
head: Y.value.map((e) => ({
|
|
881
893
|
name: e.name,
|
|
@@ -885,45 +897,45 @@ var Ye = class {
|
|
|
885
897
|
body: e.map((e) => e.value),
|
|
886
898
|
hierarchy: e
|
|
887
899
|
};
|
|
888
|
-
}),
|
|
900
|
+
}), Hn = v(() => Bn(fn.value).map((e) => ({
|
|
889
901
|
...e,
|
|
890
902
|
name: `${"- ".repeat(e.depth)}${e.name}`
|
|
891
903
|
})));
|
|
892
|
-
function
|
|
893
|
-
|
|
894
|
-
let n =
|
|
904
|
+
function Un(e = null) {
|
|
905
|
+
ke(() => {
|
|
906
|
+
let n = Hn.value.map((e) => [
|
|
895
907
|
[e.name],
|
|
896
908
|
[e.parentName || ""],
|
|
897
909
|
[e.depth],
|
|
898
910
|
[e.value]
|
|
899
911
|
]), i = [
|
|
900
|
-
[
|
|
901
|
-
[
|
|
912
|
+
[U.value.title.text],
|
|
913
|
+
[U.value.title.subtitle.text],
|
|
902
914
|
[
|
|
903
|
-
[
|
|
915
|
+
[B.value.table.columnNames.datapoint],
|
|
904
916
|
["Parent"],
|
|
905
917
|
["Depth"],
|
|
906
|
-
[
|
|
918
|
+
[B.value.table.columnNames.value]
|
|
907
919
|
]
|
|
908
920
|
].concat(n), a = r(i);
|
|
909
921
|
e ? e(a) : t({
|
|
910
922
|
csvContent: a,
|
|
911
|
-
title:
|
|
923
|
+
title: U.value.title.text || "vue-ui-circle-pack"
|
|
912
924
|
});
|
|
913
925
|
});
|
|
914
926
|
}
|
|
915
|
-
let
|
|
927
|
+
let Wn = v(() => {
|
|
916
928
|
let e = [
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
], t =
|
|
929
|
+
B.value.table.columnNames.datapoint,
|
|
930
|
+
B.value.table.columnNames.parent,
|
|
931
|
+
B.value.table.columnNames.depth,
|
|
932
|
+
B.value.table.columnNames.value
|
|
933
|
+
], t = Vn.value.hierarchy.map((e) => {
|
|
922
934
|
let t = l({
|
|
923
|
-
p:
|
|
935
|
+
p: V.value.value.prefix,
|
|
924
936
|
v: e.value,
|
|
925
|
-
s:
|
|
926
|
-
r:
|
|
937
|
+
s: V.value.value.suffix,
|
|
938
|
+
r: V.value.value.rounding
|
|
927
939
|
});
|
|
928
940
|
return [
|
|
929
941
|
{
|
|
@@ -936,45 +948,45 @@ var Ye = class {
|
|
|
936
948
|
];
|
|
937
949
|
}), n = {
|
|
938
950
|
th: {
|
|
939
|
-
backgroundColor:
|
|
940
|
-
color:
|
|
941
|
-
outline:
|
|
951
|
+
backgroundColor: B.value.table.th.backgroundColor,
|
|
952
|
+
color: B.value.table.th.color,
|
|
953
|
+
outline: B.value.table.th.outline
|
|
942
954
|
},
|
|
943
955
|
td: {
|
|
944
|
-
backgroundColor:
|
|
945
|
-
color:
|
|
946
|
-
outline:
|
|
956
|
+
backgroundColor: B.value.table.td.backgroundColor,
|
|
957
|
+
color: B.value.table.td.color,
|
|
958
|
+
outline: B.value.table.td.outline
|
|
947
959
|
},
|
|
948
|
-
breakpoint:
|
|
960
|
+
breakpoint: B.value.table.responsiveBreakpoint
|
|
949
961
|
};
|
|
950
962
|
return {
|
|
951
963
|
colNames: [
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
|
|
964
|
+
B.value.table.columnNames.datapoint,
|
|
965
|
+
B.value.table.columnNames.parent,
|
|
966
|
+
B.value.table.columnNames.depth,
|
|
967
|
+
B.value.table.columnNames.value
|
|
956
968
|
],
|
|
957
969
|
head: e,
|
|
958
970
|
body: t,
|
|
959
971
|
config: n
|
|
960
972
|
};
|
|
961
973
|
});
|
|
962
|
-
function
|
|
974
|
+
function Gn() {
|
|
963
975
|
K.value.showTable = !K.value.showTable;
|
|
964
976
|
}
|
|
965
|
-
function
|
|
977
|
+
function Kn() {
|
|
966
978
|
K.value.showTooltip = !K.value.showTooltip;
|
|
967
979
|
}
|
|
968
|
-
function
|
|
980
|
+
function qn() {
|
|
969
981
|
K.value.showZoom = !K.value.showZoom;
|
|
970
982
|
}
|
|
971
|
-
function
|
|
972
|
-
return
|
|
983
|
+
function Jn() {
|
|
984
|
+
return fn.value;
|
|
973
985
|
}
|
|
974
|
-
async function
|
|
975
|
-
if (!
|
|
976
|
-
let { width: t, height: n } =
|
|
977
|
-
domElement:
|
|
986
|
+
async function Yn({ scale: e = 2 } = {}) {
|
|
987
|
+
if (!I.value) return;
|
|
988
|
+
let { width: t, height: n } = I.value.getBoundingClientRect(), r = t / n, { imageUri: i, base64: a } = await me({
|
|
989
|
+
domElement: I.value,
|
|
978
990
|
base64: !0,
|
|
979
991
|
img: !0,
|
|
980
992
|
scale: e
|
|
@@ -982,154 +994,154 @@ var Ye = class {
|
|
|
982
994
|
return {
|
|
983
995
|
imageUri: i,
|
|
984
996
|
base64: a,
|
|
985
|
-
title:
|
|
997
|
+
title: U.value.title.text,
|
|
986
998
|
width: t,
|
|
987
999
|
height: n,
|
|
988
1000
|
aspectRatio: r
|
|
989
1001
|
};
|
|
990
1002
|
}
|
|
991
|
-
let
|
|
992
|
-
let e =
|
|
1003
|
+
let Xn = v(() => {
|
|
1004
|
+
let e = B.value.table.useDialog && !B.value.table.show, t = K.value.showTable;
|
|
993
1005
|
return {
|
|
994
1006
|
component: e ? qe : He,
|
|
995
|
-
title: `${
|
|
1007
|
+
title: `${U.value.title.text}${U.value.title.subtitle.text ? `: ${U.value.title.subtitle.text}` : ""}`,
|
|
996
1008
|
props: e ? {
|
|
997
|
-
backgroundColor:
|
|
998
|
-
color:
|
|
999
|
-
headerColor:
|
|
1000
|
-
headerBg:
|
|
1009
|
+
backgroundColor: B.value.table.th.backgroundColor,
|
|
1010
|
+
color: B.value.table.th.color,
|
|
1011
|
+
headerColor: B.value.table.th.color,
|
|
1012
|
+
headerBg: B.value.table.th.backgroundColor,
|
|
1001
1013
|
isFullscreen: Q.value,
|
|
1002
|
-
fullscreenParent:
|
|
1014
|
+
fullscreenParent: I.value,
|
|
1003
1015
|
forcedWidth: Math.min(500, window.innerWidth * .8),
|
|
1004
|
-
isCursorPointer:
|
|
1016
|
+
isCursorPointer: jt.value
|
|
1005
1017
|
} : {
|
|
1006
1018
|
hideDetails: !0,
|
|
1007
1019
|
config: {
|
|
1008
1020
|
open: t,
|
|
1009
1021
|
maxHeight: 1e4,
|
|
1010
1022
|
body: {
|
|
1011
|
-
backgroundColor:
|
|
1012
|
-
color:
|
|
1023
|
+
backgroundColor: U.value.backgroundColor,
|
|
1024
|
+
color: U.value.color
|
|
1013
1025
|
},
|
|
1014
1026
|
head: {
|
|
1015
|
-
backgroundColor:
|
|
1016
|
-
color:
|
|
1027
|
+
backgroundColor: U.value.backgroundColor,
|
|
1028
|
+
color: U.value.color
|
|
1017
1029
|
}
|
|
1018
1030
|
}
|
|
1019
1031
|
}
|
|
1020
1032
|
};
|
|
1021
1033
|
});
|
|
1022
|
-
|
|
1023
|
-
|
|
1034
|
+
Le(() => K.value.showTable, (e) => {
|
|
1035
|
+
B.value.table.show || (e && B.value.table.useDialog && L.value ? L.value.open() : L.value && "close" in L.value && L.value.close());
|
|
1024
1036
|
});
|
|
1025
|
-
function
|
|
1037
|
+
function Zn() {
|
|
1026
1038
|
K.value.showTable = !1, Tt.value && Tt.value.setTableIconState(!1);
|
|
1027
1039
|
}
|
|
1028
|
-
let
|
|
1040
|
+
let Qn = v(() => U.value.backgroundColor), $n = v(() => U.value.title), { isCallbackImaging: er, isCallbackSvg: tr, generateSvg: nr, onGenerateImage: rr } = fe({
|
|
1029
1041
|
svg: G,
|
|
1030
|
-
title:
|
|
1042
|
+
title: $n,
|
|
1031
1043
|
legend: null,
|
|
1032
1044
|
legendItems: null,
|
|
1033
|
-
backgroundColor:
|
|
1034
|
-
getSvgCallback: () =>
|
|
1035
|
-
generateImage:
|
|
1045
|
+
backgroundColor: Qn,
|
|
1046
|
+
getSvgCallback: () => B.value.userOptions.callbacks.svg,
|
|
1047
|
+
generateImage: Wt
|
|
1036
1048
|
});
|
|
1037
|
-
async function
|
|
1049
|
+
async function ir() {
|
|
1038
1050
|
if (Je("copyAlt", {
|
|
1039
|
-
config:
|
|
1040
|
-
dataset:
|
|
1051
|
+
config: B.value,
|
|
1052
|
+
dataset: fn.value,
|
|
1041
1053
|
flattenedDataset: Y.value
|
|
1042
|
-
}), !
|
|
1054
|
+
}), !B.value.userOptions.callbacks.altCopy) {
|
|
1043
1055
|
console.warn("Vue Data UI - A callback must be set for `altCopy` in userOptions.");
|
|
1044
1056
|
return;
|
|
1045
1057
|
}
|
|
1046
|
-
await Promise.resolve(
|
|
1047
|
-
config:
|
|
1048
|
-
dataset:
|
|
1058
|
+
await Promise.resolve(B.value.userOptions.callbacks.altCopy({
|
|
1059
|
+
config: B.value,
|
|
1060
|
+
dataset: fn.value,
|
|
1049
1061
|
flattenedDataset: Y.value
|
|
1050
1062
|
}));
|
|
1051
1063
|
}
|
|
1052
|
-
function
|
|
1064
|
+
function ar(e) {
|
|
1053
1065
|
if (!Number.isFinite(e) || !G.value) return;
|
|
1054
1066
|
let t = J.value[e];
|
|
1055
1067
|
if (!t) return;
|
|
1056
1068
|
let n = i(t.x, t.y, G.value);
|
|
1057
1069
|
n && (Ot.value = n);
|
|
1058
1070
|
}
|
|
1059
|
-
function
|
|
1060
|
-
if (
|
|
1061
|
-
let e = J.value[
|
|
1062
|
-
e &&
|
|
1071
|
+
function or() {
|
|
1072
|
+
if (z.value !== null) {
|
|
1073
|
+
let e = J.value[z.value];
|
|
1074
|
+
e && hn(e, z.value);
|
|
1063
1075
|
}
|
|
1064
|
-
|
|
1076
|
+
z.value = null, kt.value = "pointer", Et.value = !1, R.value = null;
|
|
1065
1077
|
}
|
|
1066
|
-
function
|
|
1067
|
-
|
|
1078
|
+
function sr() {
|
|
1079
|
+
z.value = null, At.value = !0;
|
|
1068
1080
|
}
|
|
1069
|
-
function
|
|
1070
|
-
|
|
1081
|
+
function cr() {
|
|
1082
|
+
or(), At.value = !1;
|
|
1071
1083
|
}
|
|
1072
|
-
function
|
|
1084
|
+
function lr(e, t) {
|
|
1073
1085
|
let n = J.value.length;
|
|
1074
1086
|
return n ? e === null || e < 0 || e >= n ? t === "next" ? 0 : n - 1 : t === "previous" ? (e - 1 + n) % n : (e + 1) % n : null;
|
|
1075
1087
|
}
|
|
1076
|
-
function
|
|
1077
|
-
if (!G.value ||
|
|
1088
|
+
function ur(e) {
|
|
1089
|
+
if (!G.value || Cn.value || document.activeElement !== G.value || !J.value.length) return;
|
|
1078
1090
|
let t = ["ArrowLeft", "ArrowUp"].includes(e.key), n = ["ArrowRight", "ArrowDown"].includes(e.key), r = e.key === "Enter" || e.key === " ", i = e.key === "Escape";
|
|
1079
1091
|
if (!t && !n && !r && !i) return;
|
|
1080
1092
|
if (e.preventDefault(), e.stopPropagation(), i) {
|
|
1081
|
-
|
|
1093
|
+
or();
|
|
1082
1094
|
return;
|
|
1083
1095
|
}
|
|
1084
1096
|
if (r) {
|
|
1085
|
-
if (
|
|
1086
|
-
let e = J.value[
|
|
1097
|
+
if (z.value === null) return;
|
|
1098
|
+
let e = J.value[z.value];
|
|
1087
1099
|
if (!e) return;
|
|
1088
|
-
|
|
1100
|
+
gn(e, z.value);
|
|
1089
1101
|
return;
|
|
1090
1102
|
}
|
|
1091
|
-
let a =
|
|
1092
|
-
a === null || a < 0 || a >= J.value.length ? a = n ? 0 : J.value.length - 1 : n ? a =
|
|
1103
|
+
let a = z.value;
|
|
1104
|
+
a === null || a < 0 || a >= J.value.length ? a = n ? 0 : J.value.length - 1 : n ? a = lr(a, "next") : t && (a = lr(a, "previous"));
|
|
1093
1105
|
let o = J.value[a];
|
|
1094
|
-
o && (
|
|
1106
|
+
o && (z.value = a, ar(a), yn(o, a, "keyboard"));
|
|
1095
1107
|
}
|
|
1096
|
-
let
|
|
1097
|
-
headers:
|
|
1098
|
-
rows:
|
|
1099
|
-
})),
|
|
1100
|
-
return
|
|
1101
|
-
getData:
|
|
1102
|
-
getImage:
|
|
1103
|
-
generateCsv:
|
|
1104
|
-
generatePdf:
|
|
1105
|
-
generateImage:
|
|
1106
|
-
generateSvg:
|
|
1107
|
-
toggleTable:
|
|
1108
|
-
toggleAnnotator:
|
|
1109
|
-
toggleFullscreen:
|
|
1110
|
-
copyAlt:
|
|
1111
|
-
toggleZoom:
|
|
1112
|
-
resetZoom:
|
|
1108
|
+
let dr = v(() => ({
|
|
1109
|
+
headers: Wn.value?.colNames ?? [],
|
|
1110
|
+
rows: Wn.value?.body?.map((e) => [e[0]?.name ?? "", e[1]]) ?? []
|
|
1111
|
+
})), fr = v(() => U.value.color);
|
|
1112
|
+
return ge({
|
|
1113
|
+
getData: Jn,
|
|
1114
|
+
getImage: Yn,
|
|
1115
|
+
generateCsv: Un,
|
|
1116
|
+
generatePdf: Ut,
|
|
1117
|
+
generateImage: Wt,
|
|
1118
|
+
generateSvg: nr,
|
|
1119
|
+
toggleTable: Gn,
|
|
1120
|
+
toggleAnnotator: wn,
|
|
1121
|
+
toggleFullscreen: Sn,
|
|
1122
|
+
copyAlt: ir,
|
|
1123
|
+
toggleZoom: qn,
|
|
1124
|
+
resetZoom: En
|
|
1113
1125
|
}), (e, t) => (D(), x("div", {
|
|
1114
|
-
id: `vue-ui-circle-pack_${
|
|
1115
|
-
class: T(`vue-data-ui-component vue-ui-circle-pack ${Q.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${j(
|
|
1126
|
+
id: `vue-ui-circle-pack_${F.value}`,
|
|
1127
|
+
class: T(`vue-data-ui-component vue-ui-circle-pack ${Q.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${j(Nt) ? "loading" : ""}`),
|
|
1116
1128
|
ref_key: "circlePackChart",
|
|
1117
|
-
ref:
|
|
1118
|
-
style:
|
|
1119
|
-
onMouseenter: t[2] ||= () => j(
|
|
1120
|
-
onMouseleave: t[3] ||= () => j(
|
|
1129
|
+
ref: I,
|
|
1130
|
+
style: Ae(`font-family:${B.value.style.fontFamily};text-align:center;background:${U.value.backgroundColor};`),
|
|
1131
|
+
onMouseenter: t[2] ||= () => j(It)(!0),
|
|
1132
|
+
onMouseleave: t[3] ||= () => j(It)(!1)
|
|
1121
1133
|
}, [
|
|
1122
1134
|
S("div", {
|
|
1123
|
-
id: `chart-instructions-${
|
|
1135
|
+
id: `chart-instructions-${F.value}`,
|
|
1124
1136
|
class: "sr-only"
|
|
1125
|
-
}, [S("p", null, A(
|
|
1126
|
-
|
|
1137
|
+
}, [S("p", null, A(B.value.a11y.translations.keyboardNavigation), 1)], 8, Qe),
|
|
1138
|
+
dr.value?.rows?.length ? (D(), y(be, {
|
|
1127
1139
|
key: 0,
|
|
1128
|
-
uid:
|
|
1129
|
-
head:
|
|
1130
|
-
body:
|
|
1131
|
-
notice:
|
|
1132
|
-
caption:
|
|
1140
|
+
uid: F.value,
|
|
1141
|
+
head: dr.value.headers,
|
|
1142
|
+
body: dr.value.rows,
|
|
1143
|
+
notice: B.value.a11y.translations.tableAvailable,
|
|
1144
|
+
caption: B.value.a11y.translations.tableCaption
|
|
1133
1145
|
}, null, 8, [
|
|
1134
1146
|
"uid",
|
|
1135
1147
|
"head",
|
|
@@ -1137,16 +1149,16 @@ var Ye = class {
|
|
|
1137
1149
|
"notice",
|
|
1138
1150
|
"caption"
|
|
1139
1151
|
])) : b("", !0),
|
|
1140
|
-
|
|
1152
|
+
B.value.userOptions.buttons.annotator ? (D(), y(j(Ge), {
|
|
1141
1153
|
key: 1,
|
|
1142
1154
|
svgRef: j(G),
|
|
1143
|
-
backgroundColor:
|
|
1144
|
-
color:
|
|
1145
|
-
active:
|
|
1146
|
-
scale:
|
|
1147
|
-
isCursorPointer:
|
|
1148
|
-
palette:
|
|
1149
|
-
onClose:
|
|
1155
|
+
backgroundColor: U.value.backgroundColor,
|
|
1156
|
+
color: U.value.color,
|
|
1157
|
+
active: Cn.value,
|
|
1158
|
+
scale: pn.value / 100,
|
|
1159
|
+
isCursorPointer: jt.value,
|
|
1160
|
+
palette: B.value.userOptions.annotatorPalette,
|
|
1161
|
+
onClose: wn
|
|
1150
1162
|
}, {
|
|
1151
1163
|
"annotator-action-close": M(() => [k(e.$slots, "annotator-action-close", {}, void 0, !0)]),
|
|
1152
1164
|
"annotator-action-color": M(({ color: t }) => [k(e.$slots, "annotator-action-color", E(w({ color: t })), void 0, !0)]),
|
|
@@ -1165,74 +1177,74 @@ var Ye = class {
|
|
|
1165
1177
|
"palette"
|
|
1166
1178
|
])) : b("", !0),
|
|
1167
1179
|
k(e.$slots, "userConfig", {}, void 0, !0),
|
|
1168
|
-
|
|
1180
|
+
Gt.value ? (D(), x("div", {
|
|
1169
1181
|
key: 2,
|
|
1170
1182
|
ref_key: "noTitle",
|
|
1171
1183
|
ref: bt,
|
|
1172
1184
|
class: "vue-data-ui-no-title-space",
|
|
1173
1185
|
style: "height:36px; width: 100%;background:transparent"
|
|
1174
1186
|
}, null, 512)) : b("", !0),
|
|
1175
|
-
|
|
1187
|
+
U.value.title.text ? (D(), x("div", {
|
|
1176
1188
|
key: 3,
|
|
1177
1189
|
ref_key: "chartTitle",
|
|
1178
1190
|
ref: yt,
|
|
1179
1191
|
style: "width:100%;background:transparent;padding-bottom:12px"
|
|
1180
|
-
}, [(D(), y(
|
|
1192
|
+
}, [(D(), y(he, {
|
|
1181
1193
|
key: `title_${xt.value}`,
|
|
1182
1194
|
config: {
|
|
1183
1195
|
title: {
|
|
1184
1196
|
cy: "donut-div-title",
|
|
1185
|
-
...
|
|
1197
|
+
...U.value.title
|
|
1186
1198
|
},
|
|
1187
1199
|
subtitle: {
|
|
1188
1200
|
cy: "donut-div-subtitle",
|
|
1189
|
-
...
|
|
1201
|
+
...U.value.title.subtitle
|
|
1190
1202
|
}
|
|
1191
1203
|
}
|
|
1192
1204
|
}, null, 8, ["config"]))], 512)) : b("", !0),
|
|
1193
|
-
|
|
1205
|
+
B.value.userOptions.show && vt.value && (j(Lt) || j(Ft)) ? (D(), y(j(We), {
|
|
1194
1206
|
ref_key: "userOptionsRef",
|
|
1195
1207
|
ref: Tt,
|
|
1196
1208
|
key: `user_option_${Ct.value}`,
|
|
1197
|
-
backgroundColor:
|
|
1198
|
-
color:
|
|
1199
|
-
isPrinting: j(
|
|
1200
|
-
isImaging: j(
|
|
1201
|
-
uid:
|
|
1202
|
-
hasTooltip:
|
|
1209
|
+
backgroundColor: U.value.backgroundColor,
|
|
1210
|
+
color: U.value.color,
|
|
1211
|
+
isPrinting: j(Vt),
|
|
1212
|
+
isImaging: j(Ht),
|
|
1213
|
+
uid: F.value,
|
|
1214
|
+
hasTooltip: B.value.userOptions.buttons.tooltip,
|
|
1203
1215
|
isTooltip: K.value.showTooltip,
|
|
1204
1216
|
hasLabel: !1,
|
|
1205
|
-
hasPdf:
|
|
1206
|
-
hasImg:
|
|
1207
|
-
hasSvg:
|
|
1208
|
-
hasXls:
|
|
1209
|
-
hasTable:
|
|
1210
|
-
hasFullscreen:
|
|
1211
|
-
hasAltCopy:
|
|
1217
|
+
hasPdf: B.value.userOptions.buttons.pdf,
|
|
1218
|
+
hasImg: B.value.userOptions.buttons.img,
|
|
1219
|
+
hasSvg: B.value.userOptions.buttons.svg,
|
|
1220
|
+
hasXls: B.value.userOptions.buttons.csv,
|
|
1221
|
+
hasTable: B.value.userOptions.buttons.table,
|
|
1222
|
+
hasFullscreen: B.value.userOptions.buttons.fullscreen,
|
|
1223
|
+
hasAltCopy: B.value.userOptions.buttons.altCopy,
|
|
1212
1224
|
isFullscreen: Q.value,
|
|
1213
|
-
chartElement:
|
|
1214
|
-
position:
|
|
1215
|
-
callbacks:
|
|
1216
|
-
printScale:
|
|
1217
|
-
titles: { ...
|
|
1218
|
-
hasAnnotator:
|
|
1219
|
-
isAnnotation:
|
|
1220
|
-
tableDialog:
|
|
1221
|
-
isCursorPointer:
|
|
1222
|
-
hasZoom:
|
|
1225
|
+
chartElement: I.value,
|
|
1226
|
+
position: B.value.userOptions.position,
|
|
1227
|
+
callbacks: B.value.userOptions.callbacks,
|
|
1228
|
+
printScale: B.value.userOptions.print.scale,
|
|
1229
|
+
titles: { ...B.value.userOptions.buttonTitles },
|
|
1230
|
+
hasAnnotator: B.value.userOptions.buttons.annotator,
|
|
1231
|
+
isAnnotation: Cn.value,
|
|
1232
|
+
tableDialog: B.value.table.useDialog,
|
|
1233
|
+
isCursorPointer: jt.value,
|
|
1234
|
+
hasZoom: B.value.userOptions.buttons.zoom,
|
|
1223
1235
|
isZoom: K.value.showZoom,
|
|
1224
|
-
onToggleFullscreen:
|
|
1225
|
-
onGeneratePdf: j(
|
|
1226
|
-
onGenerateCsv:
|
|
1227
|
-
onGenerateImage: j(
|
|
1228
|
-
onGenerateSvg: j(
|
|
1229
|
-
onToggleTable:
|
|
1230
|
-
onToggleTooltip:
|
|
1231
|
-
onToggleAnnotator:
|
|
1232
|
-
onToggleZoom:
|
|
1233
|
-
onCopyAlt:
|
|
1234
|
-
style:
|
|
1235
|
-
},
|
|
1236
|
+
onToggleFullscreen: Sn,
|
|
1237
|
+
onGeneratePdf: j(Ut),
|
|
1238
|
+
onGenerateCsv: Un,
|
|
1239
|
+
onGenerateImage: j(rr),
|
|
1240
|
+
onGenerateSvg: j(nr),
|
|
1241
|
+
onToggleTable: Gn,
|
|
1242
|
+
onToggleTooltip: Kn,
|
|
1243
|
+
onToggleAnnotator: wn,
|
|
1244
|
+
onToggleZoom: qn,
|
|
1245
|
+
onCopyAlt: ir,
|
|
1246
|
+
style: Ae({ visibility: j(Lt) ? j(Ft) ? "visible" : "hidden" : "visible" })
|
|
1247
|
+
}, Te({ _: 2 }, [
|
|
1236
1248
|
e.$slots.menuIcon ? {
|
|
1237
1249
|
name: "menuIcon",
|
|
1238
1250
|
fn: M(({ isOpen: t, color: n }) => [k(e.$slots, "menuIcon", E(w({
|
|
@@ -1313,27 +1325,27 @@ var Ye = class {
|
|
|
1313
1325
|
]), 1032, /* @__PURE__ */ "backgroundColor.color.isPrinting.isImaging.uid.hasTooltip.isTooltip.hasPdf.hasImg.hasSvg.hasXls.hasTable.hasFullscreen.hasAltCopy.isFullscreen.chartElement.position.callbacks.printScale.titles.hasAnnotator.isAnnotation.tableDialog.isCursorPointer.hasZoom.isZoom.onGeneratePdf.onGenerateImage.onGenerateSvg.style".split("."))) : b("", !0),
|
|
1314
1326
|
S("div", { class: T({
|
|
1315
1327
|
"vue-ui-circle-pack-svg-container": !0,
|
|
1316
|
-
"not-responsive": !
|
|
1328
|
+
"not-responsive": !B.value.responsive
|
|
1317
1329
|
}) }, [(D(), x("svg", {
|
|
1318
1330
|
ref_key: "svgRef",
|
|
1319
1331
|
ref: G,
|
|
1320
|
-
xmlns: j(
|
|
1321
|
-
"aria-describedby": `chart-instructions-${
|
|
1332
|
+
xmlns: j(ne),
|
|
1333
|
+
"aria-describedby": `chart-instructions-${F.value}`,
|
|
1322
1334
|
viewBox: `${j($).x} ${j($).y} ${j($).width} ${j($).height}`,
|
|
1323
1335
|
preserveAspectRatio: "xMidYMid meet",
|
|
1324
1336
|
class: T({
|
|
1325
1337
|
"vue-data-ui-fullscreen--on": Q.value,
|
|
1326
1338
|
"vue-data-ui-fulscreen--off": !Q.value,
|
|
1327
|
-
"not-responsive": !
|
|
1328
|
-
"vue-data-ui-no-transition": !j(
|
|
1339
|
+
"not-responsive": !B.value.responsive,
|
|
1340
|
+
"vue-data-ui-no-transition": !j(W)
|
|
1329
1341
|
}),
|
|
1330
|
-
style:
|
|
1342
|
+
style: Ae(`display:block;${B.value.responsive ? "width:100%;height:auto" : "height:100%;"};overflow:${K.value.showZoom ? "hidden" : "visible"};background:transparent;color:${U.value.color};background:${U.value.backgroundColor};`),
|
|
1331
1343
|
tabindex: "0",
|
|
1332
|
-
onFocus:
|
|
1333
|
-
onBlur:
|
|
1334
|
-
onKeydown:
|
|
1344
|
+
onFocus: sr,
|
|
1345
|
+
onBlur: cr,
|
|
1346
|
+
onKeydown: ur
|
|
1335
1347
|
}, [
|
|
1336
|
-
|
|
1348
|
+
De(j(Ke)),
|
|
1337
1349
|
e.$slots["chart-background"] ? (D(), x("foreignObject", {
|
|
1338
1350
|
key: 0,
|
|
1339
1351
|
x: j($).x,
|
|
@@ -1342,15 +1354,15 @@ var Ye = class {
|
|
|
1342
1354
|
height: q.value.h,
|
|
1343
1355
|
style: { pointerEvents: "none" }
|
|
1344
1356
|
}, [k(e.$slots, "chart-background", {}, void 0, !0)], 8, et)) : b("", !0),
|
|
1345
|
-
(D(!0), x(_, null,
|
|
1346
|
-
S("defs", null, [
|
|
1357
|
+
(D(!0), x(_, null, Ne(J.value, (t, n) => (D(), x(_, { key: t.id }, [
|
|
1358
|
+
S("defs", null, [De(ye, {
|
|
1347
1359
|
t: "radial",
|
|
1348
1360
|
id: t.id,
|
|
1349
1361
|
fy: "30%",
|
|
1350
1362
|
stops: [
|
|
1351
1363
|
[
|
|
1352
1364
|
"10%",
|
|
1353
|
-
j(
|
|
1365
|
+
j(ee)(t.color, H.value.gradient.intensity / 100),
|
|
1354
1366
|
1
|
|
1355
1367
|
],
|
|
1356
1368
|
[
|
|
@@ -1365,119 +1377,119 @@ var Ye = class {
|
|
|
1365
1377
|
]
|
|
1366
1378
|
]
|
|
1367
1379
|
}, null, 8, ["id", "stops"])]),
|
|
1368
|
-
e.$slots.pattern ? (D(), x("g", tt, [S("defs", null, [k(e.$slots, "pattern",
|
|
1380
|
+
e.$slots.pattern ? (D(), x("g", tt, [S("defs", null, [k(e.$slots, "pattern", Oe({ ref_for: !0 }, {
|
|
1369
1381
|
...t,
|
|
1370
|
-
patternId: `pattern_${
|
|
1382
|
+
patternId: `pattern_${F.value}_${t.id}`
|
|
1371
1383
|
}), void 0, !0)])])) : b("", !0),
|
|
1372
1384
|
S("rect", {
|
|
1373
|
-
class: T({ "vue-data-ui-transition": j(
|
|
1385
|
+
class: T({ "vue-data-ui-transition": j(W) }),
|
|
1374
1386
|
x: t.x - t.r,
|
|
1375
1387
|
y: t.y - t.r,
|
|
1376
1388
|
width: t.r * 2,
|
|
1377
1389
|
height: t.r * 2,
|
|
1378
|
-
stroke:
|
|
1390
|
+
stroke: H.value.stroke,
|
|
1379
1391
|
"vector-effect": "non-scaling-stroke",
|
|
1380
|
-
"stroke-width":
|
|
1381
|
-
fill:
|
|
1392
|
+
"stroke-width": H.value.strokeWidth * (pn.value || 1) / 100,
|
|
1393
|
+
fill: H.value.gradient.show ? `url(#${t.id})` : t.color,
|
|
1382
1394
|
rx: t.r,
|
|
1383
|
-
onMouseenter: (e) =>
|
|
1384
|
-
onMouseout: (e) =>
|
|
1385
|
-
onClick: (e) =>
|
|
1395
|
+
onMouseenter: (e) => yn(t, n, "pointer"),
|
|
1396
|
+
onMouseout: (e) => hn(t, n),
|
|
1397
|
+
onClick: (e) => gn(t, n)
|
|
1386
1398
|
}, null, 42, nt),
|
|
1387
1399
|
e.$slots.pattern ? (D(), x("rect", {
|
|
1388
1400
|
key: 1,
|
|
1389
|
-
class: T({ "vue-data-ui-transition": j(
|
|
1401
|
+
class: T({ "vue-data-ui-transition": j(W) }),
|
|
1390
1402
|
x: t.x - t.r,
|
|
1391
1403
|
y: t.y - t.r,
|
|
1392
1404
|
width: t.r * 2,
|
|
1393
1405
|
height: t.r * 2,
|
|
1394
|
-
stroke:
|
|
1406
|
+
stroke: H.value.stroke,
|
|
1395
1407
|
"vector-effect": "non-scaling-stroke",
|
|
1396
|
-
"stroke-width":
|
|
1397
|
-
fill: `url(#pattern_${
|
|
1408
|
+
"stroke-width": H.value.strokeWidth * (pn.value || 1) / 100,
|
|
1409
|
+
fill: `url(#pattern_${F.value}_${t.id})`,
|
|
1398
1410
|
rx: t.r,
|
|
1399
1411
|
style: { pointerEvents: "none" }
|
|
1400
1412
|
}, null, 10, rt)) : b("", !0)
|
|
1401
1413
|
], 64))), 128)),
|
|
1402
|
-
(D(!0), x(_, null,
|
|
1414
|
+
(D(!0), x(_, null, Ne(J.value, (e, t) => (D(), x(_, { key: e.id }, [e.hasChildren ? b("", !0) : (D(), x("rect", {
|
|
1403
1415
|
key: 0,
|
|
1404
|
-
class: T({ "vue-data-ui-transition": j(
|
|
1416
|
+
class: T({ "vue-data-ui-transition": j(W) }),
|
|
1405
1417
|
x: e.x - e.r,
|
|
1406
1418
|
y: e.y - e.r,
|
|
1407
1419
|
width: e.r * 2,
|
|
1408
1420
|
height: e.r * 2,
|
|
1409
1421
|
stroke: "none",
|
|
1410
|
-
fill:
|
|
1422
|
+
fill: R.value && R.value.id === e.id ? H.value.gradient.show ? `url(#${e.id})` : e.color : "transparent",
|
|
1411
1423
|
rx: e.r,
|
|
1412
|
-
style:
|
|
1413
|
-
filter:
|
|
1414
|
-
opacity: +!!
|
|
1424
|
+
style: Ae({
|
|
1425
|
+
filter: R.value && R.value.id === e.id ? `drop-shadow(0px 0px 6px ${H.value.selectedShadowColor})` : "none",
|
|
1426
|
+
opacity: +!!R.value,
|
|
1415
1427
|
pointerEvents: "none"
|
|
1416
1428
|
})
|
|
1417
1429
|
}, null, 14, it))], 64))), 128)),
|
|
1418
|
-
(D(!0), x(_, null,
|
|
1430
|
+
(D(!0), x(_, null, Ne(J.value, (t, n) => (D(), x(_, { key: `cl_${t.id}` }, [e.$slots["data-label"] && sn(t) ? k(e.$slots, "data-label", Oe({ ref_for: !0 }, {
|
|
1419
1431
|
...t,
|
|
1420
1432
|
createTSpans: j(c),
|
|
1421
1433
|
fontSize: {
|
|
1422
|
-
name: t.r / 3 *
|
|
1423
|
-
value:
|
|
1434
|
+
name: t.r / 3 * V.value.name.fontSizeRatio,
|
|
1435
|
+
value: xn(t) * V.value.value.fontSizeRatio
|
|
1424
1436
|
},
|
|
1425
|
-
color:
|
|
1426
|
-
}), void 0, !0, 0) : (D(), x(_, { key: 1 }, [
|
|
1437
|
+
color: V.value.name.color ? V.value.name.color : j(te)(t.color)
|
|
1438
|
+
}), void 0, !0, 0) : (D(), x(_, { key: 1 }, [V.value.name.show && t.name && sn(t) ? (D(), x("text", {
|
|
1427
1439
|
key: 0,
|
|
1428
1440
|
style: { pointerEvents: "none" },
|
|
1429
|
-
class: T({ "vue-data-ui-transition": j(
|
|
1430
|
-
transform: `translate(${t.x}, ${t.y +
|
|
1431
|
-
"font-size": t.r / 3 *
|
|
1432
|
-
fill:
|
|
1433
|
-
"font-weight":
|
|
1441
|
+
class: T({ "vue-data-ui-transition": j(W) }),
|
|
1442
|
+
transform: `translate(${t.x}, ${t.y + mn(t.r, V.value.name.offsetY) - t.r / 10})`,
|
|
1443
|
+
"font-size": t.r / 3 * V.value.name.fontSizeRatio,
|
|
1444
|
+
fill: V.value.name.color === "auto" ? j(te)(t.color) : V.value.name.color,
|
|
1445
|
+
"font-weight": V.value.name.bold ? "bold" : "normal",
|
|
1434
1446
|
"text-anchor": "middle"
|
|
1435
|
-
}, A(t.name), 11, at)) : b("", !0),
|
|
1447
|
+
}, A(t.name), 11, at)) : b("", !0), V.value.value.show && sn(t) ? (D(), x("text", {
|
|
1436
1448
|
key: 1,
|
|
1437
|
-
class: T({ "vue-data-ui-transition": j(
|
|
1449
|
+
class: T({ "vue-data-ui-transition": j(W) }),
|
|
1438
1450
|
style: {
|
|
1439
1451
|
pointerEvents: "none",
|
|
1440
1452
|
transition: "opacity 0.2s ease-in-out"
|
|
1441
1453
|
},
|
|
1442
|
-
transform: `translate(${t.x}, ${t.y +
|
|
1443
|
-
"font-size":
|
|
1444
|
-
fill:
|
|
1445
|
-
"font-weight":
|
|
1454
|
+
transform: `translate(${t.x}, ${t.y + mn(t.r, V.value.value.offsetY) + t.r / 2.5})`,
|
|
1455
|
+
"font-size": xn(t) * V.value.value.fontSizeRatio,
|
|
1456
|
+
fill: V.value.value.color === "auto" ? j(te)(t.color) : V.value.value.color,
|
|
1457
|
+
"font-weight": V.value.value.bold ? "bold" : "normal",
|
|
1446
1458
|
"text-anchor": "middle"
|
|
1447
|
-
}, A(
|
|
1459
|
+
}, A(bn(t)), 11, ot)) : b("", !0)], 64)), k(e.$slots, "circle", Oe({ ref_for: !0 }, {
|
|
1448
1460
|
...t,
|
|
1449
|
-
showLabel:
|
|
1450
|
-
isSelected:
|
|
1451
|
-
isDescendantOfSelected:
|
|
1452
|
-
uid: `${n}_${
|
|
1461
|
+
showLabel: sn(t),
|
|
1462
|
+
isSelected: R.value?.id === t.id,
|
|
1463
|
+
isDescendantOfSelected: on(t, R.value),
|
|
1464
|
+
uid: `${n}_${F.value}`
|
|
1453
1465
|
}), void 0, !0)], 64))), 128)),
|
|
1454
|
-
|
|
1466
|
+
Rn.value.length && U.value.parentTooltips.show ? (D(), x("g", st, [(D(!0), x(_, null, Ne(Rn.value, (t) => (D(), x("g", { key: `tltp_${t.id}` }, [
|
|
1455
1467
|
S("path", {
|
|
1456
|
-
class: T({ "vue-data-ui-transition": j(
|
|
1457
|
-
stroke:
|
|
1468
|
+
class: T({ "vue-data-ui-transition": j(W) }),
|
|
1469
|
+
stroke: U.value.parentTooltips.link.useSerieColor ? t.color : U.value.parentTooltips.link.stroke,
|
|
1458
1470
|
"vector-effect": "non-scaling-stroke",
|
|
1459
|
-
"stroke-width":
|
|
1471
|
+
"stroke-width": U.value.parentTooltips.link.strokeWidth,
|
|
1460
1472
|
"stroke-linecap": "round",
|
|
1461
|
-
"stroke-dasharray":
|
|
1462
|
-
opacity:
|
|
1473
|
+
"stroke-dasharray": U.value.parentTooltips.link.strokeDasharray,
|
|
1474
|
+
opacity: U.value.parentTooltips.link.opacity,
|
|
1463
1475
|
d: `M${t.anchorX}, ${t.anchorY} ${t.lineX}, ${t.lineY}`
|
|
1464
1476
|
}, null, 10, ct),
|
|
1465
1477
|
S("rect", {
|
|
1466
|
-
class: T({ "vue-data-ui-transition": j(
|
|
1478
|
+
class: T({ "vue-data-ui-transition": j(W) }),
|
|
1467
1479
|
x: t.x,
|
|
1468
1480
|
y: t.y,
|
|
1469
1481
|
width: t.width,
|
|
1470
1482
|
height: t.height,
|
|
1471
|
-
rx: Math.max(3 * t.scale, t.fontSize / 2.5) *
|
|
1472
|
-
ry: Math.max(3 * t.scale, t.fontSize / 2.5) *
|
|
1473
|
-
fill:
|
|
1474
|
-
stroke:
|
|
1483
|
+
rx: Math.max(3 * t.scale, t.fontSize / 2.5) * U.value.parentTooltips.borderRadiusRatio,
|
|
1484
|
+
ry: Math.max(3 * t.scale, t.fontSize / 2.5) * U.value.parentTooltips.borderRadiusRatio,
|
|
1485
|
+
fill: U.value.parentTooltips.backgroundColor,
|
|
1486
|
+
stroke: U.value.parentTooltips.useSerieColor ? t.color : U.value.parentTooltips.stroke,
|
|
1475
1487
|
"vector-effect": "non-scaling-stroke",
|
|
1476
|
-
"stroke-width":
|
|
1477
|
-
filter:
|
|
1488
|
+
"stroke-width": U.value.parentTooltips.strokeWidth,
|
|
1489
|
+
filter: U.value.parentTooltips.filter
|
|
1478
1490
|
}, null, 10, lt),
|
|
1479
|
-
k(e.$slots, "parent-tooltip",
|
|
1480
|
-
class: T({ "vue-data-ui-transition": j(
|
|
1491
|
+
k(e.$slots, "parent-tooltip", Oe({ ref_for: !0 }, { ...t }), () => [S("rect", {
|
|
1492
|
+
class: T({ "vue-data-ui-transition": j(W) }),
|
|
1481
1493
|
fill: t.color,
|
|
1482
1494
|
x: t.x + t.paddingX * 1.3 - t.fontSize * .35,
|
|
1483
1495
|
y: t.y + t.paddingY + t.lineHeight / 2 - t.fontSize * .35,
|
|
@@ -1485,13 +1497,13 @@ var Ye = class {
|
|
|
1485
1497
|
width: t.fontSize * .7,
|
|
1486
1498
|
height: t.fontSize * .7
|
|
1487
1499
|
}, null, 10, ut), S("text", {
|
|
1488
|
-
class: T({ "vue-data-ui-transition": j(
|
|
1500
|
+
class: T({ "vue-data-ui-transition": j(W) }),
|
|
1489
1501
|
transform: `translate(${t.x + t.paddingX + t.fontSize}, ${t.y + t.paddingY + t.fontSize})`,
|
|
1490
1502
|
"font-size": t.fontSize,
|
|
1491
|
-
fill:
|
|
1492
|
-
"font-family":
|
|
1503
|
+
fill: U.value.parentTooltips.color,
|
|
1504
|
+
"font-family": B.value.style.fontFamily,
|
|
1493
1505
|
"text-anchor": "start"
|
|
1494
|
-
}, [(D(!0), x(_, null,
|
|
1506
|
+
}, [(D(!0), x(_, null, Ne(t.lines, (e, n) => (D(), x("tspan", {
|
|
1495
1507
|
key: `${t.id}_${n}`,
|
|
1496
1508
|
x: 0,
|
|
1497
1509
|
dy: n === 0 ? 0 : t.lineHeight
|
|
@@ -1501,27 +1513,27 @@ var Ye = class {
|
|
|
1501
1513
|
drawingArea: { ...j($) },
|
|
1502
1514
|
width: q.value.w,
|
|
1503
1515
|
height: q.value.h,
|
|
1504
|
-
isPrintingImg: j(
|
|
1505
|
-
isPrintingSvg: j(
|
|
1516
|
+
isPrintingImg: j(Vt) || j(Ht) || j(er),
|
|
1517
|
+
isPrintingSvg: j(tr)
|
|
1506
1518
|
} }, void 0, !0)
|
|
1507
1519
|
], 46, $e)), e.$slots.hint ? (D(), x("div", pt, [k(e.$slots, "hint", E(w({
|
|
1508
|
-
hint:
|
|
1520
|
+
hint: B.value.a11y.translations.keyboardNavigation,
|
|
1509
1521
|
isVisible: At.value
|
|
1510
1522
|
})), void 0, !0)])) : b("", !0)], 2),
|
|
1511
|
-
e.$slots.watermark ? (D(), x("div", mt, [k(e.$slots, "watermark", E(w({ isPrinting: j(
|
|
1512
|
-
j(
|
|
1523
|
+
e.$slots.watermark ? (D(), x("div", mt, [k(e.$slots, "watermark", E(w({ isPrinting: j(Vt) || j(Ht) || j(er) || j(tr) })), void 0, !0)])) : b("", !0),
|
|
1524
|
+
j(Dn) ? (D(), x("div", ht, [k(e.$slots, "reset-action", { reset: j(En) }, () => [S("button", {
|
|
1513
1525
|
"data-cy-reset": "",
|
|
1514
1526
|
tabindex: "0",
|
|
1515
1527
|
role: "button",
|
|
1516
1528
|
class: "vue-data-ui-refresh-button",
|
|
1517
|
-
style:
|
|
1518
|
-
background:
|
|
1519
|
-
cursor:
|
|
1529
|
+
style: Ae({
|
|
1530
|
+
background: U.value.backgroundColor,
|
|
1531
|
+
cursor: jt.value ? "pointer" : "default"
|
|
1520
1532
|
}),
|
|
1521
|
-
onClick: t[0] ||= (e) => j(
|
|
1522
|
-
}, [
|
|
1533
|
+
onClick: t[0] ||= (e) => j(En)(!0)
|
|
1534
|
+
}, [De(j(N), {
|
|
1523
1535
|
name: "refresh",
|
|
1524
|
-
stroke:
|
|
1536
|
+
stroke: U.value.color
|
|
1525
1537
|
}, null, 8, ["stroke"])], 4)], !0)])) : b("", !0),
|
|
1526
1538
|
e.$slots.source ? (D(), x("div", {
|
|
1527
1539
|
key: 7,
|
|
@@ -1529,33 +1541,33 @@ var Ye = class {
|
|
|
1529
1541
|
ref: wt,
|
|
1530
1542
|
dir: "auto"
|
|
1531
1543
|
}, [k(e.$slots, "source", {}, void 0, !0)], 512)) : b("", !0),
|
|
1532
|
-
|
|
1533
|
-
teleportTo:
|
|
1544
|
+
De(j(Ve), {
|
|
1545
|
+
teleportTo: U.value.tooltip.teleportTo,
|
|
1534
1546
|
show: K.value.showTooltip && Et.value,
|
|
1535
|
-
backgroundColor:
|
|
1536
|
-
color:
|
|
1537
|
-
fontSize:
|
|
1538
|
-
borderRadius:
|
|
1539
|
-
borderColor:
|
|
1540
|
-
borderWidth:
|
|
1541
|
-
backgroundOpacity:
|
|
1542
|
-
position:
|
|
1543
|
-
offsetX:
|
|
1544
|
-
offsetY:
|
|
1545
|
-
parent:
|
|
1547
|
+
backgroundColor: U.value.tooltip.backgroundColor,
|
|
1548
|
+
color: U.value.tooltip.color,
|
|
1549
|
+
fontSize: U.value.tooltip.fontSize,
|
|
1550
|
+
borderRadius: U.value.tooltip.borderRadius,
|
|
1551
|
+
borderColor: U.value.tooltip.borderColor,
|
|
1552
|
+
borderWidth: U.value.tooltip.borderWidth,
|
|
1553
|
+
backgroundOpacity: U.value.tooltip.backgroundOpacity,
|
|
1554
|
+
position: U.value.tooltip.position,
|
|
1555
|
+
offsetX: U.value.tooltip.offsetX,
|
|
1556
|
+
offsetY: U.value.tooltip.offsetY,
|
|
1557
|
+
parent: I.value,
|
|
1546
1558
|
content: Dt.value,
|
|
1547
|
-
isCustom:
|
|
1559
|
+
isCustom: vn.value,
|
|
1548
1560
|
isFullscreen: Q.value,
|
|
1549
|
-
smooth:
|
|
1550
|
-
backdropFilter:
|
|
1551
|
-
smoothForce:
|
|
1552
|
-
smoothSnapThreshold:
|
|
1561
|
+
smooth: U.value.tooltip.smooth,
|
|
1562
|
+
backdropFilter: U.value.tooltip.backdropFilter,
|
|
1563
|
+
smoothForce: U.value.tooltip.smoothForce,
|
|
1564
|
+
smoothSnapThreshold: U.value.tooltip.smoothSnapThrehsold,
|
|
1553
1565
|
isA11yMode: kt.value === "keyboard",
|
|
1554
1566
|
a11yPosition: Ot.value
|
|
1555
1567
|
}, {
|
|
1556
|
-
"tooltip-before": M(() => [k(e.$slots, "tooltip-before", E(w({ ...
|
|
1557
|
-
tooltip: M(() => [k(e.$slots, "tooltip", E(w({ ...
|
|
1558
|
-
"tooltip-after": M(() => [k(e.$slots, "tooltip-after", E(w({ ...
|
|
1568
|
+
"tooltip-before": M(() => [k(e.$slots, "tooltip-before", E(w({ ..._n.value })), void 0, !0)]),
|
|
1569
|
+
tooltip: M(() => [k(e.$slots, "tooltip", E(w({ ..._n.value })), void 0, !0)]),
|
|
1570
|
+
"tooltip-after": M(() => [k(e.$slots, "tooltip-after", E(w({ ..._n.value })), void 0, !0)]),
|
|
1559
1571
|
_: 3
|
|
1560
1572
|
}, 8, [
|
|
1561
1573
|
"teleportTo",
|
|
@@ -1581,24 +1593,24 @@ var Ye = class {
|
|
|
1581
1593
|
"isA11yMode",
|
|
1582
1594
|
"a11yPosition"
|
|
1583
1595
|
]),
|
|
1584
|
-
vt.value &&
|
|
1596
|
+
vt.value && B.value.userOptions.buttons.table ? (D(), y(Pe(Xn.value.component), Oe({ key: 8 }, Xn.value.props, {
|
|
1585
1597
|
ref_key: "tableUnit",
|
|
1586
|
-
ref:
|
|
1587
|
-
onClose:
|
|
1588
|
-
}),
|
|
1598
|
+
ref: L,
|
|
1599
|
+
onClose: Zn
|
|
1600
|
+
}), Te({
|
|
1589
1601
|
content: M(() => [(D(), y(j(Ue), {
|
|
1590
1602
|
key: `table_${St.value}`,
|
|
1591
|
-
colNames:
|
|
1592
|
-
head:
|
|
1593
|
-
body:
|
|
1594
|
-
config:
|
|
1595
|
-
title:
|
|
1596
|
-
withCloseButton: !
|
|
1597
|
-
isCursorPointer:
|
|
1598
|
-
onClose:
|
|
1603
|
+
colNames: Wn.value.colNames,
|
|
1604
|
+
head: Wn.value.head,
|
|
1605
|
+
body: Wn.value.body,
|
|
1606
|
+
config: Wn.value.config,
|
|
1607
|
+
title: B.value.table.useDialog ? "" : Xn.value.title,
|
|
1608
|
+
withCloseButton: !B.value.table.useDialog,
|
|
1609
|
+
isCursorPointer: jt.value,
|
|
1610
|
+
onClose: Zn
|
|
1599
1611
|
}, {
|
|
1600
1612
|
th: M(({ th: e }) => [S("div", gt, A(e), 1)]),
|
|
1601
|
-
td: M(({ td: e }) => [
|
|
1613
|
+
td: M(({ td: e }) => [Ee(A(e.name || e), 1)]),
|
|
1602
1614
|
_: 1
|
|
1603
1615
|
}, 8, [
|
|
1604
1616
|
"colNames",
|
|
@@ -1610,26 +1622,26 @@ var Ye = class {
|
|
|
1610
1622
|
"isCursorPointer"
|
|
1611
1623
|
]))]),
|
|
1612
1624
|
_: 2
|
|
1613
|
-
}, [
|
|
1625
|
+
}, [B.value.table.useDialog ? {
|
|
1614
1626
|
name: "title",
|
|
1615
|
-
fn: M(() => [
|
|
1627
|
+
fn: M(() => [Ee(A(Xn.value.title), 1)]),
|
|
1616
1628
|
key: "0"
|
|
1617
|
-
} : void 0,
|
|
1629
|
+
} : void 0, B.value.table.useDialog ? {
|
|
1618
1630
|
name: "actions",
|
|
1619
1631
|
fn: M(() => [S("button", {
|
|
1620
1632
|
tabindex: "0",
|
|
1621
1633
|
class: "vue-ui-user-options-button",
|
|
1622
|
-
onClick: t[1] ||= (e) =>
|
|
1623
|
-
style:
|
|
1624
|
-
}, [
|
|
1634
|
+
onClick: t[1] ||= (e) => Un(B.value.userOptions.callbacks.csv),
|
|
1635
|
+
style: Ae({ cursor: jt.value ? "pointer" : "default" })
|
|
1636
|
+
}, [De(j(N), {
|
|
1625
1637
|
name: "fileCsv",
|
|
1626
|
-
stroke:
|
|
1638
|
+
stroke: Xn.value.props.color
|
|
1627
1639
|
}, null, 8, ["stroke"])], 4)]),
|
|
1628
1640
|
key: "1"
|
|
1629
1641
|
} : void 0]), 1040)) : b("", !0),
|
|
1630
|
-
k(e.$slots, "skeleton", {}, () => [j(
|
|
1642
|
+
k(e.$slots, "skeleton", {}, () => [j(Nt) ? (D(), y(le, { key: 0 })) : b("", !0)], !0)
|
|
1631
1643
|
], 46, Ze));
|
|
1632
1644
|
}
|
|
1633
|
-
}, [["__scopeId", "data-v-
|
|
1645
|
+
}, [["__scopeId", "data-v-e1c088b7"]]);
|
|
1634
1646
|
//#endregion
|
|
1635
1647
|
export { Xe as n, _t as t };
|