vue-data-ui 3.5.2 → 3.7.0

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