vue-data-ui 3.7.4 → 3.7.6

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