vue-data-ui 3.9.12 → 3.9.14

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 (164) hide show
  1. package/dist/{Arrow-Cbn8f8m4.js → Arrow-f1dKmuRH.js} +1 -1
  2. package/dist/{BaseDraggableDialog-C167SnU0.js → BaseDraggableDialog-CAJxIF6g.js} +2 -2
  3. package/dist/{BaseIcon-r3_sTK1A.js → BaseIcon-4i3dd7Ty.js} +1 -1
  4. package/dist/{BaseZoomControls-D8N7fb-c.js → BaseZoomControls-C0H509ZF.js} +6 -6
  5. package/dist/{ColorPicker-Bq2C5Dll.js → ColorPicker-B9oF4-O6.js} +8 -8
  6. package/dist/{DataTable-DNeCys3I.js → DataTable-WrXCJkfE.js} +2 -2
  7. package/dist/{Legend-Dxz13z4E.js → Legend-D6z73edh.js} +2 -2
  8. package/dist/{NonSvgPenAndPaper-ZnkWbBri.js → NonSvgPenAndPaper-7clRuQVF.js} +11 -11
  9. package/dist/{PackageVersion-BpArR90N.js → PackageVersion-N2zi0qFZ.js} +1 -1
  10. package/dist/{PenAndPaper-CsqBamFZ.js → PenAndPaper-DxIUvoQ8.js} +17 -17
  11. package/dist/{Shape-_iTOIp3x.js → Shape-DAHhCEdg.js} +1 -1
  12. package/dist/{Slicer-DBYna_by.js → Slicer-Bn8azYkD.js} +70 -70
  13. package/dist/{SlicerPreview-pHjYklxh.js → SlicerPreview-oV3dMuV1.js} +2 -2
  14. package/dist/{SparkTooltip-BaSHhfes.js → SparkTooltip-D7iYVquk.js} +3 -3
  15. package/dist/{Title-DFtCaCah.js → Title-DsQKikUm.js} +1 -1
  16. package/dist/{Tooltip-B79qvriT.js → Tooltip-TDyKgLB6.js} +1 -1
  17. package/dist/{UserOptions-B-2A_KRb.js → UserOptions-CzJWRC4s.js} +2 -2
  18. package/dist/components/arrow.js +1 -1
  19. package/dist/components/vue-ui-3d-bar.js +1 -1
  20. package/dist/components/vue-ui-accordion.js +1 -1
  21. package/dist/components/vue-ui-age-pyramid.js +1 -1
  22. package/dist/components/vue-ui-annotator.js +1 -1
  23. package/dist/components/vue-ui-bullet.js +1 -1
  24. package/dist/components/vue-ui-candlestick.js +1 -1
  25. package/dist/components/vue-ui-carousel-table.js +1 -1
  26. package/dist/components/vue-ui-chestnut.js +1 -1
  27. package/dist/components/vue-ui-chord.js +1 -1
  28. package/dist/components/vue-ui-circle-pack.js +1 -1
  29. package/dist/components/vue-ui-cursor.js +1 -1
  30. package/dist/components/vue-ui-dag.js +1 -1
  31. package/dist/components/vue-ui-dashboard.js +1 -1
  32. package/dist/components/vue-ui-digits.js +1 -1
  33. package/dist/components/vue-ui-donut-evolution.js +1 -1
  34. package/dist/components/vue-ui-donut.js +1 -1
  35. package/dist/components/vue-ui-dumbbell.js +1 -1
  36. package/dist/components/vue-ui-flow.js +1 -1
  37. package/dist/components/vue-ui-funnel.js +1 -1
  38. package/dist/components/vue-ui-galaxy.js +1 -1
  39. package/dist/components/vue-ui-gauge.js +1 -1
  40. package/dist/components/vue-ui-geo.js +1 -1
  41. package/dist/components/vue-ui-gizmo.js +1 -1
  42. package/dist/components/vue-ui-heatmap.js +1 -1
  43. package/dist/components/vue-ui-history-plot.js +1 -1
  44. package/dist/components/vue-ui-horizontal-bar.js +1 -1
  45. package/dist/components/vue-ui-icon.js +1 -1
  46. package/dist/components/vue-ui-kpi.js +1 -1
  47. package/dist/components/vue-ui-mini-loader.js +1 -1
  48. package/dist/components/vue-ui-molecule.js +1 -1
  49. package/dist/components/vue-ui-mood-radar.js +1 -1
  50. package/dist/components/vue-ui-nested-donuts.js +1 -1
  51. package/dist/components/vue-ui-onion.js +1 -1
  52. package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
  53. package/dist/components/vue-ui-quadrant.js +1 -1
  54. package/dist/components/vue-ui-quick-chart.js +1 -1
  55. package/dist/components/vue-ui-radar.js +1 -1
  56. package/dist/components/vue-ui-rating.js +1 -1
  57. package/dist/components/vue-ui-relation-circle.js +1 -1
  58. package/dist/components/vue-ui-ridgeline.js +1 -1
  59. package/dist/components/vue-ui-rings.js +1 -1
  60. package/dist/components/vue-ui-scatter.js +1 -1
  61. package/dist/components/vue-ui-skeleton.js +1 -1
  62. package/dist/components/vue-ui-smiley.js +1 -1
  63. package/dist/components/vue-ui-spark-trend.js +1 -1
  64. package/dist/components/vue-ui-sparkbar.js +1 -1
  65. package/dist/components/vue-ui-sparkgauge.js +1 -1
  66. package/dist/components/vue-ui-sparkhistogram.js +1 -1
  67. package/dist/components/vue-ui-sparkline.js +1 -1
  68. package/dist/components/vue-ui-sparkstackbar.js +1 -1
  69. package/dist/components/vue-ui-stackbar.js +1 -1
  70. package/dist/components/vue-ui-stackline.js +1 -1
  71. package/dist/components/vue-ui-strip-plot.js +1 -1
  72. package/dist/components/vue-ui-table-heatmap.js +1 -1
  73. package/dist/components/vue-ui-table-sparkline.js +1 -1
  74. package/dist/components/vue-ui-table.js +1 -1
  75. package/dist/components/vue-ui-thermometer.js +1 -1
  76. package/dist/components/vue-ui-timer.js +1 -1
  77. package/dist/components/vue-ui-tiremarks.js +1 -1
  78. package/dist/components/vue-ui-treemap.js +1 -1
  79. package/dist/components/vue-ui-vertical-bar.js +1 -1
  80. package/dist/components/vue-ui-waffle.js +1 -1
  81. package/dist/components/vue-ui-wheel.js +1 -1
  82. package/dist/components/vue-ui-word-cloud.js +1 -1
  83. package/dist/components/vue-ui-world.js +1 -1
  84. package/dist/components/vue-ui-xy-canvas.js +1 -1
  85. package/dist/components/vue-ui-xy.js +1 -1
  86. package/dist/{dom-to-png-Cm7R2Zu2.js → dom-to-png-C2K57N1M.js} +1 -1
  87. package/dist/{img-BJzUSmkm.js → img-DKigoPDs.js} +1 -1
  88. package/dist/labelUtils-PMU3ZGCb.js +30 -0
  89. package/dist/{lib-W9waxHL3.js → lib-BwysEpWI.js} +81 -77
  90. package/dist/{pdf-BJR-8Moh.js → pdf-BHGnVnBG.js} +1 -1
  91. package/dist/style.css +1 -1
  92. package/dist/types/vue-data-ui.d.ts +44 -0
  93. package/dist/{useAutoSizeLabelsInsideViewbox-DAdqpHf1.js → useAutoSizeLabelsInsideViewbox-DO2dxQ78.js} +1 -1
  94. package/dist/{useNestedProp-D-jUHecl.js → useNestedProp-CH0YJac3.js} +305 -285
  95. package/dist/{usePrinter-DhoMn87n.js → usePrinter-BJzHDpYF.js} +2 -2
  96. package/dist/{vue-data-ui-Dw19CYml.js → vue-data-ui-CETZbpPy.js} +67 -67
  97. package/dist/vue-data-ui.js +83 -83
  98. package/dist/{vue-ui-3d-bar-Bv7Tft_r.js → vue-ui-3d-bar-D1e74DW-.js} +6 -6
  99. package/dist/{vue-ui-accordion-B6BX2vhq.js → vue-ui-accordion-CTzbMRF5.js} +3 -3
  100. package/dist/{vue-ui-age-pyramid-C6NjJlg4.js → vue-ui-age-pyramid-BcFAs3n4.js} +25 -25
  101. package/dist/{vue-ui-annotator-DB6dpuUU.js → vue-ui-annotator-lhy2XeYL.js} +7 -7
  102. package/dist/{vue-ui-bullet-BLGvme53.js → vue-ui-bullet-CkSsXQmm.js} +22 -22
  103. package/dist/{vue-ui-candlestick-DBG1mW60.js → vue-ui-candlestick-CGg_7SLg.js} +85 -85
  104. package/dist/{vue-ui-carousel-table-BYnItN48.js → vue-ui-carousel-table-BiIRXmhP.js} +13 -13
  105. package/dist/{vue-ui-chestnut-DV6f4SNc.js → vue-ui-chestnut-B2xTArwU.js} +31 -31
  106. package/dist/{vue-ui-chord-DRleP2O8.js → vue-ui-chord-C2VrC0ix.js} +8 -8
  107. package/dist/{vue-ui-circle-pack-BCrMaFWw.js → vue-ui-circle-pack-CIDxBme9.js} +6 -6
  108. package/dist/{vue-ui-cursor-j10t3UEX.js → vue-ui-cursor-FWs20kb7.js} +3 -3
  109. package/dist/{vue-ui-dag-y0oqslGj.js → vue-ui-dag-DqW_jGnz.js} +7 -7
  110. package/dist/{vue-ui-dashboard-mBGF94l6.js → vue-ui-dashboard-BQaQX1Hp.js} +68 -68
  111. package/dist/{vue-ui-digits-DQz1eJc-.js → vue-ui-digits-ClutLZo6.js} +2 -2
  112. package/dist/vue-ui-donut-BPDMilOE.js +2085 -0
  113. package/dist/{vue-ui-donut-evolution-hkHICgry.js → vue-ui-donut-evolution-tSmXvXha.js} +8 -8
  114. package/dist/{vue-ui-dumbbell-BVPZwi0X.js → vue-ui-dumbbell-DI_0jaJa.js} +33 -33
  115. package/dist/{vue-ui-flow-BNeKU-KR.js → vue-ui-flow-sS-isses.js} +38 -38
  116. package/dist/{vue-ui-funnel-VorM1bT0.js → vue-ui-funnel-DVxu44AB.js} +6 -6
  117. package/dist/{vue-ui-galaxy-DKkviRQr.js → vue-ui-galaxy-DfYKoeS5.js} +316 -291
  118. package/dist/{vue-ui-gauge-BNaWVi-e.js → vue-ui-gauge-DHeQWB2r.js} +7 -7
  119. package/dist/{vue-ui-geo-_R5mjj-u.js → vue-ui-geo-CznOIKY5.js} +7 -7
  120. package/dist/{vue-ui-gizmo-AQFQccea.js → vue-ui-gizmo-CuR4Ktlm.js} +3 -3
  121. package/dist/{vue-ui-heatmap-BKX1bPY5.js → vue-ui-heatmap-C_0kd0gS.js} +108 -108
  122. package/dist/{vue-ui-history-plot-BNX8B2jr.js → vue-ui-history-plot-D9O5B8ww.js} +50 -50
  123. package/dist/{vue-ui-horizontal-bar-B6VyEs1p.js → vue-ui-horizontal-bar-C8OQwHQ5.js} +47 -47
  124. package/dist/{vue-ui-kpi-BnCqocoi.js → vue-ui-kpi-xwNhi_Q7.js} +3 -3
  125. package/dist/{vue-ui-mini-loader-Dzqusv9i.js → vue-ui-mini-loader-DB854OD8.js} +2 -2
  126. package/dist/{vue-ui-molecule-PtnhkQLr.js → vue-ui-molecule-BnBImo7O.js} +5 -5
  127. package/dist/{vue-ui-mood-radar-DxSVU35A.js → vue-ui-mood-radar-CFWaqvbw.js} +7 -7
  128. package/dist/{vue-ui-nested-donuts-BY8C1axg.js → vue-ui-nested-donuts-Dr1SFgd1.js} +587 -585
  129. package/dist/{vue-ui-onion-XJAcsPVV.js → vue-ui-onion-BF0uOkdf.js} +391 -344
  130. package/dist/{vue-ui-parallel-coordinate-plot-CDWIZbgp.js → vue-ui-parallel-coordinate-plot-B39MmRM-.js} +43 -43
  131. package/dist/{vue-ui-quadrant-DY9GXVYY.js → vue-ui-quadrant-DQ6jK5lK.js} +8 -8
  132. package/dist/{vue-ui-quick-chart-Y73WB5GW.js → vue-ui-quick-chart-BJFT6MlE.js} +52 -52
  133. package/dist/{vue-ui-radar-Deup68ga.js → vue-ui-radar-CI1vvdix.js} +57 -57
  134. package/dist/{vue-ui-rating-BciQHmzs.js → vue-ui-rating-D6e1hvlN.js} +2 -2
  135. package/dist/{vue-ui-relation-circle-C0W3aPaO.js → vue-ui-relation-circle-D5EIwXQT.js} +7 -7
  136. package/dist/{vue-ui-ridgeline-D9z3_hRf.js → vue-ui-ridgeline-CbP6FSBx.js} +8 -8
  137. package/dist/{vue-ui-rings-CT3gLUkS.js → vue-ui-rings-C1kLHyn7.js} +270 -246
  138. package/dist/{vue-ui-scatter-DiLSOZGs.js → vue-ui-scatter-DvyRNG7b.js} +8 -8
  139. package/dist/{vue-ui-skeleton-D_2C5A85.js → vue-ui-skeleton-OfYh_8kr.js} +3 -3
  140. package/dist/{vue-ui-smiley-C0Bqip2_.js → vue-ui-smiley-DPlPB903.js} +2 -2
  141. package/dist/{vue-ui-spark-trend-C05f4Fn6.js → vue-ui-spark-trend-CIovzP7V.js} +96 -96
  142. package/dist/{vue-ui-sparkbar-CjYaG0Ae.js → vue-ui-sparkbar-d0QvIPMK.js} +3 -3
  143. package/dist/{vue-ui-sparkgauge-AKIy8PYI.js → vue-ui-sparkgauge-DtK6S9ta.js} +13 -13
  144. package/dist/{vue-ui-sparkhistogram-nWWgx7iD.js → vue-ui-sparkhistogram-AAM_6-a0.js} +4 -4
  145. package/dist/{vue-ui-sparkline-CGMDNQpH.js → vue-ui-sparkline-Ui_n_Z13.js} +11 -11
  146. package/dist/{vue-ui-sparkstackbar-C3vjYPrM.js → vue-ui-sparkstackbar-CcSO3B20.js} +3 -3
  147. package/dist/{vue-ui-stackbar-BQiLC89h.js → vue-ui-stackbar-IgHE0ix-.js} +41 -41
  148. package/dist/{vue-ui-stackline-DPV5Amgq.js → vue-ui-stackline-ZPpM0WJp.js} +130 -130
  149. package/dist/{vue-ui-strip-plot-CFGml25d.js → vue-ui-strip-plot-_Y2m-Dly.js} +28 -28
  150. package/dist/{vue-ui-table-DySeXTmp.js → vue-ui-table-32WvmMgb.js} +27 -27
  151. package/dist/{vue-ui-table-heatmap-CDnzIKGy.js → vue-ui-table-heatmap-BQun9OwK.js} +12 -12
  152. package/dist/{vue-ui-table-sparkline-DbEj6x4N.js → vue-ui-table-sparkline-DioGmETm.js} +11 -11
  153. package/dist/{vue-ui-thermometer-BeiT4slQ.js → vue-ui-thermometer-BbjSAgfK.js} +31 -31
  154. package/dist/{vue-ui-timer-RWg45QKc.js → vue-ui-timer-Bem9iNS9.js} +5 -5
  155. package/dist/{vue-ui-tiremarks-B4_W_mWX.js → vue-ui-tiremarks-DKe3yCM6.js} +6 -6
  156. package/dist/{vue-ui-treemap-fq9-enBk.js → vue-ui-treemap-bd0eNtqa.js} +51 -51
  157. package/dist/{vue-ui-waffle-BRcWupew.js → vue-ui-waffle-C93pCE0N.js} +384 -352
  158. package/dist/{vue-ui-wheel-DziR9q2I.js → vue-ui-wheel-DLS0_1Bs.js} +6 -6
  159. package/dist/{vue-ui-word-cloud-C6i_7Q6Y.js → vue-ui-word-cloud-Dp3tWrZB.js} +32 -32
  160. package/dist/{vue-ui-world-Dvn1JWi9.js → vue-ui-world-DNMQwqDq.js} +31 -31
  161. package/dist/{vue-ui-xy-2ui0juKl.js → vue-ui-xy-DK7OIH2Y.js} +9 -9
  162. package/dist/{vue-ui-xy-canvas-9tgX_s2v.js → vue-ui-xy-canvas-DSxmvFlx.js} +100 -100
  163. package/package.json +1 -1
  164. package/dist/vue-ui-donut-A_IFB9JR.js +0 -2078
@@ -1,39 +1,40 @@
1
- import { defineAsyncComponent as S, computed as d, ref as u, toRefs as zt, watch as U, shallowRef as Ue, onMounted as Lt, onBeforeUnmount as Nt, createElementBlock as v, openBlock as s, unref as r, normalizeStyle as E, normalizeClass as q, createBlock as _, createCommentVNode as p, createElementVNode as I, createVNode as ce, withCtx as i, renderSlot as c, normalizeProps as y, guardReactiveProps as C, createSlots as Ge, Fragment as G, renderList as Y, toDisplayString as R, Teleport as Vt, resolveDynamicComponent as Ut, mergeProps as Gt, createTextVNode as Ye, nextTick as Xe } from "vue";
2
- import { c as Yt, t as Xt, i as jt, p as je, j as Ht, o as He, g as de, l as Wt, d as z, X as qt, a as ve, x as We, u as Zt, q as Jt, Z as Kt } from "./lib-W9waxHL3.js";
3
- import { t as Qt, u as eo } from "./useResponsive-DfdjqQps.js";
4
- import { u as to, a as ge } from "./useNestedProp-D-jUHecl.js";
5
- import { u as oo, B as lo } from "./BaseScanner-BMpwQAfz.js";
6
- import { u as ao } from "./usePrinter-DhoMn87n.js";
7
- import { u as no } from "./useSvgExport-ByUukOZt.js";
8
- import { u as ro } from "./useThemeCheck-DGJ31Vi5.js";
9
- import { u as so } from "./useUserOptionState-BIvW1Kz7.js";
10
- import { u as uo } from "./useChartAccessibility-9icAAmYg.js";
11
- import { u as io } from "./useAutoSizeLabelsInsideViewbox-DAdqpHf1.js";
12
- import co from "./img-BJzUSmkm.js";
13
- import vo from "./Title-DFtCaCah.js";
14
- import go from "./Legend-Dxz13z4E.js";
15
- import { _ as ho } from "./_plugin-vue_export-helper-CHgC5LLL.js";
16
- const qe = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", layout: { gutter: { color: "#4A4A4A" }, labels: { color: "#CCCCCC" } }, legend: { backgroundColor: "#1A1A1A", color: "#CCCCCC" }, title: { color: "#CCCCCC", subtitle: { color: "#757575" } }, tooltip: { backgroundColor: "#1A1A1A", backgroundOpacity: 70, color: "#CCCCCC", borderColor: "#5A5A5A" } } }, table: { th: { backgroundColor: "#1A1A1A", color: "#CCCCCC" }, td: { backgroundColor: "#1A1A1A", color: "#CCCCCC" } } }, Ze = { style: { chart: { backgroundColor: "#FFF8E1", color: "#424242", useGradient: !1, layout: { gutter: { color: "#5D403730" }, labels: { color: "#424242" } }, legend: { backgroundColor: "#FFF8E1", color: "#424242" }, title: { color: "#424242", subtitle: { color: "#757575" } }, tooltip: { backgroundColor: "#FFECB3", backgroundOpacity: 30, color: "#424242", borderColor: "#FF8A65" } } }, table: { th: { backgroundColor: "#FFF8E1", color: "#424242" }, td: { backgroundColor: "#FFF8E1", color: "#424242" } } }, Je = { style: { chart: { backgroundColor: "#1E1E1E", color: "#BDBDBD", useGradient: !1, layout: { gutter: { color: "#5D403730" }, labels: { color: "#BDBDBD" } }, legend: { backgroundColor: "#1E1E1E", color: "#BDBDBD" }, title: { color: "#FFF8E1", subtitle: { color: "#BDBDBD" } }, tooltip: { backgroundColor: "#1E1E1E", backgroundOpacity: 30, color: "#FFF8E1", borderColor: "#FF8A65" } } }, table: { th: { backgroundColor: "#1E1E1E", color: "#BDBDBD" }, td: { backgroundColor: "#1E1E1E", color: "#BDBDBD" } } }, Ke = { style: { chart: { backgroundColor: "#1A1A1A", useGradient: !1, color: "#99AA99", layout: { gutter: { color: "#2A2A2A" }, labels: { color: "#99CC99" } }, legend: { backgroundColor: "#1A1A1A", color: "#99AA99" }, title: { color: "#66CC66", subtitle: { color: "#99AA99" } }, tooltip: { backgroundColor: "#2A2F2A", color: "#AACCAA", borderColor: "#66CC66" } } }, table: { th: { backgroundColor: "#1A1A1A", color: "#99AA99" }, td: { backgroundColor: "#1A1A1A", color: "#AACCAA" } } }, Qe = { style: { chart: { useGradient: !1, backgroundColor: "#fbfafa", color: "#8A9892", layout: { gutter: { color: "#F7EDE2" }, labels: { color: "#A0AC94" } }, legend: { backgroundColor: "#fbfafa", color: "#99AA99" }, title: { color: "#8A9892", subtitle: { color: "#99AA99" } }, tooltip: { backgroundColor: "#fbfafa", color: "#8A9892" } } }, table: { th: { backgroundColor: "#fbfafa", color: "#8F837A" }, td: { backgroundColor: "#fbfafa", color: "#8F837A" } } }, et = { style: { chart: { useGradient: !1, backgroundColor: "#f6f6fb", color: "#50606C", layout: { gutter: { color: "#DDDDDB" }, labels: { color: "#61747E" } }, legend: { backgroundColor: "#f6f6fb", color: "#61747E" }, title: { color: "#50606C", subtitle: { color: "#718890" } }, tooltip: { backgroundColor: "#f6f6fb", color: "#50606C" } } }, table: { th: { backgroundColor: "#f6f6fb", color: "#50606C" }, td: { backgroundColor: "#f6f6fb", color: "#50606C" } } }, tt = {
1
+ import { defineAsyncComponent as S, computed as v, ref as u, toRefs as Nt, watch as V, shallowRef as Ue, onMounted as Vt, onBeforeUnmount as Ut, createElementBlock as g, openBlock as r, unref as s, normalizeStyle as E, normalizeClass as W, createBlock as _, createCommentVNode as p, createElementVNode as P, createVNode as ce, withCtx as c, renderSlot as d, normalizeProps as k, guardReactiveProps as C, createSlots as Ge, Fragment as U, renderList as G, toDisplayString as q, Teleport as Gt, resolveDynamicComponent as Yt, mergeProps as Xt, createTextVNode as Ye, nextTick as Xe } from "vue";
2
+ import { c as jt, t as Ht, i as Wt, j as je, k as qt, o as He, g as de, m as Jt, a as ve, d as L, X as Kt, y as We, v as Qt, r as Zt, _ as eo } from "./lib-BwysEpWI.js";
3
+ import { b as to } from "./labelUtils-PMU3ZGCb.js";
4
+ import { t as oo, u as lo } from "./useResponsive-DfdjqQps.js";
5
+ import { u as ao, a as ge } from "./useNestedProp-CH0YJac3.js";
6
+ import { u as no, B as ro } from "./BaseScanner-BMpwQAfz.js";
7
+ import { u as so } from "./usePrinter-BJzHDpYF.js";
8
+ import { u as uo } from "./useSvgExport-ByUukOZt.js";
9
+ import { u as io } from "./useThemeCheck-DGJ31Vi5.js";
10
+ import { u as co } from "./useUserOptionState-BIvW1Kz7.js";
11
+ import { u as vo } from "./useChartAccessibility-9icAAmYg.js";
12
+ import { u as go } from "./useAutoSizeLabelsInsideViewbox-DO2dxQ78.js";
13
+ import ho from "./img-DKigoPDs.js";
14
+ import fo from "./Title-DsQKikUm.js";
15
+ import po from "./Legend-D6z73edh.js";
16
+ import { _ as bo } from "./_plugin-vue_export-helper-CHgC5LLL.js";
17
+ const qe = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", layout: { gutter: { color: "#4A4A4A" }, labels: { color: "#CCCCCC" } }, legend: { backgroundColor: "#1A1A1A", color: "#CCCCCC" }, title: { color: "#CCCCCC", subtitle: { color: "#757575" } }, tooltip: { backgroundColor: "#1A1A1A", backgroundOpacity: 70, color: "#CCCCCC", borderColor: "#5A5A5A" } } }, table: { th: { backgroundColor: "#1A1A1A", color: "#CCCCCC" }, td: { backgroundColor: "#1A1A1A", color: "#CCCCCC" } } }, Je = { style: { chart: { backgroundColor: "#FFF8E1", color: "#424242", useGradient: !1, layout: { gutter: { color: "#5D403730" }, labels: { color: "#424242" } }, legend: { backgroundColor: "#FFF8E1", color: "#424242" }, title: { color: "#424242", subtitle: { color: "#757575" } }, tooltip: { backgroundColor: "#FFECB3", backgroundOpacity: 30, color: "#424242", borderColor: "#FF8A65" } } }, table: { th: { backgroundColor: "#FFF8E1", color: "#424242" }, td: { backgroundColor: "#FFF8E1", color: "#424242" } } }, Ke = { style: { chart: { backgroundColor: "#1E1E1E", color: "#BDBDBD", useGradient: !1, layout: { gutter: { color: "#5D403730" }, labels: { color: "#BDBDBD" } }, legend: { backgroundColor: "#1E1E1E", color: "#BDBDBD" }, title: { color: "#FFF8E1", subtitle: { color: "#BDBDBD" } }, tooltip: { backgroundColor: "#1E1E1E", backgroundOpacity: 30, color: "#FFF8E1", borderColor: "#FF8A65" } } }, table: { th: { backgroundColor: "#1E1E1E", color: "#BDBDBD" }, td: { backgroundColor: "#1E1E1E", color: "#BDBDBD" } } }, Qe = { style: { chart: { backgroundColor: "#1A1A1A", useGradient: !1, color: "#99AA99", layout: { gutter: { color: "#2A2A2A" }, labels: { color: "#99CC99" } }, legend: { backgroundColor: "#1A1A1A", color: "#99AA99" }, title: { color: "#66CC66", subtitle: { color: "#99AA99" } }, tooltip: { backgroundColor: "#2A2F2A", color: "#AACCAA", borderColor: "#66CC66" } } }, table: { th: { backgroundColor: "#1A1A1A", color: "#99AA99" }, td: { backgroundColor: "#1A1A1A", color: "#AACCAA" } } }, Ze = { style: { chart: { useGradient: !1, backgroundColor: "#fbfafa", color: "#8A9892", layout: { gutter: { color: "#F7EDE2" }, labels: { color: "#A0AC94" } }, legend: { backgroundColor: "#fbfafa", color: "#99AA99" }, title: { color: "#8A9892", subtitle: { color: "#99AA99" } }, tooltip: { backgroundColor: "#fbfafa", color: "#8A9892" } } }, table: { th: { backgroundColor: "#fbfafa", color: "#8F837A" }, td: { backgroundColor: "#fbfafa", color: "#8F837A" } } }, et = { style: { chart: { useGradient: !1, backgroundColor: "#f6f6fb", color: "#50606C", layout: { gutter: { color: "#DDDDDB" }, labels: { color: "#61747E" } }, legend: { backgroundColor: "#f6f6fb", color: "#61747E" }, title: { color: "#50606C", subtitle: { color: "#718890" } }, tooltip: { backgroundColor: "#f6f6fb", color: "#50606C" } } }, table: { th: { backgroundColor: "#f6f6fb", color: "#50606C" }, td: { backgroundColor: "#f6f6fb", color: "#50606C" } } }, tt = {
17
18
  default: {},
18
19
  dark: qe,
19
- celebration: Ze,
20
- celebrationNight: Je,
21
- hack: Ke,
22
- zen: Qe,
20
+ celebration: Je,
21
+ celebrationNight: Ke,
22
+ hack: Qe,
23
+ zen: Ze,
23
24
  concrete: et
24
- }, Zo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
25
+ }, el = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
25
26
  __proto__: null,
26
- celebration: Ze,
27
- celebrationNight: Je,
27
+ celebration: Je,
28
+ celebrationNight: Ke,
28
29
  concrete: et,
29
30
  dark: qe,
30
31
  default: tt,
31
- hack: Ke,
32
- zen: Qe
33
- }, Symbol.toStringTag, { value: "Module" })), fo = ["id"], po = ["id"], bo = ["xmlns", "viewBox"], mo = ["width", "height"], yo = ["cx", "cy", "r", "stroke", "stroke-width", "stroke-dasharray", "stroke-dashoffset"], Co = ["cx", "cy", "r", "stroke", "stroke-width", "stroke-dasharray", "stroke-dashoffset"], ko = ["id"], wo = ["stdDeviation"], Ao = ["filter"], $o = ["cx", "cy", "r", "stroke-width", "stroke-dasharray", "stroke-dashoffset"], To = ["cx", "cy", "r", "stroke-width", "stroke-dasharray", "stroke-dashoffset", "onMouseenter", "onMouseleave", "onClick"], xo = { key: 2 }, Fo = ["onMouseenter", "onMouseleave", "onClick"], Oo = ["x", "y", "font-size", "fill", "font-weight"], Do = {
32
+ hack: Qe,
33
+ zen: Ze
34
+ }, Symbol.toStringTag, { value: "Module" })), yo = ["id"], mo = ["id"], ko = ["xmlns", "viewBox"], Co = ["width", "height"], wo = ["cx", "cy", "r", "stroke", "stroke-width", "stroke-dasharray", "stroke-dashoffset"], Ao = ["cx", "cy", "r", "stroke", "stroke-width", "stroke-dasharray", "stroke-dashoffset"], $o = ["id"], To = ["stdDeviation"], Fo = ["filter"], Oo = ["cx", "cy", "r", "stroke-width", "stroke-dasharray", "stroke-dashoffset"], Do = ["cx", "cy", "r", "stroke-width", "stroke-dasharray", "stroke-dashoffset", "onMouseenter", "onMouseleave", "onClick"], xo = { key: 2 }, So = ["onMouseenter", "onMouseleave", "onClick"], _o = ["x", "y", "font-size", "fill", "font-weight"], Po = {
34
35
  key: 4,
35
36
  class: "vue-data-ui-watermark"
36
- }, So = ["id"], _o = ["onClick"], Io = ["innerHTML"], Bo = {
37
+ }, Bo = ["id"], Io = ["onClick"], Eo = ["innerHTML"], Mo = {
37
38
  __name: "vue-ui-onion",
38
39
  props: {
39
40
  config: {
@@ -51,8 +52,8 @@ const qe = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
51
52
  },
52
53
  emits: ["selectLegend"],
53
54
  setup(ot, { expose: lt, emit: at }) {
54
- const nt = S(() => import("./Tooltip-B79qvriT.js")), rt = S(() => import("./BaseIcon-r3_sTK1A.js")), st = S(() => import("./vue-ui-accordion-B6BX2vhq.js")), ut = S(() => import("./DataTable-DNeCys3I.js")), it = S(() => import("./UserOptions-B-2A_KRb.js")), ct = S(() => import("./PenAndPaper-CsqBamFZ.js")), dt = S(() => import("./PackageVersion-BpArR90N.js")), vt = S(() => import("./BaseDraggableDialog-C167SnU0.js")), { vue_ui_onion: gt } = to(), { isThemeValid: ht, warnInvalidTheme: ft } = ro(), k = ot, he = d(() => !!k.dataset && k.dataset.length), w = u(Yt()), pt = u(null), fe = u(0), Z = u(!1), J = u(""), b = u([]), T = u(null), pe = u(null), be = u(null), me = u(null), ye = u(null), Ce = u(0), ke = u(0), we = u(0), x = u(!1), Ae = u(!1), L = u(null), e = u(ee()), { loading: A, FINAL_DATASET: $e, manualLoading: K } = oo({
55
- ...zt(k),
55
+ const nt = S(() => import("./Tooltip-TDyKgLB6.js")), rt = S(() => import("./BaseIcon-4i3dd7Ty.js")), st = S(() => import("./vue-ui-accordion-CTzbMRF5.js")), ut = S(() => import("./DataTable-WrXCJkfE.js")), it = S(() => import("./UserOptions-CzJWRC4s.js")), ct = S(() => import("./PenAndPaper-DxIUvoQ8.js")), dt = S(() => import("./PackageVersion-N2zi0qFZ.js")), vt = S(() => import("./BaseDraggableDialog-CAJxIF6g.js")), { vue_ui_onion: gt } = ao(), { isThemeValid: ht, warnInvalidTheme: ft } = io(), w = ot, he = v(() => !!w.dataset && w.dataset.length), A = u(jt()), pt = u(null), fe = u(0), J = u(!1), K = u(""), b = u([]), T = u(null), pe = u(null), be = u(null), ye = u(null), me = u(null), ke = u(0), Ce = u(0), we = u(0), F = u(!1), Ae = u(!1), R = u(null), e = u(ee()), { loading: $, FINAL_DATASET: $e, manualLoading: Q } = no({
56
+ ...Nt(w),
56
57
  FINAL_CONFIG: e,
57
58
  prepareConfig: ee,
58
59
  callback: () => {
@@ -66,7 +67,7 @@ const qe = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
66
67
  { name: "_", percentage: 50, value: 1, color: "#ADADAD" },
67
68
  { name: "_", percentage: 50, value: 1, color: "#969696" }
68
69
  ],
69
- skeletonConfig: Xt({
70
+ skeletonConfig: Ht({
70
71
  defaultConfig: e.value,
71
72
  userConfig: {
72
73
  userOptions: { show: !1 },
@@ -87,40 +88,40 @@ const qe = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
87
88
  }
88
89
  }
89
90
  })
90
- }), { userOptionsVisible: Q, setUserOptionsVisibility: Te, keepUserOptionState: xe } = so({ config: e.value }), { svgRef: X } = uo({ config: e.value.style.chart.title });
91
+ }), { userOptionsVisible: Z, setUserOptionsVisibility: Te, keepUserOptionState: Fe } = co({ config: e.value }), { svgRef: Y } = vo({ config: e.value.style.chart.title });
91
92
  function ee() {
92
93
  const t = ge({
93
- userConfig: k.config,
94
+ userConfig: w.config,
94
95
  defaultConfig: gt
95
96
  }), l = t.theme;
96
97
  if (!l) return t;
97
98
  if (!ht.value(t))
98
99
  return ft(t), t;
99
100
  const o = ge({
100
- userConfig: tt[l] || k.config,
101
+ userConfig: tt[l] || w.config,
101
102
  defaultConfig: t
102
103
  }), a = ge({
103
- userConfig: k.config,
104
+ userConfig: w.config,
104
105
  defaultConfig: o
105
106
  });
106
107
  return {
107
108
  ...a,
108
- customPalette: a.customPalette.length ? a.customPalette : jt[l] || je
109
+ customPalette: a.customPalette.length ? a.customPalette : Wt[l] || je
109
110
  };
110
111
  }
111
- U(() => k.config, (t) => {
112
- A.value || (e.value = ee()), Q.value = !e.value.userOptions.showOnChartHover, Ie(), Ce.value += 1, ke.value += 1, we.value += 1, m.value.showTable = e.value.table.show, m.value.showTooltip = e.value.style.chart.tooltip.show;
112
+ V(() => w.config, (t) => {
113
+ $.value || (e.value = ee()), Z.value = !e.value.userOptions.showOnChartHover, Pe(), ke.value += 1, Ce.value += 1, we.value += 1, y.value.showTable = e.value.table.show, y.value.showTooltip = e.value.style.chart.tooltip.show;
113
114
  }, { deep: !0 });
114
- const { isPrinting: Fe, isImaging: Oe, generatePdf: De, generateImage: Se } = ao({
115
- elementId: `vue-ui-onion_${w.value}`,
115
+ const { isPrinting: Oe, isImaging: De, generatePdf: xe, generateImage: Se } = so({
116
+ elementId: `vue-ui-onion_${A.value}`,
116
117
  fileName: e.value.style.chart.title.text || "vue-ui-onion",
117
118
  options: e.value.userOptions.print
118
- }), bt = d(() => e.value.userOptions.show && !e.value.style.chart.title.text), mt = d(() => Ht(e.value.customPalette)), m = u({
119
+ }), bt = v(() => e.value.userOptions.show && !e.value.style.chart.title.text), yt = v(() => qt(e.value.customPalette)), y = u({
119
120
  showTable: e.value.table.show,
120
121
  showTooltip: e.value.style.chart.tooltip.show
121
122
  });
122
- U(e, () => {
123
- m.value = {
123
+ V(e, () => {
124
+ y.value = {
124
125
  showTable: e.value.table.show,
125
126
  showTooltip: e.value.style.chart.tooltip.show
126
127
  };
@@ -135,50 +136,50 @@ const qe = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
135
136
  bottom: 64
136
137
  },
137
138
  minRadius: 64
138
- }), O = Ue(null), M = Ue(null);
139
- Lt(() => {
140
- Ae.value = !0, Ie();
139
+ }), D = Ue(null), M = Ue(null);
140
+ Vt(() => {
141
+ Ae.value = !0, Pe();
141
142
  });
142
- const yt = d({
143
+ const mt = v({
143
144
  get: () => e.value.style.chart.layout.labels.fontSize,
144
145
  set: (t) => t
145
- }), { autoSizeLabels: _e } = io({
146
- svgRef: X,
146
+ }), { autoSizeLabels: _e } = go({
147
+ svgRef: Y,
147
148
  fontSize: e.value.style.chart.layout.labels.fontSize,
148
149
  minFontSize: e.value.style.chart.layout.labels.minFontSize,
149
- sizeRef: yt,
150
+ sizeRef: mt,
150
151
  labelClass: ".vue-ui-onion-label"
151
- }), Ct = d(() => e.value.debug);
152
+ }), kt = v(() => e.value.debug);
152
153
  let te = null;
153
- function Ie() {
154
- if (He(k.dataset) && (de({
154
+ function Pe() {
155
+ if (He(w.dataset) && (de({
155
156
  componentName: "VueUiOnion",
156
157
  type: "dataset",
157
- debug: Ct.value
158
- }), K.value = !0), He(k.dataset) || (K.value = e.value.loading), e.value.responsive) {
159
- const l = Qt(() => {
160
- te && clearTimeout(te), x.value = !0;
161
- let { width: o, height: a } = eo({
158
+ debug: kt.value
159
+ }), Q.value = !0), He(w.dataset) || (Q.value = e.value.loading), e.value.responsive) {
160
+ const l = oo(() => {
161
+ te && clearTimeout(te), F.value = !0;
162
+ let { width: o, height: a } = lo({
162
163
  chart: T.value,
163
164
  title: e.value.style.chart.title.text ? pe.value : null,
164
165
  legend: e.value.style.chart.legend.show ? be.value : null,
165
- source: me.value,
166
- noTitle: ye.value
166
+ source: ye.value,
167
+ noTitle: me.value
167
168
  });
168
169
  a -= 12, requestAnimationFrame(async () => {
169
170
  n.value.width = o, n.value.height = a, n.value.padding.top = Math.max(o, a) * 0.125, n.value.padding.right = Math.max(o, a) * 0.125, n.value.padding.bottom = Math.max(o, a) * 0.125, n.value.padding.left = Math.max(o, a) * 0.125, n.value.minRadius = Math.min(o, a) * 0.125, te = setTimeout(() => {
170
- x.value = !1, _e();
171
+ F.value = !1, _e();
171
172
  }, 0);
172
173
  });
173
174
  });
174
- O.value && (M.value && O.value.unobserve(M.value), O.value.disconnect()), O.value = new ResizeObserver(l), M.value = T.value.parentNode, O.value.observe(M.value);
175
+ D.value && (M.value && D.value.unobserve(M.value), D.value.disconnect()), D.value = new ResizeObserver(l), M.value = T.value.parentNode, D.value.observe(M.value);
175
176
  }
176
177
  requestAnimationFrame(_e);
177
178
  }
178
- Nt(() => {
179
- O.value && (M.value && O.value.unobserve(M.value), O.value.disconnect());
179
+ Ut(() => {
180
+ D.value && (M.value && D.value.unobserve(M.value), D.value.disconnect());
180
181
  });
181
- const h = d(() => ({
182
+ const h = v(() => ({
182
183
  top: n.value.padding.top,
183
184
  left: n.value.padding.left,
184
185
  right: n.value.width - n.value.padding.right,
@@ -189,7 +190,7 @@ const qe = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
189
190
  height: n.value.height - n.value.padding.bottom - n.value.padding.top,
190
191
  minRadius: n.value.minRadius,
191
192
  maxRadius: Math.min(n.value.width, n.value.height) - n.value.padding.top * 2
192
- })), f = d(() => ($e.value.forEach((t, l) => {
193
+ })), f = v(() => ($e.value.forEach((t, l) => {
193
194
  [null, void 0].includes(t.name) && de({
194
195
  componentName: "VueUiOnion",
195
196
  type: "datasetSerieAttribute",
@@ -202,77 +203,95 @@ const qe = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
202
203
  index: l
203
204
  });
204
205
  }), $e.value.map((t, l) => {
205
- const o = `onion_serie_${l}_${w.value}`;
206
+ const o = `onion_serie_${l}_${A.value}`;
206
207
  return {
207
208
  ...t,
208
209
  percentage: t.percentage || 0,
209
210
  targetPercentage: t.percentage || 0,
210
- color: Wt(t.color) || mt.value[l] || je[l],
211
+ color: Jt(t.color) || yt.value[l] || je[l],
211
212
  id: o,
212
213
  shape: "circle",
213
214
  opacity: b.value.includes(o) ? 0.5 : 1,
214
215
  absoluteIndex: l,
215
- segregate: () => j(o),
216
+ segregate: () => X(o),
216
217
  isSegregated: b.value.includes(o)
217
218
  };
218
- }))), oe = d(() => f.value.map((t, l) => ({
219
- ...t,
220
- display: `${t.name ? t.name + ": " : ""}${z({
219
+ }))), oe = v(() => f.value.map((t, l) => {
220
+ const o = e.value.style.chart.legend.showValue, a = e.value.style.chart.legend.showPercentage, i = ve(
221
+ e.value.style.chart.layout.labels.value.formatter,
222
+ t.value,
223
+ L({
224
+ p: t.prefix || "",
225
+ v: t.value,
226
+ s: t.suffix || "",
227
+ r: e.value.style.chart.legend.roundingValue
228
+ })
229
+ ), m = L({
221
230
  v: t.percentage ?? 0,
222
231
  s: "%",
223
232
  r: e.value.style.chart.legend.roundingPercentage
224
- })}`
225
- }))), N = u(f.value), kt = d(() => e.value.useStartAnimation), wt = u(null), At = d(() => Math.max(...f.value.map((t) => t.percentage))), le = u(!1);
226
- U(() => f.value, Be, { immediate: !0, deep: !0 }), U(() => k.dataset, (t) => {
227
- Array.isArray(t) && t.length > 0 && (K.value = !1);
233
+ }), ie = re({
234
+ showVal: o,
235
+ showPercentage: a,
236
+ val: i,
237
+ percentage: m,
238
+ config: e.value.style.chart.legend
239
+ });
240
+ return {
241
+ ...t,
242
+ display: `${t.name}${o || a ? ": " : ""}${ie}`
243
+ };
244
+ })), z = u(f.value), Ct = v(() => e.value.useStartAnimation), wt = u(null), At = v(() => Math.max(...f.value.map((t) => t.percentage))), le = u(!1);
245
+ V(() => f.value, Be, { immediate: !0, deep: !0 }), V(() => w.dataset, (t) => {
246
+ Array.isArray(t) && t.length > 0 && (Q.value = !1);
228
247
  }, { deep: !0 });
229
248
  function Be() {
230
- if (kt.value && !le.value && !A.value) {
249
+ if (Ct.value && !le.value && !$.value) {
231
250
  let l = function() {
232
- t >= At.value ? (cancelAnimationFrame(wt.value), N.value = f.value, le.value = !0) : (N.value = f.value.map((o) => ({
251
+ t >= At.value ? (cancelAnimationFrame(wt.value), z.value = f.value, le.value = !0) : (z.value = f.value.map((o) => ({
233
252
  ...o,
234
253
  percentage: t < o.targetPercentage ? t : o.targetPercentage
235
254
  })), t += 1, requestAnimationFrame(l), le.value = !0);
236
255
  };
237
- N.value = f.value.map((o) => ({
256
+ z.value = f.value.map((o) => ({
238
257
  ...o,
239
258
  percentage: 0
240
259
  }));
241
260
  let t = 0;
242
261
  l();
243
262
  } else
244
- N.value = f.value;
263
+ z.value = f.value;
245
264
  }
246
- const $t = d(() => ({
265
+ const $t = v(() => ({
247
266
  cy: "onion-div-legend",
248
267
  backgroundColor: e.value.style.chart.legend.backgroundColor,
249
268
  color: e.value.style.chart.legend.color,
250
269
  fontSize: e.value.style.chart.legend.fontSize,
251
270
  paddingBottom: 12,
252
271
  fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
253
- })), Tt = d(() => f.value.filter((t) => !b.value.includes(t.id)).length), B = d(() => {
272
+ })), Tt = v(() => f.value.filter((t) => !b.value.includes(t.id)).length), B = v(() => {
254
273
  const t = Math.min(h.value.width, h.value.height) / 2 / f.value.length;
255
274
  return {
256
275
  gutter: (t > e.value.style.chart.layout.maxThickness ? e.value.style.chart.layout.maxThickness : t) * e.value.style.chart.layout.gutter.width,
257
276
  track: (t > e.value.style.chart.layout.maxThickness ? e.value.style.chart.layout.maxThickness : t) * e.value.style.chart.layout.track.width
258
277
  };
259
- }), F = d(() => N.value.filter((t) => !b.value.includes(t.id)).map((t, l) => {
278
+ }), O = v(() => z.value.filter((t) => !b.value.includes(t.id)).map((t, l) => {
260
279
  const o = (h.value.maxRadius - B.value.track) / Tt.value / 2 * (1 + l), a = h.value.centerY - o;
261
280
  return {
262
281
  percentage: t.percentage || 0,
263
282
  ...t,
264
283
  labelY: a,
265
284
  radius: o,
266
- path: xt(o, t.percentage || 0)
285
+ path: Ft(o, t.percentage || 0)
267
286
  };
268
287
  }));
269
- function xt(t, l) {
270
- const o = 2 * Math.PI * t, a = o * 0.75, g = `${a} ${o}`, $ = a * (1 - l / 100);
288
+ function Ft(t, l) {
289
+ const o = 2 * Math.PI * t, a = o * 0.75, i = `${a} ${o}`, m = a * (1 - l / 100);
271
290
  return {
272
291
  bgDashArray: `${a} ${o}`,
273
292
  bgDashOffset: 0,
274
- dashArray: g,
275
- dashOffset: $,
293
+ dashArray: i,
294
+ dashOffset: m,
276
295
  fullOffset: 0,
277
296
  active: `
278
297
  M ${h.value.centerX},${h.value.centerY - t}
@@ -281,42 +300,42 @@ const qe = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
281
300
  `.trim()
282
301
  };
283
302
  }
284
- const Ft = at;
285
- function j(t) {
303
+ const Ot = at;
304
+ function X(t) {
286
305
  if (b.value.includes(t))
287
306
  b.value = b.value.filter((l) => l !== t);
288
307
  else {
289
308
  if (b.value.length === f.value.length - 1) return;
290
309
  b.value.push(t);
291
310
  }
292
- Ft("selectLegend", F.value);
311
+ Ot("selectLegend", O.value);
293
312
  }
294
- function Pe(t) {
313
+ function Ie(t) {
295
314
  if (!f.value.length)
296
315
  return e.value.debug && console.warn("VueUiOnion - There are no series to show."), null;
297
316
  const l = f.value.find((o) => o.name === t);
298
317
  return l || (e.value.debug && console.warn(`VueUiOnion - Series name not found "${t}"`), null);
299
318
  }
300
- function Ot(t) {
301
- const l = Pe(t);
302
- l !== null && b.value.includes(l.id) && j(l.id);
303
- }
304
319
  function Dt(t) {
305
- const l = Pe(t);
306
- l !== null && (b.value.includes(l.id) || j(l.id));
320
+ const l = Ie(t);
321
+ l !== null && b.value.includes(l.id) && X(l.id);
322
+ }
323
+ function xt(t) {
324
+ const l = Ie(t);
325
+ l !== null && (b.value.includes(l.id) || X(l.id));
307
326
  }
308
327
  function St() {
309
- return F.value;
328
+ return O.value;
310
329
  }
311
- const ae = d(() => {
312
- const t = [e.value.table.translations.serie, e.value.table.translations.percentage, e.value.table.translations.value], l = F.value.map((o) => [
330
+ const ae = v(() => {
331
+ const t = [e.value.table.translations.serie, e.value.table.translations.percentage, e.value.table.translations.value], l = O.value.map((o) => [
313
332
  o.name,
314
333
  o.percentage,
315
334
  o.value
316
335
  ]);
317
336
  return { head: t, body: l };
318
- }), H = d(() => {
319
- const t = ae.value.head, l = F.value.map((a) => [
337
+ }), j = v(() => {
338
+ const t = ae.value.head, l = O.value.map((a) => [
320
339
  `<span style="color:${a.color}">⬤</span> ${a.name}`,
321
340
  `${Number(a.percentage ?? 0).toFixed(e.value.table.td.roundingPercentage).toLocaleString()}%`,
322
341
  `${a.prefix || ""}${[null, void 0, NaN, "NaN"].includes(a.value) ? "-" : a.value.toFixed(e.value.table.td.roundingValue).toLocaleString()}${a.suffix || ""}`
@@ -337,83 +356,135 @@ const qe = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
337
356
  });
338
357
  function ne(t = null) {
339
358
  Xe(() => {
340
- const l = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [""]], o = ae.value.head, a = ae.value.body, g = l.concat([o]).concat(a), $ = Zt(g);
341
- t ? t($) : Jt({ csvContent: $, title: e.value.style.chart.title.text || "vue-ui-onion" });
359
+ const l = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [""]], o = ae.value.head, a = ae.value.body, i = l.concat([o]).concat(a), m = Qt(i);
360
+ t ? t(m) : Zt({ csvContent: m, title: e.value.style.chart.title.text || "vue-ui-onion" });
342
361
  });
343
362
  }
344
- const D = u(void 0), P = u(!1);
363
+ const x = u(void 0), I = u(!1);
345
364
  function Ee(t) {
346
- P.value = t, fe.value += 1;
365
+ I.value = t, fe.value += 1;
347
366
  }
348
367
  function Me({ datapoint: t }) {
349
368
  e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: t, seriesIndex: t.absoluteIndex });
350
369
  }
351
- function Re({ datapoint: t }) {
352
- D.value = void 0, Z.value = !1, e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: t, seriesIndex: t.absoluteIndex });
370
+ function Le({ datapoint: t }) {
371
+ x.value = void 0, J.value = !1, e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: t, seriesIndex: t.absoluteIndex });
372
+ }
373
+ function re({
374
+ val: t,
375
+ percentage: l,
376
+ showVal: o,
377
+ showPercentage: a,
378
+ config: i
379
+ }) {
380
+ return to({
381
+ config: i,
382
+ val: t,
383
+ percentage: l,
384
+ showVal: o,
385
+ showPercentage: a
386
+ });
387
+ }
388
+ function _t(t, l) {
389
+ const o = e.value.style.chart.layout.labels.value.show, a = e.value.style.chart.layout.labels.percentage.show, i = re({
390
+ config: e.value.style.chart.layout.labels,
391
+ showVal: o,
392
+ showPercentage: a,
393
+ val: ve(
394
+ e.value.style.chart.layout.labels.value.formatter,
395
+ t.value,
396
+ L({
397
+ p: t.prefix || "",
398
+ v: t.value || 0,
399
+ s: t.suffix || "",
400
+ r: e.value.style.chart.layout.labels.roundingValue
401
+ }),
402
+ { datapoint: t, seriesIndex: l }
403
+ ),
404
+ percentage: L({
405
+ v: t.percentage,
406
+ s: "%",
407
+ r: e.value.style.chart.layout.labels.roundingPercentage
408
+ })
409
+ });
410
+ return `${t.name}${o || a ? ": " : ""}${i}`;
353
411
  }
354
- const re = u(null);
355
- function ze({ datapoint: t, seriesIndex: l, show: o = !0 }) {
412
+ const se = u(null);
413
+ function Re({ datapoint: t, seriesIndex: l, show: o = !0 }) {
356
414
  e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: t, seriesIndex: t.absoluteIndex });
357
415
  const a = t.absoluteIndex;
358
- D.value = l, re.value = {
416
+ x.value = l, se.value = {
359
417
  datapoint: t,
360
418
  seriesIndex: a,
361
419
  series: f.value,
362
420
  config: e.value
363
- }, Z.value = o;
364
- let g = "";
365
- const $ = e.value.style.chart.tooltip.customFormat;
366
- if (We($) && Kt(() => $({
421
+ }, J.value = o;
422
+ let i = "";
423
+ const m = e.value.style.chart.tooltip.customFormat;
424
+ if (We(m) && eo(() => m({
367
425
  seriesIndex: a,
368
426
  datapoint: t,
369
427
  series: f.value,
370
428
  config: e.value
371
429
  })))
372
- J.value = $({
430
+ K.value = m({
373
431
  seriesIndex: a,
374
432
  datapoint: t,
375
433
  series: f.value,
376
434
  config: e.value
377
435
  });
378
436
  else {
379
- const ue = e.value.style.chart.tooltip.showPercentage, ie = e.value.style.chart.tooltip.showValue;
380
- g += `<div style="width: 100%; border-bottom: 1px solid ${e.value.style.chart.tooltip.borderColor}; padding-bottom: 6px;margin-bottom:3px;display:flex;flex-direction:row;gap:3px;align-items:center"><svg viewBox="0 0 12 12" height="14" width="14"><circle cx="6" cy="6" r="6" stroke="none" fill="${t.color}"/></svg><span></span>${t.name}</span></div>`, g += `<div style="width:100%;text-align:left;"><b>${ue ? z({ p: "", v: t.percentage, s: "%", r: e.value.style.chart.tooltip.roundingPercentage }) : ""}</b> ${ue && ie ? "(" : ""}${ie ? ve(
381
- e.value.style.chart.layout.labels.value.formatter,
382
- t.value,
383
- z({
384
- p: t.prefix || "",
385
- v: t.value,
386
- s: t.suffix || "",
387
- r: e.value.style.chart.tooltip.roundingValue
388
- }),
389
- { datapoint: t, seriesIndex: l }
390
- ) : ""}${ue && ie ? ")" : ""}</div>`, J.value = `<div>${g}</div>`;
437
+ const ie = e.value.style.chart.tooltip.showPercentage, zt = e.value.style.chart.tooltip.showValue;
438
+ i += `<div style="width:100%;text-align:center;border-bottom:1px solid ${e.value.style.chart.tooltip.borderColor};padding-bottom:6px;margin-bottom:3px;">${t.name}</div>`, i += `<div style="display:flex;flex-direction:row;gap:6px;align-items:center;"><svg viewBox="0 0 60 60" height="14" width="14"><circle cx="30" cy="30" r="30" stroke="none" fill="${t.color}"/></svg>`, i += `<b>${re({
439
+ config: e.value.style.chart.tooltip,
440
+ showVal: zt,
441
+ showPercentage: ie,
442
+ val: `<span>${ve(
443
+ e.value.style.chart.layout.labels.value.formatter,
444
+ t.value,
445
+ L({
446
+ p: t.prefix || "",
447
+ v: t.value,
448
+ s: t.suffix || "",
449
+ r: e.value.style.chart.tooltip.roundingValue
450
+ }),
451
+ {
452
+ datapoint: t,
453
+ seriesIndex: l
454
+ }
455
+ )}</span>`,
456
+ percentage: L({
457
+ v: t.percentage,
458
+ s: "%",
459
+ r: e.value.style.chart.tooltip.roundingPercentage
460
+ })
461
+ })}</b></div>`, K.value = `<div>${i}</div>`;
391
462
  }
392
463
  }
393
- function Le() {
394
- m.value.showTable = !m.value.showTable;
464
+ function ze() {
465
+ y.value.showTable = !y.value.showTable;
395
466
  }
396
467
  function Ne() {
397
- m.value.showTooltip = !m.value.showTooltip;
468
+ y.value.showTooltip = !y.value.showTooltip;
398
469
  }
399
- const W = u(!1);
400
- function se() {
401
- W.value = !W.value;
470
+ const H = u(!1);
471
+ function ue() {
472
+ H.value = !H.value;
402
473
  }
403
- async function _t({ scale: t = 2 } = {}) {
474
+ async function Pt({ scale: t = 2 } = {}) {
404
475
  if (!T.value) return;
405
- const { width: l, height: o } = T.value.getBoundingClientRect(), a = l / o, { imageUri: g, base64: $ } = await co({ domElement: T.value, base64: !0, img: !0, scale: t });
476
+ const { width: l, height: o } = T.value.getBoundingClientRect(), a = l / o, { imageUri: i, base64: m } = await ho({ domElement: T.value, base64: !0, img: !0, scale: t });
406
477
  return {
407
- imageUri: g,
408
- base64: $,
478
+ imageUri: i,
479
+ base64: m,
409
480
  title: e.value.style.chart.title.text,
410
481
  width: l,
411
482
  height: o,
412
483
  aspectRatio: a
413
484
  };
414
485
  }
415
- const V = d(() => {
416
- const t = e.value.table.useDialog && !e.value.table.show, l = m.value.showTable;
486
+ const N = v(() => {
487
+ const t = e.value.table.useDialog && !e.value.table.show, l = y.value.showTable;
417
488
  return {
418
489
  component: t ? vt : st,
419
490
  title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? `: ${e.value.style.chart.title.subtitle.text}` : ""}`,
@@ -422,7 +493,7 @@ const qe = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
422
493
  color: e.value.table.th.color,
423
494
  headerColor: e.value.table.th.color,
424
495
  headerBg: e.value.table.th.backgroundColor,
425
- isFullscreen: P.value,
496
+ isFullscreen: I.value,
426
497
  fullscreenParent: T.value,
427
498
  forcedWidth: Math.min(600, window.innerWidth * 0.8)
428
499
  } : {
@@ -442,91 +513,91 @@ const qe = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
442
513
  }
443
514
  };
444
515
  });
445
- U(() => m.value.showTable, (t) => {
446
- e.value.table.show || (t && e.value.table.useDialog && L.value ? L.value.open() : "close" in L.value && L.value.close());
516
+ V(() => y.value.showTable, (t) => {
517
+ e.value.table.show || (t && e.value.table.useDialog && R.value ? R.value.open() : "close" in R.value && R.value.close());
447
518
  });
448
- const It = d(() => oe.value.map((t) => ({
519
+ const Bt = v(() => oe.value.map((t) => ({
449
520
  ...t,
450
521
  name: t.display
451
- }))), Bt = d(() => e.value.style.chart.backgroundColor), Pt = d(() => e.value.style.chart.legend), Et = d(() => e.value.style.chart.title), { exportSvg: Mt, getSvg: Rt } = no({
452
- svg: X,
453
- title: Et,
454
- legend: Pt,
455
- legendItems: It,
456
- backgroundColor: Bt
522
+ }))), It = v(() => e.value.style.chart.backgroundColor), Et = v(() => e.value.style.chart.legend), Mt = v(() => e.value.style.chart.title), { exportSvg: Lt, getSvg: Rt } = uo({
523
+ svg: Y,
524
+ title: Mt,
525
+ legend: Et,
526
+ legendItems: Bt,
527
+ backgroundColor: It
457
528
  });
458
529
  async function Ve({ isCb: t }) {
459
530
  if (t) {
460
- const { blob: l, url: o, text: a, dataUrl: g } = await Rt();
461
- e.value.userOptions.callbacks.svg({ blob: l, url: o, text: a, dataUrl: g });
531
+ const { blob: l, url: o, text: a, dataUrl: i } = await Rt();
532
+ e.value.userOptions.callbacks.svg({ blob: l, url: o, text: a, dataUrl: i });
462
533
  } else
463
- Mt();
534
+ Lt();
464
535
  }
465
536
  return lt({
466
537
  getData: St,
467
- getImage: _t,
468
- generatePdf: De,
538
+ getImage: Pt,
539
+ generatePdf: xe,
469
540
  generateCsv: ne,
470
541
  generateImage: Se,
471
542
  generateSvg: Ve,
472
- hideSeries: Dt,
473
- showSeries: Ot,
474
- toggleTable: Le,
543
+ hideSeries: xt,
544
+ showSeries: Dt,
545
+ toggleTable: ze,
475
546
  toggleTooltip: Ne,
476
- toggleAnnotator: se,
547
+ toggleAnnotator: ue,
477
548
  toggleFullscreen: Ee
478
- }), (t, l) => (s(), v("div", {
479
- class: q(`vue-data-ui-component vue-ui-onion ${P.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
549
+ }), (t, l) => (r(), g("div", {
550
+ class: W(`vue-data-ui-component vue-ui-onion ${I.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
480
551
  ref_key: "onionChart",
481
552
  ref: T,
482
- id: `vue-ui-onion_${w.value}`,
553
+ id: `vue-ui-onion_${A.value}`,
483
554
  style: E(`font-family:${e.value.style.fontFamily};width:100%; ${e.value.responsive ? "height: 100%;" : ""} text-align:center;background:${e.value.style.chart.backgroundColor}`),
484
- onMouseenter: l[4] || (l[4] = () => r(Te)(!0)),
485
- onMouseleave: l[5] || (l[5] = () => r(Te)(!1))
555
+ onMouseenter: l[4] || (l[4] = () => s(Te)(!0)),
556
+ onMouseleave: l[5] || (l[5] = () => s(Te)(!1))
486
557
  }, [
487
- e.value.userOptions.buttons.annotator ? (s(), _(r(ct), {
558
+ e.value.userOptions.buttons.annotator ? (r(), _(s(ct), {
488
559
  key: 0,
489
- svgRef: r(X),
560
+ svgRef: s(Y),
490
561
  backgroundColor: e.value.style.chart.backgroundColor,
491
562
  color: e.value.style.chart.color,
492
- active: W.value,
493
- onClose: se
563
+ active: H.value,
564
+ onClose: ue
494
565
  }, {
495
- "annotator-action-close": i(() => [
496
- c(t.$slots, "annotator-action-close", {}, void 0, !0)
566
+ "annotator-action-close": c(() => [
567
+ d(t.$slots, "annotator-action-close", {}, void 0, !0)
497
568
  ]),
498
- "annotator-action-color": i(({ color: o }) => [
499
- c(t.$slots, "annotator-action-color", y(C({ color: o })), void 0, !0)
569
+ "annotator-action-color": c(({ color: o }) => [
570
+ d(t.$slots, "annotator-action-color", k(C({ color: o })), void 0, !0)
500
571
  ]),
501
- "annotator-action-draw": i(({ mode: o }) => [
502
- c(t.$slots, "annotator-action-draw", y(C({ mode: o })), void 0, !0)
572
+ "annotator-action-draw": c(({ mode: o }) => [
573
+ d(t.$slots, "annotator-action-draw", k(C({ mode: o })), void 0, !0)
503
574
  ]),
504
- "annotator-action-undo": i(({ disabled: o }) => [
505
- c(t.$slots, "annotator-action-undo", y(C({ disabled: o })), void 0, !0)
575
+ "annotator-action-undo": c(({ disabled: o }) => [
576
+ d(t.$slots, "annotator-action-undo", k(C({ disabled: o })), void 0, !0)
506
577
  ]),
507
- "annotator-action-redo": i(({ disabled: o }) => [
508
- c(t.$slots, "annotator-action-redo", y(C({ disabled: o })), void 0, !0)
578
+ "annotator-action-redo": c(({ disabled: o }) => [
579
+ d(t.$slots, "annotator-action-redo", k(C({ disabled: o })), void 0, !0)
509
580
  ]),
510
- "annotator-action-delete": i(({ disabled: o }) => [
511
- c(t.$slots, "annotator-action-delete", y(C({ disabled: o })), void 0, !0)
581
+ "annotator-action-delete": c(({ disabled: o }) => [
582
+ d(t.$slots, "annotator-action-delete", k(C({ disabled: o })), void 0, !0)
512
583
  ]),
513
584
  _: 3
514
585
  }, 8, ["svgRef", "backgroundColor", "color", "active"])) : p("", !0),
515
- bt.value ? (s(), v("div", {
586
+ bt.value ? (r(), g("div", {
516
587
  key: 1,
517
588
  ref_key: "noTitle",
518
- ref: ye,
589
+ ref: me,
519
590
  class: "vue-data-ui-no-title-space",
520
591
  style: "height:36px; width: 100%;background:transparent"
521
592
  }, null, 512)) : p("", !0),
522
- e.value.style.chart.title.text ? (s(), v("div", {
593
+ e.value.style.chart.title.text ? (r(), g("div", {
523
594
  key: 2,
524
595
  ref_key: "chartTitle",
525
596
  ref: pe,
526
597
  style: "width:100%;background:transparent"
527
598
  }, [
528
- (s(), _(vo, {
529
- key: `title_${Ce.value}`,
599
+ (r(), _(fo, {
600
+ key: `title_${ke.value}`,
530
601
  config: {
531
602
  title: {
532
603
  cy: "onion-div-title",
@@ -539,18 +610,18 @@ const qe = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
539
610
  }
540
611
  }, null, 8, ["config"]))
541
612
  ], 512)) : p("", !0),
542
- I("div", {
543
- id: `legend-top-${w.value}`
544
- }, null, 8, po),
545
- e.value.userOptions.show && he.value && (r(xe) || r(Q)) ? (s(), _(r(it), {
613
+ P("div", {
614
+ id: `legend-top-${A.value}`
615
+ }, null, 8, mo),
616
+ e.value.userOptions.show && he.value && (s(Fe) || s(Z)) ? (r(), _(s(it), {
546
617
  ref_key: "details",
547
618
  ref: pt,
548
619
  key: `user_options${fe.value}`,
549
620
  backgroundColor: e.value.style.chart.backgroundColor,
550
621
  color: e.value.style.chart.color,
551
- isImaging: r(Oe),
552
- isPrinting: r(Fe),
553
- uid: w.value,
622
+ isImaging: s(De),
623
+ isPrinting: s(Oe),
624
+ uid: A.value,
554
625
  hasTooltip: e.value.userOptions.buttons.tooltip && e.value.style.chart.tooltip.show,
555
626
  hasPdf: e.value.userOptions.buttons.pdf,
556
627
  hasImg: e.value.userOptions.buttons.img,
@@ -558,102 +629,102 @@ const qe = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
558
629
  hasXls: e.value.userOptions.buttons.csv,
559
630
  hasTable: e.value.userOptions.buttons.table,
560
631
  hasFullscreen: e.value.userOptions.buttons.fullscreen,
561
- isFullscreen: P.value,
562
- isTooltip: m.value.showTooltip,
632
+ isFullscreen: I.value,
633
+ isTooltip: y.value.showTooltip,
563
634
  titles: { ...e.value.userOptions.buttonTitles },
564
635
  chartElement: T.value,
565
636
  position: e.value.userOptions.position,
566
637
  hasAnnotator: e.value.userOptions.buttons.annotator,
567
- isAnnotation: W.value,
638
+ isAnnotation: H.value,
568
639
  callbacks: e.value.userOptions.callbacks,
569
640
  printScale: e.value.userOptions.print.scale,
570
641
  tableDialog: e.value.table.useDialog,
571
642
  onToggleFullscreen: Ee,
572
- onGeneratePdf: r(De),
643
+ onGeneratePdf: s(xe),
573
644
  onGenerateCsv: ne,
574
- onGenerateImage: r(Se),
645
+ onGenerateImage: s(Se),
575
646
  onGenerateSvg: Ve,
576
- onToggleTable: Le,
647
+ onToggleTable: ze,
577
648
  onToggleTooltip: Ne,
578
- onToggleAnnotator: se,
649
+ onToggleAnnotator: ue,
579
650
  style: E({
580
- visibility: r(xe) ? r(Q) ? "visible" : "hidden" : "visible"
651
+ visibility: s(Fe) ? s(Z) ? "visible" : "hidden" : "visible"
581
652
  })
582
653
  }, Ge({ _: 2 }, [
583
654
  t.$slots.menuIcon ? {
584
655
  name: "menuIcon",
585
- fn: i(({ isOpen: o, color: a }) => [
586
- c(t.$slots, "menuIcon", y(C({ isOpen: o, color: a })), void 0, !0)
656
+ fn: c(({ isOpen: o, color: a }) => [
657
+ d(t.$slots, "menuIcon", k(C({ isOpen: o, color: a })), void 0, !0)
587
658
  ]),
588
659
  key: "0"
589
660
  } : void 0,
590
661
  t.$slots.optionTooltip ? {
591
662
  name: "optionTooltip",
592
- fn: i(() => [
593
- c(t.$slots, "optionTooltip", {}, void 0, !0)
663
+ fn: c(() => [
664
+ d(t.$slots, "optionTooltip", {}, void 0, !0)
594
665
  ]),
595
666
  key: "1"
596
667
  } : void 0,
597
668
  t.$slots.optionPdf ? {
598
669
  name: "optionPdf",
599
- fn: i(() => [
600
- c(t.$slots, "optionPdf", {}, void 0, !0)
670
+ fn: c(() => [
671
+ d(t.$slots, "optionPdf", {}, void 0, !0)
601
672
  ]),
602
673
  key: "2"
603
674
  } : void 0,
604
675
  t.$slots.optionCsv ? {
605
676
  name: "optionCsv",
606
- fn: i(() => [
607
- c(t.$slots, "optionCsv", {}, void 0, !0)
677
+ fn: c(() => [
678
+ d(t.$slots, "optionCsv", {}, void 0, !0)
608
679
  ]),
609
680
  key: "3"
610
681
  } : void 0,
611
682
  t.$slots.optionImg ? {
612
683
  name: "optionImg",
613
- fn: i(() => [
614
- c(t.$slots, "optionImg", {}, void 0, !0)
684
+ fn: c(() => [
685
+ d(t.$slots, "optionImg", {}, void 0, !0)
615
686
  ]),
616
687
  key: "4"
617
688
  } : void 0,
618
689
  t.$slots.optionSvg ? {
619
690
  name: "optionSvg",
620
- fn: i(() => [
621
- c(t.$slots, "optionSvg", {}, void 0, !0)
691
+ fn: c(() => [
692
+ d(t.$slots, "optionSvg", {}, void 0, !0)
622
693
  ]),
623
694
  key: "5"
624
695
  } : void 0,
625
696
  t.$slots.optionTable ? {
626
697
  name: "optionTable",
627
- fn: i(() => [
628
- c(t.$slots, "optionTable", {}, void 0, !0)
698
+ fn: c(() => [
699
+ d(t.$slots, "optionTable", {}, void 0, !0)
629
700
  ]),
630
701
  key: "6"
631
702
  } : void 0,
632
703
  t.$slots.optionFullscreen ? {
633
704
  name: "optionFullscreen",
634
- fn: i(({ toggleFullscreen: o, isFullscreen: a }) => [
635
- c(t.$slots, "optionFullscreen", y(C({ toggleFullscreen: o, isFullscreen: a })), void 0, !0)
705
+ fn: c(({ toggleFullscreen: o, isFullscreen: a }) => [
706
+ d(t.$slots, "optionFullscreen", k(C({ toggleFullscreen: o, isFullscreen: a })), void 0, !0)
636
707
  ]),
637
708
  key: "7"
638
709
  } : void 0,
639
710
  t.$slots.optionAnnotator ? {
640
711
  name: "optionAnnotator",
641
- fn: i(({ toggleAnnotator: o, isAnnotator: a }) => [
642
- c(t.$slots, "optionAnnotator", y(C({ toggleAnnotator: o, isAnnotator: a })), void 0, !0)
712
+ fn: c(({ toggleAnnotator: o, isAnnotator: a }) => [
713
+ d(t.$slots, "optionAnnotator", k(C({ toggleAnnotator: o, isAnnotator: a })), void 0, !0)
643
714
  ]),
644
715
  key: "8"
645
716
  } : void 0
646
717
  ]), 1032, ["backgroundColor", "color", "isImaging", "isPrinting", "uid", "hasTooltip", "hasPdf", "hasImg", "hasSvg", "hasXls", "hasTable", "hasFullscreen", "isFullscreen", "isTooltip", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "tableDialog", "onGeneratePdf", "onGenerateImage", "style"])) : p("", !0),
647
- (s(), v("svg", {
718
+ (r(), g("svg", {
648
719
  ref_key: "svgRef",
649
- ref: X,
650
- xmlns: r(qt),
651
- class: q({ "vue-data-ui-fullscreen--on": P.value, "vue-data-ui-fulscreen--off": !P.value, resizing: x.value }),
720
+ ref: Y,
721
+ xmlns: s(Kt),
722
+ class: W({ "vue-data-ui-fullscreen--on": I.value, "vue-data-ui-fulscreen--off": !I.value, resizing: F.value }),
652
723
  viewBox: `0 0 ${n.value.width <= 0 ? 10 : n.value.width} ${n.value.height <= 0 ? 10 : n.value.height}`,
653
724
  style: E(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.chart.color}`)
654
725
  }, [
655
- ce(r(dt)),
656
- t.$slots["chart-background"] ? (s(), v("foreignObject", {
726
+ ce(s(dt)),
727
+ t.$slots["chart-background"] ? (r(), g("foreignObject", {
657
728
  key: 0,
658
729
  x: 0,
659
730
  y: 0,
@@ -663,9 +734,9 @@ const qe = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
663
734
  pointerEvents: "none"
664
735
  }
665
736
  }, [
666
- c(t.$slots, "chart-background", {}, void 0, !0)
667
- ], 8, mo)) : p("", !0),
668
- (s(!0), v(G, null, Y(F.value, (o, a) => (s(), v("circle", {
737
+ d(t.$slots, "chart-background", {}, void 0, !0)
738
+ ], 8, Co)) : p("", !0),
739
+ (r(!0), g(U, null, G(O.value, (o, a) => (r(), g("circle", {
669
740
  cx: h.value.centerX,
670
741
  cy: h.value.centerY,
671
742
  r: o.radius <= 0 ? 1e-4 : o.radius,
@@ -675,15 +746,15 @@ const qe = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
675
746
  "stroke-dasharray": o.path.bgDashArray,
676
747
  "stroke-dashoffset": o.path.fullOffset,
677
748
  "stroke-linecap": "round",
678
- class: q({ "vue-ui-onion-path": !0, "vue-ui-onion-blur": e.value.useBlurOnHover && ![null, void 0].includes(D.value) && D.value !== a }),
749
+ class: W({ "vue-ui-onion-path": !0, "vue-ui-onion-blur": e.value.useBlurOnHover && ![null, void 0].includes(x.value) && x.value !== a }),
679
750
  style: E({
680
751
  transform: "rotate(-90deg)",
681
752
  transformOrigin: "50% 50%",
682
- transition: x.value || r(A) ? "none" : "all 0.3s ease-in-out !important",
683
- animation: x.value || r(A) ? "none" : "xyAnimation 0.5s ease-in"
753
+ transition: F.value || s($) ? "none" : "all 0.3s ease-in-out !important",
754
+ animation: F.value || s($) ? "none" : "xyAnimation 0.5s ease-in"
684
755
  })
685
- }, null, 14, yo))), 256)),
686
- (s(!0), v(G, null, Y(F.value, (o, a) => (s(), v("circle", {
756
+ }, null, 14, wo))), 256)),
757
+ (r(!0), g(U, null, G(O.value, (o, a) => (r(), g("circle", {
687
758
  cx: h.value.centerX,
688
759
  cy: h.value.centerY,
689
760
  r: o.radius < 0 ? 1e-4 : o.radius,
@@ -692,34 +763,34 @@ const qe = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
692
763
  fill: "none",
693
764
  "stroke-dasharray": o.path.dashArray,
694
765
  "stroke-dashoffset": o.path.dashOffset,
695
- class: q({ "vue-ui-onion-path": !0, "vue-ui-onion-blur": e.value.useBlurOnHover && ![null, void 0].includes(D.value) && D.value !== a }),
766
+ class: W({ "vue-ui-onion-path": !0, "vue-ui-onion-blur": e.value.useBlurOnHover && ![null, void 0].includes(x.value) && x.value !== a }),
696
767
  "stroke-linecap": "round",
697
768
  style: E({
698
769
  transform: "rotate(-90deg)",
699
770
  transformOrigin: "50% 50%",
700
- transition: x.value || r(A) ? "none" : "all 0.3s ease-in-out !important",
701
- animation: x.value || r(A) ? "none" : "xyAnimation 0.5s ease-in"
771
+ transition: F.value || s($) ? "none" : "all 0.3s ease-in-out !important",
772
+ animation: F.value || s($) ? "none" : "xyAnimation 0.5s ease-in"
702
773
  })
703
- }, null, 14, Co))), 256)),
704
- I("defs", null, [
705
- I("filter", {
706
- id: `blur_${w.value}`,
774
+ }, null, 14, Ao))), 256)),
775
+ P("defs", null, [
776
+ P("filter", {
777
+ id: `blur_${A.value}`,
707
778
  x: "-50%",
708
779
  y: "-50%",
709
780
  width: "200%",
710
781
  height: "200%"
711
782
  }, [
712
- I("feGaussianBlur", {
783
+ P("feGaussianBlur", {
713
784
  in: "SourceGraphic",
714
785
  stdDeviation: 100 / e.value.style.chart.gradientIntensity
715
- }, null, 8, wo)
716
- ], 8, ko)
786
+ }, null, 8, To)
787
+ ], 8, $o)
717
788
  ]),
718
- e.value.style.chart.useGradient ? (s(), v("g", {
789
+ e.value.style.chart.useGradient ? (r(), g("g", {
719
790
  key: 1,
720
- filter: `url(#blur_${w.value})`
791
+ filter: `url(#blur_${A.value})`
721
792
  }, [
722
- (s(!0), v(G, null, Y(F.value, (o, a) => (s(), v("circle", {
793
+ (r(!0), g(U, null, G(O.value, (o, a) => (r(), g("circle", {
723
794
  cx: h.value.centerX,
724
795
  cy: h.value.centerY,
725
796
  r: o.radius <= 0 ? 1e-4 : o.radius,
@@ -732,12 +803,12 @@ const qe = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
732
803
  style: E({
733
804
  transform: "rotate(-90deg)",
734
805
  transformOrigin: "50% 50%",
735
- transition: x.value || r(A) ? "none" : "all 0.3s ease-in-out !important",
736
- animation: x.value || r(A) ? "none" : "xyAnimation 0.5s ease-in"
806
+ transition: F.value || s($) ? "none" : "all 0.3s ease-in-out !important",
807
+ animation: F.value || s($) ? "none" : "xyAnimation 0.5s ease-in"
737
808
  })
738
- }, null, 12, $o))), 256))
739
- ], 8, Ao)) : p("", !0),
740
- (s(!0), v(G, null, Y(F.value, (o, a) => (s(), v("circle", {
809
+ }, null, 12, Oo))), 256))
810
+ ], 8, Fo)) : p("", !0),
811
+ (r(!0), g(U, null, G(O.value, (o, a) => (r(), g("circle", {
741
812
  cx: h.value.centerX,
742
813
  cy: h.value.centerY,
743
814
  r: o.radius <= 0 ? 1e-4 : o.radius,
@@ -752,107 +823,83 @@ const qe = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
752
823
  transform: "rotate(-90deg)",
753
824
  transformOrigin: "50% 50%"
754
825
  },
755
- onMouseenter: (g) => ze({
826
+ onMouseenter: (i) => Re({
756
827
  datapoint: o,
757
828
  show: !0,
758
829
  seriesIndex: a
759
830
  }),
760
- onMouseleave: (g) => Re({ datapoint: o }),
761
- onClick: (g) => Me({ datapoint: o })
762
- }, null, 40, To))), 256)),
763
- e.value.style.chart.layout.labels.show ? (s(), v("g", xo, [
764
- (s(!0), v(G, null, Y(F.value, (o, a) => (s(), v("g", {
765
- onMouseenter: (g) => ze({
831
+ onMouseleave: (i) => Le({ datapoint: o }),
832
+ onClick: (i) => Me({ datapoint: o })
833
+ }, null, 40, Do))), 256)),
834
+ e.value.style.chart.layout.labels.show ? (r(), g("g", xo, [
835
+ (r(!0), g(U, null, G(O.value, (o, a) => (r(), g("g", {
836
+ onMouseenter: (i) => Re({
766
837
  datapoint: o,
767
838
  show: !0,
768
839
  seriesIndex: a
769
840
  }),
770
- onMouseleave: (g) => Re({ datapoint: o }),
771
- onClick: (g) => Me({ datapoint: o })
841
+ onMouseleave: (i) => Le({ datapoint: o }),
842
+ onClick: (i) => Me({ datapoint: o })
772
843
  }, [
773
- b.value.includes(o.id) ? p("", !0) : (s(), v("text", {
844
+ b.value.includes(o.id) ? p("", !0) : (r(), g("text", {
774
845
  key: 0,
775
846
  class: "vue-ui-onion-label",
776
847
  x: n.value.width / 2 - B.value.gutter * 0.8 + e.value.style.chart.layout.labels.offsetX,
777
848
  y: o.labelY + e.value.style.chart.layout.labels.offsetY,
778
849
  "text-anchor": "end",
779
850
  "font-size": e.value.style.chart.layout.labels.fontSize,
780
- fill: e.value.useBlurOnHover && ![null, void 0].includes(D.value) && D.value === a ? o.color : e.value.style.chart.layout.labels.color,
851
+ fill: e.value.useBlurOnHover && ![null, void 0].includes(x.value) && x.value === a ? o.color : e.value.style.chart.layout.labels.color,
781
852
  "font-weight": e.value.style.chart.layout.labels.bold ? "bold" : "normal"
782
- }, R(o.name ? o.name + ": " : "") + " " + R(e.value.style.chart.layout.labels.percentage.show ? r(z)({
783
- v: o.percentage,
784
- s: "%",
785
- r: e.value.style.chart.layout.labels.roundingPercentage
786
- }) : "") + " " + R(!e.value.style.chart.layout.labels.percentage.show && e.value.style.chart.layout.labels.value.show ? `: ${r(ve)(
787
- e.value.style.chart.layout.labels.value.formatter,
788
- o.value,
789
- r(z)({
790
- p: o.prefix || "",
791
- v: o.value || 0,
792
- s: o.suffix || "",
793
- r: e.value.style.chart.layout.labels.roundingValue
794
- }),
795
- { datapoint: o, seriesIndex: a }
796
- )}` : `${e.value.style.chart.layout.labels.value.show && o.value ? `(${r(ve)(
797
- e.value.style.chart.layout.labels.value.formatter,
798
- o.value,
799
- r(z)({
800
- p: o.prefix || "",
801
- v: o.value || 0,
802
- s: o.suffix || "",
803
- r: e.value.style.chart.layout.labels.roundingValue
804
- }),
805
- { datapoint: o, seriesIndex: a }
806
- )})` : ""}`), 9, Oo))
807
- ], 40, Fo))), 256))
853
+ }, q(_t(o, a)), 9, _o))
854
+ ], 40, So))), 256))
808
855
  ])) : p("", !0),
809
- c(t.$slots, "svg", { svg: n.value }, void 0, !0)
810
- ], 14, bo)),
811
- t.$slots.watermark ? (s(), v("div", Do, [
812
- c(t.$slots, "watermark", y(C({ isPrinting: r(Fe) || r(Oe) })), void 0, !0)
856
+ d(t.$slots, "svg", { svg: n.value }, void 0, !0)
857
+ ], 14, ko)),
858
+ t.$slots.watermark ? (r(), g("div", Po, [
859
+ d(t.$slots, "watermark", k(C({ isPrinting: s(Oe) || s(De) })), void 0, !0)
813
860
  ])) : p("", !0),
814
- I("div", {
815
- id: `legend-bottom-${w.value}`
816
- }, null, 8, So),
817
- Ae.value ? (s(), _(Vt, {
861
+ P("div", {
862
+ id: `legend-bottom-${A.value}`
863
+ }, null, 8, Bo),
864
+ Ae.value ? (r(), _(Gt, {
818
865
  key: 5,
819
- to: e.value.style.chart.legend.position === "top" ? `#legend-top-${w.value}` : `#legend-bottom-${w.value}`
866
+ to: e.value.style.chart.legend.position === "top" ? `#legend-top-${A.value}` : `#legend-bottom-${A.value}`
820
867
  }, [
821
- I("div", {
868
+ P("div", {
822
869
  ref_key: "chartLegend",
823
870
  ref: be
824
871
  }, [
825
- e.value.style.chart.legend.show ? (s(), _(go, {
872
+ e.value.style.chart.legend.show ? (r(), _(po, {
826
873
  key: `legend_${we.value}`,
827
874
  legendSet: oe.value,
828
875
  config: $t.value,
829
- onClickMarker: l[0] || (l[0] = ({ legend: o }) => j(o.id))
876
+ onClickMarker: l[0] || (l[0] = ({ legend: o }) => X(o.id))
830
877
  }, {
831
- item: i(({ legend: o }) => [
832
- r(A) ? p("", !0) : (s(), v("div", {
878
+ item: c(({ legend: o }) => [
879
+ s($) ? p("", !0) : (r(), g("div", {
833
880
  key: 0,
834
881
  "data-cy-legend-item": "",
835
882
  onClick: (a) => o.segregate(),
836
883
  style: E(`opacity:${b.value.includes(o.id) ? 0.5 : 1}`)
837
- }, R(o.display), 13, _o))
884
+ }, q(o.display), 13, Io))
838
885
  ]),
839
886
  _: 1
840
- }, 8, ["legendSet", "config"])) : c(t.$slots, "legend", {
887
+ }, 8, ["legendSet", "config"])) : d(t.$slots, "legend", {
841
888
  key: 1,
842
889
  legend: oe.value
843
890
  }, void 0, !0)
844
891
  ], 512)
845
892
  ], 8, ["to"])) : p("", !0),
846
- t.$slots.source ? (s(), v("div", {
893
+ t.$slots.source ? (r(), g("div", {
847
894
  key: 6,
848
895
  ref_key: "source",
849
- ref: me,
896
+ ref: ye,
850
897
  dir: "auto"
851
898
  }, [
852
- c(t.$slots, "source", {}, void 0, !0)
899
+ d(t.$slots, "source", {}, void 0, !0)
853
900
  ], 512)) : p("", !0),
854
- ce(r(nt), {
855
- show: m.value.showTooltip && Z.value,
901
+ ce(s(nt), {
902
+ show: y.value.showTooltip && J.value,
856
903
  backgroundColor: e.value.style.chart.tooltip.backgroundColor,
857
904
  color: e.value.style.chart.tooltip.color,
858
905
  borderRadius: e.value.style.chart.tooltip.borderRadius,
@@ -863,43 +910,43 @@ const qe = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
863
910
  position: e.value.style.chart.tooltip.position,
864
911
  offsetY: e.value.style.chart.tooltip.offsetY,
865
912
  parent: T.value,
866
- content: J.value,
867
- isFullscreen: P.value,
868
- isCustom: r(We)(e.value.style.chart.tooltip.customFormat),
913
+ content: K.value,
914
+ isFullscreen: I.value,
915
+ isCustom: s(We)(e.value.style.chart.tooltip.customFormat),
869
916
  smooth: e.value.style.chart.tooltip.smooth,
870
917
  backdropFilter: e.value.style.chart.tooltip.backdropFilter,
871
918
  smoothForce: e.value.style.chart.tooltip.smoothForce,
872
919
  smoothSnapThreshold: e.value.style.chart.tooltip.smoothSnapThreshold
873
920
  }, {
874
- "tooltip-before": i(() => [
875
- c(t.$slots, "tooltip-before", y(C({ ...re.value })), void 0, !0)
921
+ "tooltip-before": c(() => [
922
+ d(t.$slots, "tooltip-before", k(C({ ...se.value })), void 0, !0)
876
923
  ]),
877
- "tooltip-after": i(() => [
878
- c(t.$slots, "tooltip-after", y(C({ ...re.value })), void 0, !0)
924
+ "tooltip-after": c(() => [
925
+ d(t.$slots, "tooltip-after", k(C({ ...se.value })), void 0, !0)
879
926
  ]),
880
927
  _: 3
881
928
  }, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "fontSize", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom", "smooth", "backdropFilter", "smoothForce", "smoothSnapThreshold"]),
882
- he.value && e.value.userOptions.buttons.table ? (s(), _(Ut(V.value.component), Gt({ key: 7 }, V.value.props, {
929
+ he.value && e.value.userOptions.buttons.table ? (r(), _(Yt(N.value.component), Xt({ key: 7 }, N.value.props, {
883
930
  ref_key: "tableUnit",
884
- ref: L,
885
- onClose: l[3] || (l[3] = (o) => m.value.showTable = !1)
931
+ ref: R,
932
+ onClose: l[3] || (l[3] = (o) => y.value.showTable = !1)
886
933
  }), Ge({
887
- content: i(() => [
888
- (s(), _(r(ut), {
889
- key: `table_${ke.value}`,
890
- colNames: H.value.colNames,
891
- head: H.value.head,
892
- body: H.value.body,
893
- config: H.value.config,
894
- title: e.value.table.useDialog ? "" : V.value.title,
934
+ content: c(() => [
935
+ (r(), _(s(ut), {
936
+ key: `table_${Ce.value}`,
937
+ colNames: j.value.colNames,
938
+ head: j.value.head,
939
+ body: j.value.body,
940
+ config: j.value.config,
941
+ title: e.value.table.useDialog ? "" : N.value.title,
895
942
  withCloseButton: !e.value.table.useDialog,
896
- onClose: l[2] || (l[2] = (o) => m.value.showTable = !1)
943
+ onClose: l[2] || (l[2] = (o) => y.value.showTable = !1)
897
944
  }, {
898
- th: i(({ th: o }) => [
899
- Ye(R(o), 1)
945
+ th: c(({ th: o }) => [
946
+ Ye(q(o), 1)
900
947
  ]),
901
- td: i(({ td: o }) => [
902
- I("div", { innerHTML: o }, null, 8, Io)
948
+ td: c(({ td: o }) => [
949
+ P("div", { innerHTML: o }, null, 8, Eo)
903
950
  ]),
904
951
  _: 1
905
952
  }, 8, ["colNames", "head", "body", "config", "title", "withCloseButton"]))
@@ -908,37 +955,37 @@ const qe = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
908
955
  }, [
909
956
  e.value.table.useDialog ? {
910
957
  name: "title",
911
- fn: i(() => [
912
- Ye(R(V.value.title), 1)
958
+ fn: c(() => [
959
+ Ye(q(N.value.title), 1)
913
960
  ]),
914
961
  key: "0"
915
962
  } : void 0,
916
963
  e.value.table.useDialog ? {
917
964
  name: "actions",
918
- fn: i(() => [
919
- I("button", {
965
+ fn: c(() => [
966
+ P("button", {
920
967
  tabindex: "0",
921
968
  class: "vue-ui-user-options-button",
922
969
  onClick: l[1] || (l[1] = (o) => ne(e.value.userOptions.callbacks.csv))
923
970
  }, [
924
- ce(r(rt), {
971
+ ce(s(rt), {
925
972
  name: "excel",
926
- stroke: V.value.props.color
973
+ stroke: N.value.props.color
927
974
  }, null, 8, ["stroke"])
928
975
  ])
929
976
  ]),
930
977
  key: "1"
931
978
  } : void 0
932
979
  ]), 1040)) : p("", !0),
933
- r(A) ? (s(), _(lo, { key: 8 })) : p("", !0)
934
- ], 46, fo));
980
+ s($) ? (r(), _(ro, { key: 8 })) : p("", !0)
981
+ ], 46, yo));
935
982
  }
936
- }, Po = /* @__PURE__ */ ho(Bo, [["__scopeId", "data-v-eec12458"]]), Jo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
983
+ }, Lo = /* @__PURE__ */ bo(Mo, [["__scopeId", "data-v-0e506fb5"]]), tl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
937
984
  __proto__: null,
938
- default: Po
985
+ default: Lo
939
986
  }, Symbol.toStringTag, { value: "Module" }));
940
987
  export {
941
- Zo as a,
942
- Jo as b,
943
- Po as v
988
+ el as a,
989
+ tl as b,
990
+ Lo as v
944
991
  };