vue-data-ui 3.15.12 → 3.16.1

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 (218) hide show
  1. package/README.md +132 -59
  2. package/dist/A11yDataTable-KcVAX2cP.js +54 -0
  3. package/dist/{Arrow-DlPyR6HQ.js → Arrow-Bn-9n3bm.js} +1 -1
  4. package/dist/{BaseDraggableDialog-DSpKTn3R.js → BaseDraggableDialog-CIb-iD9g.js} +2 -2
  5. package/dist/{BaseIcon-CNx8Tzl5.js → BaseIcon-Cb3zzG6s.js} +1 -1
  6. package/dist/{BaseLegendToggle-Y61xahI4.js → BaseLegendToggle-BQVIawmA.js} +1 -1
  7. package/dist/{BaseZoomControls-CoFievy9.js → BaseZoomControls-DievbOeJ.js} +2 -2
  8. package/dist/ColorPicker-B0mV4xzu.js +255 -0
  9. package/dist/{DataTable-Bo1pmAqG.js → DataTable-DT2kIdQ6.js} +2 -2
  10. package/dist/Legend-CS7Xo5LK.js +101 -0
  11. package/dist/{NonSvgPenAndPaper-CGk_xThe.js → NonSvgPenAndPaper-VyJFyJ6X.js} +3 -3
  12. package/dist/{PackageVersion-DN9d0ME5.js → PackageVersion-DPO-OOVI.js} +1 -1
  13. package/dist/{PenAndPaper-DWV1FMIi.js → PenAndPaper-Ct3qJ4lA.js} +109 -101
  14. package/dist/{Shape-CSyWYgXc.js → Shape-BKRUOeKk.js} +1 -1
  15. package/dist/{Slicer-DZJA9IG-.js → Slicer-DUycDH_N.js} +2 -2
  16. package/dist/{SlicerPreview-I2J0UUF_.js → SlicerPreview-DTjwV0iY.js} +2 -2
  17. package/dist/{SparkTooltip-BiseJed3.js → SparkTooltip-BorBpltj.js} +1 -1
  18. package/dist/{Title-BfyrP-jp.js → Title-BeMKE1cj.js} +1 -1
  19. package/dist/{Tooltip-DL3QgjZf.js → Tooltip-Bf-kM3_A.js} +86 -68
  20. package/dist/{UserOptions-CrLqEimB.js → UserOptions-rW2fRf3V.js} +228 -222
  21. package/dist/components/arrow.js +1 -1
  22. package/dist/components/vue-ui-3d-bar.js +1 -1
  23. package/dist/components/vue-ui-accordion.js +1 -1
  24. package/dist/components/vue-ui-age-pyramid.js +1 -1
  25. package/dist/components/vue-ui-annotator.js +1 -1
  26. package/dist/components/vue-ui-bullet.js +1 -1
  27. package/dist/components/vue-ui-bump.js +1 -1
  28. package/dist/components/vue-ui-candlestick.js +1 -1
  29. package/dist/components/vue-ui-carousel-table.js +1 -1
  30. package/dist/components/vue-ui-chestnut.js +1 -1
  31. package/dist/components/vue-ui-chord.js +1 -1
  32. package/dist/components/vue-ui-circle-pack.js +1 -1
  33. package/dist/components/vue-ui-cursor.js +1 -1
  34. package/dist/components/vue-ui-dag.js +1 -1
  35. package/dist/components/vue-ui-dashboard.js +1 -1
  36. package/dist/components/vue-ui-digits.js +1 -1
  37. package/dist/components/vue-ui-donut-evolution.js +1 -1
  38. package/dist/components/vue-ui-donut.js +1 -1
  39. package/dist/components/vue-ui-dumbbell.js +1 -1
  40. package/dist/components/vue-ui-flow.js +1 -1
  41. package/dist/components/vue-ui-funnel.js +1 -1
  42. package/dist/components/vue-ui-galaxy.js +1 -1
  43. package/dist/components/vue-ui-gauge.js +1 -1
  44. package/dist/components/vue-ui-geo.js +1 -1
  45. package/dist/components/vue-ui-gizmo.js +1 -1
  46. package/dist/components/vue-ui-heatmap.js +1 -1
  47. package/dist/components/vue-ui-history-plot.js +1 -1
  48. package/dist/components/vue-ui-horizontal-bar.js +1 -1
  49. package/dist/components/vue-ui-icon.js +1 -1
  50. package/dist/components/vue-ui-kpi.js +1 -1
  51. package/dist/components/vue-ui-mini-loader.js +1 -1
  52. package/dist/components/vue-ui-molecule.js +1 -1
  53. package/dist/components/vue-ui-mood-radar.js +1 -1
  54. package/dist/components/vue-ui-nested-donuts.js +1 -1
  55. package/dist/components/vue-ui-onion.js +1 -1
  56. package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
  57. package/dist/components/vue-ui-quadrant.js +1 -1
  58. package/dist/components/vue-ui-quick-chart.js +1 -1
  59. package/dist/components/vue-ui-radar.js +1 -1
  60. package/dist/components/vue-ui-rating.js +1 -1
  61. package/dist/components/vue-ui-relation-circle.js +1 -1
  62. package/dist/components/vue-ui-ridgeline.js +1 -1
  63. package/dist/components/vue-ui-rings.js +1 -1
  64. package/dist/components/vue-ui-scatter.js +1 -1
  65. package/dist/components/vue-ui-skeleton.js +1 -1
  66. package/dist/components/vue-ui-smiley.js +1 -1
  67. package/dist/components/vue-ui-spark-trend.js +1 -1
  68. package/dist/components/vue-ui-sparkbar.js +1 -1
  69. package/dist/components/vue-ui-sparkgauge.js +1 -1
  70. package/dist/components/vue-ui-sparkhistogram.js +1 -1
  71. package/dist/components/vue-ui-sparkline.js +1 -1
  72. package/dist/components/vue-ui-sparkstackbar.js +1 -1
  73. package/dist/components/vue-ui-stackbar.js +1 -1
  74. package/dist/components/vue-ui-stackline.js +1 -1
  75. package/dist/components/vue-ui-strip-plot.js +1 -1
  76. package/dist/components/vue-ui-table-heatmap.js +1 -1
  77. package/dist/components/vue-ui-table-sparkline.js +1 -1
  78. package/dist/components/vue-ui-table.js +1 -1
  79. package/dist/components/vue-ui-thermometer.js +1 -1
  80. package/dist/components/vue-ui-timer.js +1 -1
  81. package/dist/components/vue-ui-tiremarks.js +1 -1
  82. package/dist/components/vue-ui-treemap.js +1 -1
  83. package/dist/components/vue-ui-vertical-bar.js +1 -1
  84. package/dist/components/vue-ui-waffle.js +1 -1
  85. package/dist/components/vue-ui-wheel.js +1 -1
  86. package/dist/components/vue-ui-word-cloud.js +1 -1
  87. package/dist/components/vue-ui-world.js +1 -1
  88. package/dist/components/vue-ui-xy-canvas.js +1 -1
  89. package/dist/components/vue-ui-xy.js +1 -1
  90. package/dist/{dom-to-png-BAqzNjb1.js → dom-to-png-CtxhhdWb.js} +1 -1
  91. package/dist/{exposedLib-H4lmBl1t.js → exposedLib-DlqmhBx3.js} +1 -1
  92. package/dist/{img-BYYzY_QU.js → img-LXxMLmCg.js} +1 -1
  93. package/dist/{labelUtils-CTXUc3V9.js → labelUtils-CqTHa20R.js} +1 -1
  94. package/dist/{lib-GwPnJSrY.js → lib-DBptbyyI.js} +106 -84
  95. package/dist/{pdf-z-YiJeJQ.js → pdf-B4tTdfvl.js} +1 -1
  96. package/dist/style.css +1 -1
  97. package/dist/types/vue-data-ui.d.ts +59 -0
  98. package/dist/{useAutoSizeLabelsInsideViewbox-80fzdfxt.js → useAutoSizeLabelsInsideViewbox-DX7LdvFX.js} +1 -1
  99. package/dist/{useConfig-CIgyKZ6R.js → useConfig-DO94Aj5s.js} +953 -700
  100. package/dist/{useNestedProp-BBT0mbHh.js → useNestedProp-Bf5XFbs8.js} +1 -1
  101. package/dist/{useObjectBindings-BlXBVtRa.js → useObjectBindings-DQ8g8Jwi.js} +1 -1
  102. package/dist/usePrefersMotion-CUKm8_t8.js +15 -0
  103. package/dist/{usePrinter-DiK5R6k-.js → usePrinter-CEpYU3r5.js} +2 -2
  104. package/dist/utils.js +3 -3
  105. package/dist/{vue-data-ui-C2kPofmi.js → vue-data-ui-DXGkXRnC.js} +68 -68
  106. package/dist/vue-data-ui.js +72 -72
  107. package/dist/vue-ui-3d-bar-BaFpQnd5.js +1597 -0
  108. package/dist/{vue-ui-accordion-BGHTqIBt.js → vue-ui-accordion-nvggWcGN.js} +4 -4
  109. package/dist/vue-ui-age-pyramid-CRM498Pc.js +1069 -0
  110. package/dist/{vue-ui-annotator-B1GWVtPp.js → vue-ui-annotator-CkPi9moo.js} +7 -7
  111. package/dist/{vue-ui-bullet-DPoGGtaG.js → vue-ui-bullet-BBiwof3c.js} +158 -150
  112. package/dist/vue-ui-bump-Brxpu4xV.js +1147 -0
  113. package/dist/vue-ui-candlestick-DAnZv77-.js +1587 -0
  114. package/dist/{vue-ui-carousel-table-CmiHTJ8E.js → vue-ui-carousel-table-BHRZBYY0.js} +168 -160
  115. package/dist/vue-ui-chestnut-CbrYnRgm.js +1812 -0
  116. package/dist/vue-ui-chord-CaX_IUVs.js +1326 -0
  117. package/dist/vue-ui-circle-pack-CR3h53sc.js +988 -0
  118. package/dist/{vue-ui-cursor-B4mHR7QC.js → vue-ui-cursor-Cjfazw7Z.js} +4 -4
  119. package/dist/vue-ui-dag-B9vH3c66.js +3047 -0
  120. package/dist/{vue-ui-dashboard-Bo5FX73U.js → vue-ui-dashboard-DWll05qs.js} +70 -70
  121. package/dist/{vue-ui-digits-mpo2IcM5.js → vue-ui-digits-DcM67rMx.js} +76 -66
  122. package/dist/vue-ui-donut-Be5G38P5.js +2229 -0
  123. package/dist/vue-ui-donut-evolution-BLSesj3c.js +1358 -0
  124. package/dist/vue-ui-dumbbell-DIMiCY4r.js +1380 -0
  125. package/dist/vue-ui-flow-zvZylhgr.js +1202 -0
  126. package/dist/{vue-ui-funnel-BRkaEkBb.js → vue-ui-funnel-CSri-oWm.js} +7 -7
  127. package/dist/vue-ui-galaxy-CGykxsAI.js +1012 -0
  128. package/dist/{vue-ui-gauge-J2VYHsQe.js → vue-ui-gauge-D1MNB9Jq.js} +8 -8
  129. package/dist/vue-ui-geo-DdJDGhG2.js +1437 -0
  130. package/dist/{vue-ui-gizmo-DEec3-v9.js → vue-ui-gizmo-BZYRHGFm.js} +77 -68
  131. package/dist/vue-ui-heatmap-CryOx6XK.js +1500 -0
  132. package/dist/vue-ui-history-plot-C85iw9Kl.js +1449 -0
  133. package/dist/vue-ui-horizontal-bar-BoBZOybC.js +1637 -0
  134. package/dist/vue-ui-kpi-DHrolXw6.js +109 -0
  135. package/dist/{vue-ui-mini-loader-CoOHvZUk.js → vue-ui-mini-loader-Bc3fEQ9j.js} +3 -3
  136. package/dist/{vue-ui-molecule-Chq1qWDK.js → vue-ui-molecule-DJ_BQ4DK.js} +6 -6
  137. package/dist/vue-ui-mood-radar-CBE02TpQ.js +1086 -0
  138. package/dist/vue-ui-nested-donuts-YTFtb4CL.js +1595 -0
  139. package/dist/vue-ui-onion-B9l81-PS.js +1124 -0
  140. package/dist/vue-ui-parallel-coordinate-plot-C1e_rs8J.js +1252 -0
  141. package/dist/vue-ui-quadrant-C1qsLCRn.js +1759 -0
  142. package/dist/vue-ui-quick-chart-DFoz3WiA.js +2216 -0
  143. package/dist/vue-ui-radar-Cmo3p-UA.js +1139 -0
  144. package/dist/{vue-ui-rating-zV58MDQh.js → vue-ui-rating-BAHhYt_A.js} +3 -3
  145. package/dist/vue-ui-relation-circle-BqwznVwf.js +782 -0
  146. package/dist/vue-ui-ridgeline-CDk9eXJq.js +1473 -0
  147. package/dist/vue-ui-rings-BRkGoQdL.js +1156 -0
  148. package/dist/vue-ui-scatter-BxDtWASQ.js +1831 -0
  149. package/dist/{vue-ui-skeleton-CbqNz9IE.js → vue-ui-skeleton-D6kTb9aO.js} +4 -4
  150. package/dist/{vue-ui-smiley-BK5EKp9u.js → vue-ui-smiley-CzVaLlpB.js} +3 -3
  151. package/dist/vue-ui-spark-trend-D8Mf2A1w.js +378 -0
  152. package/dist/{vue-ui-sparkbar-DUDWvTo-.js → vue-ui-sparkbar-BbYj56c3.js} +86 -84
  153. package/dist/vue-ui-sparkgauge-DXzOSLRb.js +256 -0
  154. package/dist/vue-ui-sparkhistogram-DMfSx1iH.js +474 -0
  155. package/dist/vue-ui-sparkline-D-rQ9PsC.js +1327 -0
  156. package/dist/vue-ui-sparkstackbar-DK5n8IKP.js +621 -0
  157. package/dist/vue-ui-stackbar-BHthy6jf.js +2070 -0
  158. package/dist/vue-ui-stackline-C6-WNpKD.js +2164 -0
  159. package/dist/vue-ui-strip-plot-CHu-1ilI.js +1183 -0
  160. package/dist/{vue-ui-table-BHuXI4Eq.js → vue-ui-table-DW9JGsLq.js} +6 -6
  161. package/dist/{vue-ui-table-heatmap-y88sBfu3.js → vue-ui-table-heatmap-LYqoBit9.js} +6 -6
  162. package/dist/{vue-ui-table-sparkline-ClpLLKi2.js → vue-ui-table-sparkline-CXK1dFr-.js} +5 -5
  163. package/dist/{vue-ui-thermometer-sjruUGQx.js → vue-ui-thermometer-BN8tflOz.js} +272 -256
  164. package/dist/{vue-ui-timer-CgdgMKIc.js → vue-ui-timer-DGT0UBOF.js} +6 -6
  165. package/dist/{vue-ui-tiremarks-UBDpAIVr.js → vue-ui-tiremarks-BZ-osQqY.js} +204 -191
  166. package/dist/vue-ui-treemap-98KaVRyd.js +1723 -0
  167. package/dist/vue-ui-waffle-Cb7oJnIc.js +1321 -0
  168. package/dist/vue-ui-wheel-sfew1fjw.js +738 -0
  169. package/dist/vue-ui-word-cloud-vq1t9JHr.js +1548 -0
  170. package/dist/{vue-ui-world-D-3wgoTn.js → vue-ui-world-CN0f6elD.js} +8 -8
  171. package/dist/vue-ui-xy-BdzEiImZ.js +3877 -0
  172. package/dist/vue-ui-xy-canvas-CWQzUQzY.js +1810 -0
  173. package/package.json +2 -2
  174. package/dist/ColorPicker-j0ySewhI.js +0 -244
  175. package/dist/Legend-1LMMsPxL.js +0 -90
  176. package/dist/vue-ui-3d-bar-BhNgFaJA.js +0 -1484
  177. package/dist/vue-ui-age-pyramid-CuYRf5v-.js +0 -997
  178. package/dist/vue-ui-bump-C_fKharc.js +0 -1059
  179. package/dist/vue-ui-candlestick-BY-_E7eZ.js +0 -1487
  180. package/dist/vue-ui-chestnut-C-bQYaNI.js +0 -1557
  181. package/dist/vue-ui-chord-uQYQgyGM.js +0 -1220
  182. package/dist/vue-ui-circle-pack-CdbDcuDw.js +0 -907
  183. package/dist/vue-ui-dag-DsHUvjvm.js +0 -2885
  184. package/dist/vue-ui-donut-CzCgCVsx.js +0 -2139
  185. package/dist/vue-ui-donut-evolution-C_ck_TOR.js +0 -1297
  186. package/dist/vue-ui-dumbbell-CVSA90b2.js +0 -1293
  187. package/dist/vue-ui-flow-CsbSaFnu.js +0 -1075
  188. package/dist/vue-ui-galaxy-DWKHDciu.js +0 -914
  189. package/dist/vue-ui-geo-DykhEWVq.js +0 -1331
  190. package/dist/vue-ui-heatmap-BEDirv8T.js +0 -1334
  191. package/dist/vue-ui-history-plot-Bs96PebH.js +0 -1292
  192. package/dist/vue-ui-horizontal-bar-ClQcB9nL.js +0 -1522
  193. package/dist/vue-ui-kpi-DlUEHKuw.js +0 -101
  194. package/dist/vue-ui-mood-radar-A2LBLgUi.js +0 -967
  195. package/dist/vue-ui-nested-donuts-DFX251aT.js +0 -1513
  196. package/dist/vue-ui-onion-CW0YO9Ro.js +0 -1045
  197. package/dist/vue-ui-parallel-coordinate-plot-UFg10bHP.js +0 -1134
  198. package/dist/vue-ui-quadrant-C1pLW2zA.js +0 -1647
  199. package/dist/vue-ui-quick-chart-FaxttnJY.js +0 -2030
  200. package/dist/vue-ui-radar-DE70LPBZ.js +0 -1067
  201. package/dist/vue-ui-relation-circle-iuRXIyRU.js +0 -704
  202. package/dist/vue-ui-ridgeline-CwvDh5pG.js +0 -1385
  203. package/dist/vue-ui-rings-80ZUki42.js +0 -1083
  204. package/dist/vue-ui-scatter-FdAAYJOK.js +0 -1670
  205. package/dist/vue-ui-spark-trend-C68p8-Xp.js +0 -349
  206. package/dist/vue-ui-sparkgauge-DdRtHQDe.js +0 -245
  207. package/dist/vue-ui-sparkhistogram-C9DvzQae.js +0 -396
  208. package/dist/vue-ui-sparkline-B2RDrdiR.js +0 -1273
  209. package/dist/vue-ui-sparkstackbar-BsIOHUE5.js +0 -475
  210. package/dist/vue-ui-stackbar-BZl0kEkb.js +0 -2001
  211. package/dist/vue-ui-stackline-2VKxwFei.js +0 -2099
  212. package/dist/vue-ui-strip-plot-B9nBSRyY.js +0 -1080
  213. package/dist/vue-ui-treemap-BS5EilZf.js +0 -1645
  214. package/dist/vue-ui-waffle-CbX5K9Q2.js +0 -1211
  215. package/dist/vue-ui-wheel-BIJ09H5D.js +0 -723
  216. package/dist/vue-ui-word-cloud-DJmJ-oYT.js +0 -1466
  217. package/dist/vue-ui-xy-canvas-4auyhlTr.js +0 -1717
  218. package/dist/vue-ui-xy-f67V1xjd.js +0 -3713
@@ -1,907 +0,0 @@
1
- import { defineAsyncComponent as N, computed as k, ref as c, toRefs as At, watch as re, onMounted as Ft, onBeforeUnmount as Dt, openBlock as h, createElementBlock as g, unref as i, normalizeStyle as Q, normalizeClass as Te, createBlock as Y, withCtx as b, renderSlot as v, normalizeProps as T, guardReactiveProps as S, createCommentVNode as x, createSlots as et, createElementVNode as P, createVNode as Se, Fragment as j, renderList as _e, mergeProps as ue, toDisplayString as ie, resolveDynamicComponent as It, createTextVNode as tt, nextTick as ot } from "vue";
2
- import { u as Mt } from "./useConfig-CIgyKZ6R.js";
3
- import { j as lt, t as at, m as Oe, p as ce, o as Nt, q as Rt, n as Bt, s as zt, l as nt, X as Et, x as Lt, w as Ut, W as Pe, d as Vt, a0 as Gt, a1 as Yt, T as jt, k as Xt } from "./lib-GwPnJSrY.js";
4
- import { u as qt } from "./usePrinter-DiK5R6k-.js";
5
- import { u as Wt, B as Ht } from "./BaseScanner-BhhkKVoj.js";
6
- import { u as Zt } from "./useSvgExport-ByUukOZt.js";
7
- import { u as Ae } from "./useNestedProp-BBT0mbHh.js";
8
- import { u as Jt } from "./useThemeCheck-D1ZYXUwG.js";
9
- import { u as Kt } from "./useUserOptionState-BIvW1Kz7.js";
10
- import { u as Qt } from "./useChartAccessibility-9icAAmYg.js";
11
- import { t as eo, u as to } from "./useResponsive-DfdjqQps.js";
12
- import oo from "./img-BYYzY_QU.js";
13
- import lo from "./Title-BfyrP-jp.js";
14
- import ao from "./vue_ui_circle_pack-CLmw8nHe.js";
15
- import { _ as no } from "./_plugin-vue_export-helper-CHgC5LLL.js";
16
- function so(u, d = 0) {
17
- const y = u.reduce((a, { x: r, r: p }) => Math.min(a, r - p - d), 1 / 0), m = u.reduce((a, { x: r, r: p }) => Math.max(a, r + p + d), -1 / 0), f = u.reduce((a, { y: r, r: p }) => Math.min(a, r - p - d), 1 / 0), n = u.reduce((a, { y: r, r: p }) => Math.max(a, r + p + d), -1 / 0);
18
- return [y, f, m - y, n - f];
19
- }
20
- function ro(u, d, y) {
21
- const m = u._, f = u.next._, n = m.r + f.r, a = (m.x * f.r + f.x * m.r) / n, r = (m.y * f.r + f.y * m.r) / n;
22
- return Math.max(Math.abs(a * y), Math.abs(r * d));
23
- }
24
- function uo(u, d, y) {
25
- const m = ro, f = u.length;
26
- if (!f) return u;
27
- let n, a, r;
28
- if (n = u[0], n.x = 0, n.y = 0, !(f > 1) || (a = u[1], n.x = -a.r, a.x = n.r, a.y = 0, !(f > 2))) return u;
29
- st(a, n, r = u[2]), n = new ve(n), a = new ve(a), r = new ve(r), n.next = r.previous = a, a.next = n.previous = r, r.next = a.previous = n;
30
- e: for (let p = 3; p < f; ++p) {
31
- st(n._, a._, r = u[p]), r = new ve(r);
32
- let C = a.next, F = n.previous, $ = a._.r, X = n._.r;
33
- do
34
- if ($ <= X) {
35
- if (rt(C._, r._)) {
36
- a = C, n.next = a, a.previous = n, --p;
37
- continue e;
38
- }
39
- $ += C._.r, C = C.next;
40
- } else {
41
- if (rt(F._, r._)) {
42
- n = F, n.next = a, a.previous = n, --p;
43
- continue e;
44
- }
45
- X += F._.r, F = F.previous;
46
- }
47
- while (C !== F.next);
48
- r.previous = n, r.next = a, n.next = a.previous = a = r;
49
- let ee = m(n, y, d), te;
50
- for (; (r = r.next) !== a; )
51
- (te = m(r, y, d)) < ee && (n = r, ee = te);
52
- a = n.next;
53
- }
54
- return u;
55
- }
56
- function st(u, d, y) {
57
- const m = u.x - d.x, f = u.y - d.y, n = m * m + f * f;
58
- if (n) {
59
- const a = (d.r + y.r) ** 2, r = (u.r + y.r) ** 2;
60
- if (a > r) {
61
- const p = (n + r - a) / (2 * n), C = Math.sqrt(Math.max(0, r / n - p * p));
62
- y.x = u.x - p * m - C * f, y.y = u.y - p * f + C * m;
63
- } else {
64
- const p = (n + a - r) / (2 * n), C = Math.sqrt(Math.max(0, a / n - p * p));
65
- y.x = d.x + p * m - C * f, y.y = d.y + p * f + C * m;
66
- }
67
- } else
68
- y.x = d.x + y.r, y.y = d.y;
69
- }
70
- function rt(u, d) {
71
- const y = u.r + d.r - 1e-6, m = d.x - u.x, f = d.y - u.y;
72
- return y > 0 && y * y > m * m + f * f;
73
- }
74
- class ve {
75
- constructor(d) {
76
- this._ = d, this.next = null, this.previous = null;
77
- }
78
- }
79
- const io = ["id"], co = ["xmlns", "viewBox"], vo = ["x", "y", "width", "height"], fo = ["id"], po = ["stop-color"], ho = ["stop-color"], yo = ["stop-color"], mo = { key: 0 }, bo = ["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 = {
80
- key: 4,
81
- class: "vue-data-ui-watermark"
82
- }, $o = ["innerHTML"], To = {
83
- __name: "vue-ui-circle-pack",
84
- props: {
85
- config: {
86
- type: Object,
87
- default() {
88
- return {};
89
- }
90
- },
91
- dataset: {
92
- type: Array,
93
- default() {
94
- return [];
95
- }
96
- }
97
- },
98
- emits: ["selectDatapoint", "copyAlt"],
99
- setup(u, { expose: d, emit: y }) {
100
- const m = N(() => import("./Tooltip-DL3QgjZf.js")), f = N(() => import("./BaseIcon-CNx8Tzl5.js")), n = N(() => import("./vue-ui-accordion-BGHTqIBt.js")), a = N(() => import("./DataTable-Bo1pmAqG.js")), r = N(() => import("./UserOptions-CrLqEimB.js")), p = N(() => import("./PenAndPaper-DWV1FMIi.js")), C = N(() => import("./PackageVersion-DN9d0ME5.js")), F = N(() => import("./BaseDraggableDialog-DSpKTn3R.js")), $ = u, X = y, { vue_ui_circle_pack: ee } = Mt(), { isThemeValid: te, warnInvalidTheme: ut } = Jt(), Fe = k(() => !!$.dataset && $.dataset.length), L = c(lt()), _ = c(null), De = c(null), Ie = c(null), Me = c(0), Ne = c(0), Re = c(0), Be = c(null), U = c(null), de = c(null), fe = c(!1), pe = c(""), D = c(null), oe = c(!1), le = c(!1), e = c(ye()), q = k(() => e.value.userOptions.useCursorPointer), it = k(() => at({
101
- defaultConfig: {
102
- userOptions: { show: !1 },
103
- table: { show: !1 },
104
- style: {
105
- chart: {
106
- backgroundColor: "#99999930",
107
- circles: {
108
- stroke: "#6A6A6A",
109
- labels: {
110
- name: { show: !1 },
111
- value: { show: !1 }
112
- }
113
- }
114
- }
115
- }
116
- },
117
- userConfig: e.value.skeletonConfig ?? {}
118
- })), { loading: ze, FINAL_DATASET: Ee } = Wt({
119
- ...At($),
120
- FINAL_CONFIG: e,
121
- prepareConfig: ye,
122
- skeletonDataset: $.config?.skeletonDataset ?? [
123
- { name: "_", value: 13, color: "#F2F2F2" },
124
- { name: "_", value: 8, color: "#DBDBDB" },
125
- { name: "_", value: 5, color: "#ADADAD" },
126
- { name: "_", value: 3, color: "#969696" },
127
- { name: "_", value: 2, color: "#808080" },
128
- { name: "_", value: 1, color: "#696969" }
129
- ],
130
- skeletonConfig: at({
131
- defaultConfig: e.value,
132
- userConfig: it.value
133
- })
134
- }), { svgRef: V } = Qt({ config: e.value.style.chart.title }), {
135
- userOptionsVisible: he,
136
- setUserOptionsVisibility: Le,
137
- keepUserOptionState: Ue
138
- } = Kt({ config: e.value });
139
- function ye() {
140
- const t = Ae({
141
- userConfig: $.config,
142
- defaultConfig: ee
143
- }), l = t.theme;
144
- if (!l) return t;
145
- if (!te.value(t))
146
- return ut(t), t;
147
- const o = Ae({
148
- userConfig: ao[l] || $.config,
149
- defaultConfig: t
150
- }), s = Ae({
151
- userConfig: $.config,
152
- defaultConfig: o
153
- });
154
- return {
155
- ...s,
156
- customPalette: s.customPalette.length ? s.customPalette : Oe[l] || ce
157
- };
158
- }
159
- re(() => $.config, (t) => {
160
- e.value = ye(), he.value = !e.value.userOptions.showOnChartHover, ge(), Me.value += 1, Ne.value += 1, O.value.showTable = e.value.table.show;
161
- }, { deep: !0 });
162
- const { isPrinting: me, isImaging: be, generatePdf: Ve, generateImage: Ge } = qt({
163
- elementId: `vue-ui-circle-pack_${L.value}`,
164
- fileName: e.value.style.chart.title.text || "vue-ui-circle-pack",
165
- options: e.value.userOptions.print
166
- }), ct = k(() => e.value.userOptions.show && !e.value.style.chart.title.text), O = c({
167
- showTable: e.value.table.show,
168
- showTooltip: e.value.style.chart.tooltip.show
169
- });
170
- re(e, () => {
171
- O.value = {
172
- showTable: e.value.table.show,
173
- showTooltip: e.value.style.chart.tooltip.show
174
- };
175
- }, { immediate: !0 });
176
- const vt = c({ h: 10, w: 10 }), Ye = c([0, 0, 100, 100]), dt = k(() => e.value.debug), ft = k(() => {
177
- const t = e.value.style?.chart || {};
178
- return t.dimensions && typeof t.dimensions.width == "number" ? t.dimensions.width : typeof t.width == "number" ? t.width : 300;
179
- }), pt = k(() => {
180
- const t = e.value.style?.chart || {};
181
- return t.dimensions && typeof t.dimensions.height == "number" ? t.dimensions.height : typeof t.height == "number" ? t.height : 300;
182
- }), R = c([]), I = c("0 0 100 100"), A = c(null), M = c(null);
183
- function je(t, l) {
184
- vt.value = {
185
- w: t,
186
- h: l
187
- };
188
- const o = B.value.map((G) => ({ ...G }));
189
- if (!o.length) {
190
- R.value = [], Ye.value = [0, 0, t, l], I.value = `0 0 ${t} ${l}`;
191
- return;
192
- }
193
- const s = uo(o, l, t), [w, E, J, $e] = so(s, 1), K = Math.min(
194
- J ? t / J : 1,
195
- $e ? l / $e : 1
196
- ), Ot = (t - J * K) / 2, Pt = (l - $e * K) / 2;
197
- R.value = s.map((G) => ({
198
- ...G,
199
- x: (G.x - w) * K + Ot,
200
- y: (G.y - E) * K + Pt,
201
- r: G.r * K
202
- })), Ye.value = [0, 0, t, l], I.value = `0 0 ${t} ${l}`;
203
- }
204
- function ht() {
205
- if (!e.value.responsive || !_.value) return;
206
- const t = eo(() => {
207
- const { width: l, height: o } = to({
208
- chart: _.value,
209
- title: e.value.style.chart.title.text ? De.value : null,
210
- legend: null,
211
- source: Be.value,
212
- noTitle: Ie.value
213
- });
214
- requestAnimationFrame(() => {
215
- !l || !o || (V.value && (V.value.setAttribute("width", l), V.value.setAttribute("height", o)), je(l, o));
216
- });
217
- });
218
- A.value && (M.value && A.value.unobserve(M.value), A.value.disconnect()), A.value = new ResizeObserver(t), M.value = _.value.parentNode || _.value, M.value && A.value.observe(M.value), t();
219
- }
220
- function Xe() {
221
- A.value && (M.value && A.value.unobserve(M.value), A.value.disconnect(), A.value = null, M.value = null);
222
- }
223
- async function ge() {
224
- Nt($.dataset) && Rt({
225
- componentName: "VueUiCirclePack",
226
- type: "dataset",
227
- debug: dt.value
228
- });
229
- const t = ft.value, l = pt.value;
230
- je(t, l), e.value.responsive ? ht() : Xe();
231
- }
232
- Ft(ge), Dt(() => {
233
- Xe();
234
- }), re(() => Ee.value, async (t) => {
235
- await ge();
236
- }, { deep: !0 });
237
- const yt = k(() => Bt(e.value.customPalette)), B = k(() => Ee.value.map((t, l) => {
238
- const o = zt(t.color) || yt.value[l] || Oe[e.value.theme || "default"][l % Oe[e.value.theme || "default"].length] || ce[l] || ce[l % ce.length];
239
- return {
240
- ...t,
241
- r: t.value,
242
- id: lt(),
243
- color: o
244
- };
245
- }).filter((t) => ![null, void 0, 1 / 0, -1 / 0].includes(t.value))), W = k(() => R.value.length ? Math.max(...R.value.map((t) => t.r)) : 0);
246
- function qe(t, l) {
247
- return W.value ? l / W.value * t : 0;
248
- }
249
- function mt(t, l) {
250
- fe.value = !1, D.value = null, e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: t, seriesIndex: l });
251
- }
252
- function bt(t, l) {
253
- X("selectDatapoint", t), e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: t, seriesIndex: l });
254
- }
255
- const ke = c(null), H = c(!1);
256
- function gt(t, l) {
257
- D.value = t, e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: t, seriesIndex: l }), ke.value = { datapoint: t, seriesIndex: l, config: e.value, series: B.value }, fe.value = !0;
258
- const o = e.value.style.chart.tooltip.customFormat;
259
- if (H.value = !1, jt(o))
260
- try {
261
- const s = o({
262
- seriesIndex: l,
263
- datapoint: t,
264
- series: B.value,
265
- config: e.value
266
- });
267
- typeof s == "string" && (pe.value = s, H.value = !0);
268
- } catch {
269
- console.warn("Custom format cannot be applied."), H.value = !1;
270
- }
271
- if (!H.value) {
272
- let s = "";
273
- s += `
274
- <div style="display:flex;align-items:center;gap:4px;">
275
- <svg viewBox="0 0 10 10" height="${e.value.style.chart.tooltip.fontSize}" width="${e.value.style.chart.tooltip.fontSize}">
276
- <circle
277
- cx="5"
278
- cy="5"
279
- r="5"
280
- fill="${e.value.style.chart.circles.gradient.show ? `url(#${t.id})` : t.color}"
281
- />
282
- </svg>
283
- <span>${t.name}: <b>${Ce(t)}</b></span>
284
- </div>
285
- `, pe.value = s;
286
- }
287
- }
288
- function Ce(t) {
289
- return Xt(
290
- e.value.style.chart.circles.labels.value.formatter,
291
- t.value,
292
- nt({
293
- p: e.value.style.chart.circles.labels.value.prefix,
294
- v: t.value,
295
- s: e.value.style.chart.circles.labels.value.suffix,
296
- r: e.value.style.chart.circles.labels.value.rounding
297
- })
298
- );
299
- }
300
- function We(t) {
301
- if (!t)
302
- return 0;
303
- const l = Ce(t), o = t.r / (l.length || 1) * (l.length === 1 ? 1 : 2);
304
- return Math.min(t.r / 2.5, o);
305
- }
306
- const z = c(!1);
307
- function He(t) {
308
- z.value = t, Re.value += 1;
309
- }
310
- const ae = c(!1);
311
- function we() {
312
- ae.value = !ae.value;
313
- }
314
- const ne = k(() => {
315
- const t = B.value.map((o) => ({
316
- name: o.name,
317
- value: o.value,
318
- color: o.color
319
- })).toSorted((o, s) => s.value - o.value), l = t.map((o) => o.value);
320
- return { head: t, body: l };
321
- });
322
- function xe(t = null) {
323
- ot(() => {
324
- const l = ne.value.head.map((w, E) => [[w.name], [ne.value.body[E]]]), o = [
325
- [e.value.style.chart.title.text],
326
- [e.value.style.chart.title.subtitle.text],
327
- [[""], [e.value.table.columnNames.value]]
328
- ].concat(l), s = Gt(o);
329
- t ? t(s) : Yt({ csvContent: s, title: e.value.style.chart.title.text || "vue-ui-circle-pack" });
330
- });
331
- }
332
- const se = k(() => {
333
- const t = [
334
- e.value.table.columnNames.datapoint,
335
- e.value.table.columnNames.value
336
- ], l = ne.value.head.map((w, E) => {
337
- const J = nt({
338
- p: e.value.style.chart.circles.labels.value.prefix,
339
- v: ne.value.body[E],
340
- s: e.value.style.chart.circles.labels.value.suffix,
341
- r: e.value.style.chart.circles.labels.value.rounding
342
- });
343
- return [
344
- {
345
- color: w.color,
346
- name: w.name
347
- },
348
- J
349
- ];
350
- }), o = {
351
- th: {
352
- backgroundColor: e.value.table.th.backgroundColor,
353
- color: e.value.table.th.color,
354
- outline: e.value.table.th.outline
355
- },
356
- td: {
357
- backgroundColor: e.value.table.td.backgroundColor,
358
- color: e.value.table.td.color,
359
- outline: e.value.table.td.outline
360
- },
361
- breakpoint: e.value.table.responsiveBreakpoint
362
- };
363
- return {
364
- colNames: [
365
- e.value.table.columnNames.datapoint,
366
- e.value.table.columnNames.value
367
- ],
368
- head: t,
369
- body: l,
370
- config: o
371
- };
372
- });
373
- function Ze() {
374
- O.value.showTable = !O.value.showTable;
375
- }
376
- function kt() {
377
- O.value.showTooltip = !O.value.showTooltip;
378
- }
379
- function Ct() {
380
- return B.value;
381
- }
382
- async function wt({ scale: t = 2 } = {}) {
383
- if (!_.value) return;
384
- const { width: l, height: o } = _.value.getBoundingClientRect(), s = l / o, { imageUri: w, base64: E } = await oo({ domElement: _.value, base64: !0, img: !0, scale: t });
385
- return {
386
- imageUri: w,
387
- base64: E,
388
- title: e.value.style.chart.title.text,
389
- width: l,
390
- height: o,
391
- aspectRatio: s
392
- };
393
- }
394
- const Z = k(() => {
395
- const t = e.value.table.useDialog && !e.value.table.show, l = O.value.showTable;
396
- return {
397
- component: t ? F : n,
398
- title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? `: ${e.value.style.chart.title.subtitle.text}` : ""}`,
399
- props: t ? {
400
- backgroundColor: e.value.table.th.backgroundColor,
401
- color: e.value.table.th.color,
402
- headerColor: e.value.table.th.color,
403
- headerBg: e.value.table.th.backgroundColor,
404
- isFullscreen: z.value,
405
- fullscreenParent: _.value,
406
- forcedWidth: Math.min(500, window.innerWidth * 0.8),
407
- isCursorPointer: q.value
408
- } : {
409
- hideDetails: !0,
410
- config: {
411
- open: l,
412
- maxHeight: 1e4,
413
- body: {
414
- backgroundColor: e.value.style.chart.backgroundColor,
415
- color: e.value.style.chart.color
416
- },
417
- head: {
418
- backgroundColor: e.value.style.chart.backgroundColor,
419
- color: e.value.style.chart.color
420
- }
421
- }
422
- }
423
- };
424
- });
425
- re(() => O.value.showTable, (t) => {
426
- e.value.table.show || (t && e.value.table.useDialog && U.value ? U.value.open() : U.value && "close" in U.value && U.value.close());
427
- });
428
- function Je() {
429
- O.value.showTable = !1, de.value && de.value.setTableIconState(!1);
430
- }
431
- const xt = k(() => e.value.style.chart.backgroundColor), $t = k(() => e.value.style.chart.title), { exportSvg: Tt, getSvg: St } = Zt({
432
- svg: V,
433
- title: $t,
434
- backgroundColor: xt
435
- });
436
- async function Ke({ isCb: t }) {
437
- le.value = !0, await ot();
438
- try {
439
- if (t) {
440
- const { blob: l, url: o, text: s, dataUrl: w } = await St();
441
- await Promise.resolve(e.value.userOptions.callbacks.svg({ blob: l, url: o, text: s, dataUrl: w }));
442
- } else
443
- await Promise.resolve(Tt());
444
- } finally {
445
- le.value = !1;
446
- }
447
- }
448
- function _t(t) {
449
- if (t?.stage === "start") {
450
- oe.value = !0;
451
- return;
452
- }
453
- if (t?.stage === "end") {
454
- oe.value = !1;
455
- return;
456
- }
457
- Ge();
458
- }
459
- async function Qe() {
460
- if (X("copyAlt", {
461
- config: e.value,
462
- dataset: B.value
463
- }), !e.value.userOptions.callbacks.altCopy) {
464
- console.warn("Vue Data UI - A callback must be set for `altCopy` in userOptions.");
465
- return;
466
- }
467
- await Promise.resolve(e.value.userOptions.callbacks.altCopy({
468
- config: e.value,
469
- dataset: B.value
470
- }));
471
- }
472
- return d({
473
- getData: Ct,
474
- getImage: wt,
475
- generateCsv: xe,
476
- generatePdf: Ve,
477
- generateImage: Ge,
478
- generateSvg: Ke,
479
- toggleTable: Ze,
480
- toggleAnnotator: we,
481
- toggleFullscreen: He,
482
- copyAlt: Qe
483
- }), (t, l) => (h(), g("div", {
484
- id: `vue-ui-circle-pack_${L.value}`,
485
- class: Te(`vue-data-ui-component vue-ui-circle-pack ${z.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${i(ze) ? "loading" : ""}`),
486
- ref_key: "circlePackChart",
487
- ref: _,
488
- style: Q(`font-family:${e.value.style.fontFamily};text-align:center;background:${e.value.style.chart.backgroundColor};`),
489
- onMouseenter: l[1] || (l[1] = () => i(Le)(!0)),
490
- onMouseleave: l[2] || (l[2] = () => i(Le)(!1))
491
- }, [
492
- e.value.userOptions.buttons.annotator ? (h(), Y(i(p), {
493
- key: 0,
494
- svgRef: i(V),
495
- backgroundColor: e.value.style.chart.backgroundColor,
496
- color: e.value.style.chart.color,
497
- active: ae.value,
498
- scale: W.value / 100,
499
- isCursorPointer: q.value,
500
- onClose: we
501
- }, {
502
- "annotator-action-close": b(() => [
503
- v(t.$slots, "annotator-action-close", {}, void 0, !0)
504
- ]),
505
- "annotator-action-color": b(({ color: o }) => [
506
- v(t.$slots, "annotator-action-color", T(S({ color: o })), void 0, !0)
507
- ]),
508
- "annotator-action-draw": b(({ mode: o }) => [
509
- v(t.$slots, "annotator-action-draw", T(S({ mode: o })), void 0, !0)
510
- ]),
511
- "annotator-action-undo": b(({ disabled: o }) => [
512
- v(t.$slots, "annotator-action-undo", T(S({ disabled: o })), void 0, !0)
513
- ]),
514
- "annotator-action-redo": b(({ disabled: o }) => [
515
- v(t.$slots, "annotator-action-redo", T(S({ disabled: o })), void 0, !0)
516
- ]),
517
- "annotator-action-delete": b(({ disabled: o }) => [
518
- v(t.$slots, "annotator-action-delete", T(S({ disabled: o })), void 0, !0)
519
- ]),
520
- _: 3
521
- }, 8, ["svgRef", "backgroundColor", "color", "active", "scale", "isCursorPointer"])) : x("", !0),
522
- v(t.$slots, "userConfig", {}, void 0, !0),
523
- ct.value ? (h(), g("div", {
524
- key: 1,
525
- ref_key: "noTitle",
526
- ref: Ie,
527
- class: "vue-data-ui-no-title-space",
528
- style: "height:36px; width: 100%;background:transparent"
529
- }, null, 512)) : x("", !0),
530
- e.value.style.chart.title.text ? (h(), g("div", {
531
- key: 2,
532
- ref_key: "chartTitle",
533
- ref: De,
534
- style: "width:100%;background:transparent;padding-bottom:12px"
535
- }, [
536
- (h(), Y(lo, {
537
- key: `title_${Me.value}`,
538
- config: {
539
- title: {
540
- cy: "donut-div-title",
541
- ...e.value.style.chart.title
542
- },
543
- subtitle: {
544
- cy: "donut-div-subtitle",
545
- ...e.value.style.chart.title.subtitle
546
- }
547
- }
548
- }, null, 8, ["config"]))
549
- ], 512)) : x("", !0),
550
- e.value.userOptions.show && Fe.value && (i(Ue) || i(he)) ? (h(), Y(i(r), {
551
- ref_key: "userOptionsRef",
552
- ref: de,
553
- key: `user_option_${Re.value}`,
554
- backgroundColor: e.value.style.chart.backgroundColor,
555
- color: e.value.style.chart.color,
556
- isPrinting: i(me),
557
- isImaging: i(be),
558
- uid: L.value,
559
- hasTooltip: e.value.userOptions.buttons.tooltip,
560
- isTooltip: O.value.showTooltip,
561
- hasLabel: !1,
562
- hasPdf: e.value.userOptions.buttons.pdf,
563
- hasImg: e.value.userOptions.buttons.img,
564
- hasSvg: e.value.userOptions.buttons.svg,
565
- hasXls: e.value.userOptions.buttons.csv,
566
- hasTable: e.value.userOptions.buttons.table,
567
- hasFullscreen: e.value.userOptions.buttons.fullscreen,
568
- hasAltCopy: e.value.userOptions.buttons.altCopy,
569
- isFullscreen: z.value,
570
- chartElement: _.value,
571
- position: e.value.userOptions.position,
572
- callbacks: e.value.userOptions.callbacks,
573
- printScale: e.value.userOptions.print.scale,
574
- titles: { ...e.value.userOptions.buttonTitles },
575
- hasAnnotator: e.value.userOptions.buttons.annotator,
576
- isAnnotation: ae.value,
577
- tableDialog: e.value.table.useDialog,
578
- isCursorPointer: q.value,
579
- onToggleFullscreen: He,
580
- onGeneratePdf: i(Ve),
581
- onGenerateCsv: xe,
582
- onGenerateImage: _t,
583
- onGenerateSvg: Ke,
584
- onToggleTable: Ze,
585
- onToggleTooltip: kt,
586
- onToggleAnnotator: we,
587
- onCopyAlt: Qe,
588
- style: Q({ visibility: i(Ue) ? i(he) ? "visible" : "hidden" : "visible" })
589
- }, et({ _: 2 }, [
590
- t.$slots.menuIcon ? {
591
- name: "menuIcon",
592
- fn: b(({ isOpen: o, color: s }) => [
593
- v(t.$slots, "menuIcon", T(S({ isOpen: o, color: s })), void 0, !0)
594
- ]),
595
- key: "0"
596
- } : void 0,
597
- t.$slots.optionPdf ? {
598
- name: "optionPdf",
599
- fn: b(() => [
600
- v(t.$slots, "optionPdf", {}, void 0, !0)
601
- ]),
602
- key: "1"
603
- } : void 0,
604
- t.$slots.optionCsv ? {
605
- name: "optionCsv",
606
- fn: b(() => [
607
- v(t.$slots, "optionCsv", {}, void 0, !0)
608
- ]),
609
- key: "2"
610
- } : void 0,
611
- t.$slots.optionImg ? {
612
- name: "optionImg",
613
- fn: b(() => [
614
- v(t.$slots, "optionImg", {}, void 0, !0)
615
- ]),
616
- key: "3"
617
- } : void 0,
618
- t.$slots.optionSvg ? {
619
- name: "optionSvg",
620
- fn: b(() => [
621
- v(t.$slots, "optionSvg", {}, void 0, !0)
622
- ]),
623
- key: "4"
624
- } : void 0,
625
- t.$slots.optionTable ? {
626
- name: "optionTable",
627
- fn: b(() => [
628
- v(t.$slots, "optionTable", {}, void 0, !0)
629
- ]),
630
- key: "5"
631
- } : void 0,
632
- t.$slots.optionFullscreen ? {
633
- name: "optionFullscreen",
634
- fn: b(({ toggleFullscreen: o, isFullscreen: s }) => [
635
- v(t.$slots, "optionFullscreen", T(S({ toggleFullscreen: o, isFullscreen: s })), void 0, !0)
636
- ]),
637
- key: "6"
638
- } : void 0,
639
- t.$slots.optionAnnotator ? {
640
- name: "optionAnnotator",
641
- fn: b(({ toggleAnnotator: o, isAnnotator: s }) => [
642
- v(t.$slots, "optionAnnotator", T(S({ toggleAnnotator: o, isAnnotator: s })), void 0, !0)
643
- ]),
644
- key: "7"
645
- } : void 0,
646
- t.$slots.optionAltCopy ? {
647
- name: "optionAltCopy",
648
- fn: b(({ altCopy: o }) => [
649
- v(t.$slots, "optionAltCopy", T(S({ altCopy: o })), void 0, !0)
650
- ]),
651
- key: "8"
652
- } : void 0
653
- ]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "isTooltip", "hasPdf", "hasImg", "hasSvg", "hasXls", "hasTable", "hasFullscreen", "hasAltCopy", "isFullscreen", "chartElement", "position", "callbacks", "printScale", "titles", "hasAnnotator", "isAnnotation", "tableDialog", "isCursorPointer", "onGeneratePdf", "style"])) : x("", !0),
654
- P("div", {
655
- class: Te({ "vue-ui-circle-pack-svg-container": !0, "not-responsive": !e.value.responsive })
656
- }, [
657
- (h(), g("svg", {
658
- ref_key: "svgRef",
659
- ref: V,
660
- xmlns: i(Et),
661
- viewBox: I.value,
662
- preserveAspectRatio: "xMidYMid meet",
663
- class: Te({ "vue-data-ui-fullscreen--on": z.value, "vue-data-ui-fulscreen--off": !z.value, "not-responsive": !e.value.responsive }),
664
- style: Q(`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};`)
665
- }, [
666
- Se(i(C)),
667
- t.$slots["chart-background"] ? (h(), g("foreignObject", {
668
- key: 0,
669
- x: I.value.x,
670
- y: I.value.y,
671
- width: I.value.width,
672
- height: I.value.height,
673
- style: { pointerEvents: "none" }
674
- }, [
675
- v(t.$slots, "chart-background", {}, void 0, !0)
676
- ], 8, vo)) : x("", !0),
677
- (h(!0), g(j, null, _e(R.value, (o, s) => (h(), g(j, {
678
- key: o.id
679
- }, [
680
- P("defs", null, [
681
- P("radialGradient", {
682
- id: o.id,
683
- fy: "30%"
684
- }, [
685
- P("stop", {
686
- offset: "10%",
687
- "stop-color": i(Lt)(o.color, e.value.style.chart.circles.gradient.intensity / 100)
688
- }, null, 8, po),
689
- P("stop", {
690
- offset: "90%",
691
- "stop-color": i(Ut)(o.color, 0.1)
692
- }, null, 8, ho),
693
- P("stop", {
694
- offset: "100%",
695
- "stop-color": o.color
696
- }, null, 8, yo)
697
- ], 8, fo)
698
- ]),
699
- t.$slots.pattern ? (h(), g("g", mo, [
700
- P("defs", null, [
701
- v(t.$slots, "pattern", ue({ ref_for: !0 }, { ...o, patternId: `pattern_${L.value}_${o.id}` }), void 0, !0)
702
- ])
703
- ])) : x("", !0),
704
- P("rect", {
705
- x: o.x - o.r,
706
- y: o.y - o.r,
707
- width: o.r * 2,
708
- height: o.r * 2,
709
- stroke: e.value.style.chart.circles.stroke,
710
- "stroke-width": e.value.style.chart.circles.strokeWidth * (W.value || 1) / 100,
711
- fill: e.value.style.chart.circles.gradient.show ? `url(#${o.id})` : o.color,
712
- rx: o.r,
713
- onMouseenter: (w) => gt(o, s),
714
- onMouseout: (w) => mt(o, s),
715
- onClick: (w) => bt(o, s)
716
- }, null, 40, bo),
717
- t.$slots.pattern ? (h(), g("rect", {
718
- key: 1,
719
- x: o.x - o.r,
720
- y: o.y - o.r,
721
- width: o.r * 2,
722
- height: o.r * 2,
723
- stroke: e.value.style.chart.circles.stroke,
724
- "stroke-width": e.value.style.chart.circles.strokeWidth * (W.value || 1) / 100,
725
- fill: `url(#pattern_${L.value}_${o.id})`,
726
- rx: o.r,
727
- style: { pointerEvents: "none" }
728
- }, null, 8, go)) : x("", !0)
729
- ], 64))), 128)),
730
- (h(!0), g(j, null, _e(R.value, (o, s) => (h(), g("rect", {
731
- key: o.id,
732
- x: o.x - o.r,
733
- y: o.y - o.r,
734
- width: o.r * 2,
735
- height: o.r * 2,
736
- stroke: "none",
737
- fill: D.value && D.value.id === o.id ? e.value.style.chart.circles.gradient.show ? `url(#${o.id})` : o.color : "transparent",
738
- rx: o.r,
739
- style: Q({
740
- filter: D.value && D.value.id === o.id ? `drop-shadow(0px 0px 6px ${e.value.style.chart.circles.selectedShadowColor})` : "none",
741
- opacity: D.value ? 1 : 0,
742
- pointerEvents: "none",
743
- transition: "opacity 0.2s ease-in-out"
744
- })
745
- }, null, 12, ko))), 128)),
746
- (h(!0), g(j, null, _e(R.value, (o, s) => (h(), g(j, {
747
- key: o.id
748
- }, [
749
- t.$slots["data-label"] ? v(t.$slots, "data-label", ue({
750
- key: 0,
751
- ref_for: !0
752
- }, {
753
- ...o,
754
- createTSpans: i(Vt),
755
- fontSize: {
756
- name: o.r / 3 * e.value.style.chart.circles.labels.name.fontSizeRatio,
757
- value: We(o) * e.value.style.chart.circles.labels.value.fontSizeRatio
758
- },
759
- color: e.value.style.chart.circles.labels.name.color ? e.value.style.chart.circles.labels.name.color : i(Pe)(o.color)
760
- }), void 0, !0) : (h(), g(j, { key: 1 }, [
761
- e.value.style.chart.circles.labels.name.show && o.name ? (h(), g("text", {
762
- key: 0,
763
- style: {
764
- pointerEvents: "none",
765
- transition: "opacity 0.2s ease-in-out"
766
- },
767
- x: o.x,
768
- y: o.y + qe(o.r, e.value.style.chart.circles.labels.name.offsetY) - o.r / 10,
769
- "font-size": o.r / 3 * e.value.style.chart.circles.labels.name.fontSizeRatio,
770
- fill: e.value.style.chart.circles.labels.name.color === "auto" ? i(Pe)(o.color) : e.value.style.chart.circles.labels.name.color,
771
- "font-weight": e.value.style.chart.circles.labels.name.bold ? "bold" : "normal",
772
- "text-anchor": "middle"
773
- }, ie(o.name), 9, Co)) : x("", !0),
774
- e.value.style.chart.circles.labels.value.show ? (h(), g("text", {
775
- key: 1,
776
- style: {
777
- pointerEvents: "none",
778
- transition: "opacity 0.2s ease-in-out"
779
- },
780
- x: o.x,
781
- y: o.y + qe(o.r, e.value.style.chart.circles.labels.value.offsetY) + o.r / 2.5,
782
- "font-size": We(o) * e.value.style.chart.circles.labels.value.fontSizeRatio,
783
- fill: e.value.style.chart.circles.labels.value.color === "auto" ? i(Pe)(o.color) : e.value.style.chart.circles.labels.value.color,
784
- "font-weight": e.value.style.chart.circles.labels.value.bold ? "bold" : "normal",
785
- "text-anchor": "middle"
786
- }, ie(Ce(o)), 9, wo)) : x("", !0)
787
- ], 64)),
788
- v(t.$slots, "circle", ue({ ref_for: !0 }, {
789
- ...o,
790
- isSelected: D.value?.id === o.id,
791
- uid: `${s}_${L.value}`
792
- }), void 0, !0)
793
- ], 64))), 128)),
794
- v(t.$slots, "svg", {
795
- svg: {
796
- ...I.value,
797
- isPrintingImg: i(me) | i(be) | oe.value,
798
- isPrintingSvg: le.value
799
- }
800
- }, void 0, !0)
801
- ], 14, co))
802
- ], 2),
803
- t.$slots.watermark ? (h(), g("div", xo, [
804
- v(t.$slots, "watermark", T(S({ isPrinting: i(me) || i(be) || oe.value || le.value })), void 0, !0)
805
- ])) : x("", !0),
806
- t.$slots.source ? (h(), g("div", {
807
- key: 5,
808
- ref_key: "source",
809
- ref: Be,
810
- dir: "auto"
811
- }, [
812
- v(t.$slots, "source", {}, void 0, !0)
813
- ], 512)) : x("", !0),
814
- Se(i(m), {
815
- teleportTo: e.value.style.chart.tooltip.teleportTo,
816
- show: O.value.showTooltip && fe.value,
817
- backgroundColor: e.value.style.chart.tooltip.backgroundColor,
818
- color: e.value.style.chart.tooltip.color,
819
- fontSize: e.value.style.chart.tooltip.fontSize,
820
- borderRadius: e.value.style.chart.tooltip.borderRadius,
821
- borderColor: e.value.style.chart.tooltip.borderColor,
822
- borderWidth: e.value.style.chart.tooltip.borderWidth,
823
- backgroundOpacity: e.value.style.chart.tooltip.backgroundOpacity,
824
- position: e.value.style.chart.tooltip.position,
825
- offsetY: e.value.style.chart.tooltip.offsetY,
826
- parent: _.value,
827
- content: pe.value,
828
- isCustom: H.value,
829
- isFullscreen: z.value,
830
- smooth: e.value.style.chart.tooltip.smooth,
831
- backdropFilter: e.value.style.chart.tooltip.backdropFilter,
832
- smoothForce: e.value.style.chart.tooltip.smoothForce,
833
- smoothSnapThreshold: e.value.style.chart.tooltip.smoothSnapThrehsold
834
- }, {
835
- "tooltip-before": b(() => [
836
- v(t.$slots, "tooltip-before", T(S({ ...ke.value })), void 0, !0)
837
- ]),
838
- "tooltip-after": b(() => [
839
- v(t.$slots, "tooltip-after", T(S({ ...ke.value })), void 0, !0)
840
- ]),
841
- _: 3
842
- }, 8, ["teleportTo", "show", "backgroundColor", "color", "fontSize", "borderRadius", "borderColor", "borderWidth", "backgroundOpacity", "position", "offsetY", "parent", "content", "isCustom", "isFullscreen", "smooth", "backdropFilter", "smoothForce", "smoothSnapThreshold"]),
843
- Fe.value && e.value.userOptions.buttons.table ? (h(), Y(It(Z.value.component), ue({ key: 6 }, Z.value.props, {
844
- ref_key: "tableUnit",
845
- ref: U,
846
- onClose: Je
847
- }), et({
848
- content: b(() => [
849
- (h(), Y(i(a), {
850
- key: `table_${Ne.value}`,
851
- colNames: se.value.colNames,
852
- head: se.value.head,
853
- body: se.value.body,
854
- config: se.value.config,
855
- title: e.value.table.useDialog ? "" : Z.value.title,
856
- withCloseButton: !e.value.table.useDialog,
857
- isCursorPointer: q.value,
858
- onClose: Je
859
- }, {
860
- th: b(({ th: o }) => [
861
- P("div", {
862
- innerHTML: o,
863
- style: { display: "flex", "align-items": "center" }
864
- }, null, 8, $o)
865
- ]),
866
- td: b(({ td: o }) => [
867
- tt(ie(o.name || o), 1)
868
- ]),
869
- _: 1
870
- }, 8, ["colNames", "head", "body", "config", "title", "withCloseButton", "isCursorPointer"]))
871
- ]),
872
- _: 2
873
- }, [
874
- e.value.table.useDialog ? {
875
- name: "title",
876
- fn: b(() => [
877
- tt(ie(Z.value.title), 1)
878
- ]),
879
- key: "0"
880
- } : void 0,
881
- e.value.table.useDialog ? {
882
- name: "actions",
883
- fn: b(() => [
884
- P("button", {
885
- tabindex: "0",
886
- class: "vue-ui-user-options-button",
887
- onClick: l[0] || (l[0] = (o) => xe(e.value.userOptions.callbacks.csv)),
888
- style: Q({ cursor: q.value ? "pointer" : "default" })
889
- }, [
890
- Se(i(f), {
891
- name: "fileCsv",
892
- stroke: Z.value.props.color
893
- }, null, 8, ["stroke"])
894
- ], 4)
895
- ]),
896
- key: "1"
897
- } : void 0
898
- ]), 1040)) : x("", !0),
899
- v(t.$slots, "skeleton", {}, () => [
900
- i(ze) ? (h(), Y(Ht, { key: 0 })) : x("", !0)
901
- ], !0)
902
- ], 46, io));
903
- }
904
- }, Uo = /* @__PURE__ */ no(To, [["__scopeId", "data-v-9b4d38ac"]]);
905
- export {
906
- Uo as default
907
- };