vue-data-ui 3.2.7 → 3.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (159) hide show
  1. package/dist/{Arrow-Bb0bGghy.js → Arrow-CKLBHe3L.js} +1 -1
  2. package/dist/{BaseDraggableDialog-CHhZIht2.js → BaseDraggableDialog-q3pgSDTz.js} +2 -2
  3. package/dist/{BaseIcon-Bz-1GQhu.js → BaseIcon-CtqN7W_g.js} +4 -3
  4. package/dist/{ColorPicker-B-WUqMoV.js → ColorPicker-Cr6rUDTP.js} +2 -2
  5. package/dist/{DataTable-BvjacRbw.js → DataTable-BeI6gYJX.js} +2 -2
  6. package/dist/{Legend-BpoFJ8fc.js → Legend-DsogCeTb.js} +2 -2
  7. package/dist/{NonSvgPenAndPaper-l9giyY1Z.js → NonSvgPenAndPaper-BDK_ucTG.js} +3 -3
  8. package/dist/{PackageVersion-Cwrh45ON.js → PackageVersion-C9oklnuy.js} +1 -1
  9. package/dist/{PenAndPaper-CR8q353D.js → PenAndPaper-BxbYiPy4.js} +3 -3
  10. package/dist/{Shape-C_C_OmqR.js → Shape-DJG2zW7b.js} +1 -1
  11. package/dist/{Slicer-BA2GhOmY.js → Slicer-D6T4aUhr.js} +2 -2
  12. package/dist/{SparkTooltip-Dz1PDE_h.js → SparkTooltip-Cp0G9giW.js} +1 -1
  13. package/dist/{Title-DG2nloSB.js → Title-D17CJXko.js} +1 -1
  14. package/dist/{Tooltip-BOXz8skU.js → Tooltip-CtVdvbZi.js} +1 -1
  15. package/dist/{UserOptions-DsTgvAok.js → UserOptions-B3vCIe-u.js} +168 -126
  16. package/dist/components/arrow.js +1 -1
  17. package/dist/components/vue-ui-3d-bar.js +1 -1
  18. package/dist/components/vue-ui-accordion.js +1 -1
  19. package/dist/components/vue-ui-age-pyramid.js +1 -1
  20. package/dist/components/vue-ui-annotator.js +1 -1
  21. package/dist/components/vue-ui-bullet.js +1 -1
  22. package/dist/components/vue-ui-candlestick.js +1 -1
  23. package/dist/components/vue-ui-carousel-table.js +1 -1
  24. package/dist/components/vue-ui-chestnut.js +1 -1
  25. package/dist/components/vue-ui-chord.js +1 -1
  26. package/dist/components/vue-ui-circle-pack.js +1 -1
  27. package/dist/components/vue-ui-cursor.js +1 -1
  28. package/dist/components/vue-ui-dashboard.js +1 -1
  29. package/dist/components/vue-ui-digits.js +1 -1
  30. package/dist/components/vue-ui-donut-evolution.js +1 -1
  31. package/dist/components/vue-ui-donut.js +1 -1
  32. package/dist/components/vue-ui-dumbbell.js +1 -1
  33. package/dist/components/vue-ui-flow.js +1 -1
  34. package/dist/components/vue-ui-funnel.js +1 -1
  35. package/dist/components/vue-ui-galaxy.js +1 -1
  36. package/dist/components/vue-ui-gauge.js +1 -1
  37. package/dist/components/vue-ui-gizmo.js +1 -1
  38. package/dist/components/vue-ui-heatmap.js +1 -1
  39. package/dist/components/vue-ui-history-plot.js +1 -1
  40. package/dist/components/vue-ui-horizontal-bar.js +1 -1
  41. package/dist/components/vue-ui-icon.js +1 -1
  42. package/dist/components/vue-ui-kpi.js +1 -1
  43. package/dist/components/vue-ui-mini-loader.js +1 -1
  44. package/dist/components/vue-ui-molecule.js +1 -1
  45. package/dist/components/vue-ui-mood-radar.js +1 -1
  46. package/dist/components/vue-ui-nested-donuts.js +1 -1
  47. package/dist/components/vue-ui-onion.js +1 -1
  48. package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
  49. package/dist/components/vue-ui-quadrant.js +1 -1
  50. package/dist/components/vue-ui-quick-chart.js +1 -1
  51. package/dist/components/vue-ui-radar.js +1 -1
  52. package/dist/components/vue-ui-rating.js +1 -1
  53. package/dist/components/vue-ui-relation-circle.js +1 -1
  54. package/dist/components/vue-ui-ridgeline.js +1 -1
  55. package/dist/components/vue-ui-rings.js +1 -1
  56. package/dist/components/vue-ui-scatter.js +1 -1
  57. package/dist/components/vue-ui-skeleton.js +1 -1
  58. package/dist/components/vue-ui-smiley.js +1 -1
  59. package/dist/components/vue-ui-spark-trend.js +1 -1
  60. package/dist/components/vue-ui-sparkbar.js +1 -1
  61. package/dist/components/vue-ui-sparkgauge.js +1 -1
  62. package/dist/components/vue-ui-sparkhistogram.js +1 -1
  63. package/dist/components/vue-ui-sparkline.js +1 -1
  64. package/dist/components/vue-ui-sparkstackbar.js +1 -1
  65. package/dist/components/vue-ui-stackbar.js +1 -1
  66. package/dist/components/vue-ui-strip-plot.js +1 -1
  67. package/dist/components/vue-ui-table-heatmap.js +1 -1
  68. package/dist/components/vue-ui-table-sparkline.js +1 -1
  69. package/dist/components/vue-ui-table.js +1 -1
  70. package/dist/components/vue-ui-thermometer.js +1 -1
  71. package/dist/components/vue-ui-timer.js +1 -1
  72. package/dist/components/vue-ui-tiremarks.js +1 -1
  73. package/dist/components/vue-ui-treemap.js +1 -1
  74. package/dist/components/vue-ui-vertical-bar.js +1 -1
  75. package/dist/components/vue-ui-waffle.js +1 -1
  76. package/dist/components/vue-ui-wheel.js +1 -1
  77. package/dist/components/vue-ui-word-cloud.js +1 -1
  78. package/dist/components/vue-ui-world.js +1 -1
  79. package/dist/components/vue-ui-xy-canvas.js +1 -1
  80. package/dist/components/vue-ui-xy.js +1 -1
  81. package/dist/{dom-to-png-BgvOdfyW.js → dom-to-png-BiyqJA3t.js} +1 -1
  82. package/dist/{img-DjWwQXVS.js → img-6wPuVVtk.js} +1 -1
  83. package/dist/{lib-BEpWEyMm.js → lib-GIYcnm0E.js} +110 -96
  84. package/dist/{pdf-YD0ShN36.js → pdf-DjbHsnrb.js} +1 -1
  85. package/dist/style.css +1 -1
  86. package/dist/types/vue-data-ui.d.ts +8 -1
  87. package/dist/{useAutoSizeLabelsInsideViewbox-BVJkib7z.js → useAutoSizeLabelsInsideViewbox-Csv3pVmh.js} +1 -1
  88. package/dist/{useNestedProp-BOk-tPdu.js → useNestedProp-mxyyqd0B.js} +291 -246
  89. package/dist/{usePrinter-w23K-ezx.js → usePrinter-DYRFiw7X.js} +2 -2
  90. package/dist/useSvgExport-B7-Vrjtu.js +732 -0
  91. package/dist/vue-data-ui-DLU1snC3.js +326 -0
  92. package/dist/vue-data-ui.js +68 -68
  93. package/dist/{vue-ui-3d-bar-CRXnB8wH.js → vue-ui-3d-bar-D6xoBrN6.js} +358 -342
  94. package/dist/{vue-ui-accordion-CeMTgpl0.js → vue-ui-accordion-Dch9YrCi.js} +19 -19
  95. package/dist/{vue-ui-age-pyramid-BEGsngR6.js → vue-ui-age-pyramid-D74mAaLA.js} +228 -212
  96. package/dist/{vue-ui-annotator-BhZr9pFJ.js → vue-ui-annotator-DwRwhrgB.js} +9 -9
  97. package/dist/{vue-ui-bullet-CrCHb15S.js → vue-ui-bullet-D2qVUqWs.js} +197 -179
  98. package/dist/{vue-ui-candlestick-CnWY88nd.js → vue-ui-candlestick-C81k1_f9.js} +279 -263
  99. package/dist/{vue-ui-carousel-table-CsVWXrdA.js → vue-ui-carousel-table-DBIhnEj-.js} +6 -6
  100. package/dist/{vue-ui-chestnut-NpO91zJV.js → vue-ui-chestnut-CSM-_IWw.js} +426 -380
  101. package/dist/{vue-ui-chord-bIihB6Qf.js → vue-ui-chord-BFW9nnNh.js} +318 -299
  102. package/dist/{vue-ui-circle-pack-Z5VTiXZU.js → vue-ui-circle-pack-D6mTG5i0.js} +249 -233
  103. package/dist/{vue-ui-cursor-Detis-4Y.js → vue-ui-cursor-BJmTAMpP.js} +2 -2
  104. package/dist/{vue-ui-dashboard-BEJ5uSZV.js → vue-ui-dashboard-BdFLsK4u.js} +72 -71
  105. package/dist/{vue-ui-digits-CDtdGqLS.js → vue-ui-digits-DXum1rs6.js} +10 -10
  106. package/dist/{vue-ui-donut-a82yzfvT.js → vue-ui-donut-CqefukGp.js} +662 -645
  107. package/dist/{vue-ui-donut-evolution-DP_dXmIC.js → vue-ui-donut-evolution-DFIbK50s.js} +407 -385
  108. package/dist/{vue-ui-dumbbell-BDIzPnlX.js → vue-ui-dumbbell-DIo2ecGY.js} +295 -274
  109. package/dist/vue-ui-flow--kiGWaq4.js +931 -0
  110. package/dist/{vue-ui-funnel-CaxHiJIB.js → vue-ui-funnel-B8UHwj15.js} +197 -181
  111. package/dist/{vue-ui-galaxy-CbGRAAFI.js → vue-ui-galaxy-eQZh_y3l.js} +265 -252
  112. package/dist/{vue-ui-gauge-But_1QwV.js → vue-ui-gauge-DJ-E6L2T.js} +256 -240
  113. package/dist/{vue-ui-gizmo-DcBQp-C8.js → vue-ui-gizmo-DFxlqPz7.js} +18 -18
  114. package/dist/{vue-ui-heatmap-BAVkwnbX.js → vue-ui-heatmap-CcAe5dDN.js} +394 -373
  115. package/dist/{vue-ui-history-plot-BlVib573.js → vue-ui-history-plot-CgKvd7Jx.js} +337 -319
  116. package/dist/{vue-ui-kpi-DuFgWXJM.js → vue-ui-kpi-Ct2iyD49.js} +4 -4
  117. package/dist/{vue-ui-mini-loader-D4W9oE3V.js → vue-ui-mini-loader-ByjcvXBB.js} +19 -19
  118. package/dist/{vue-ui-molecule-CEb6_0wR.js → vue-ui-molecule-CGDBEAkX.js} +176 -160
  119. package/dist/vue-ui-mood-radar-D9GuK4cI.js +876 -0
  120. package/dist/{vue-ui-nested-donuts-B6rmNl9X.js → vue-ui-nested-donuts-CGKgOTX2.js} +542 -519
  121. package/dist/{vue-ui-onion-BWAdTZ6V.js → vue-ui-onion-C5tE1Woz.js} +318 -289
  122. package/dist/{vue-ui-parallel-coordinate-plot-DXbgnatq.js → vue-ui-parallel-coordinate-plot-CVhD6IoH.js} +253 -234
  123. package/dist/{vue-ui-quadrant-BwGMZ_d_.js → vue-ui-quadrant-BGDCaOXv.js} +295 -277
  124. package/dist/{vue-ui-quick-chart-2bQ0DX_A.js → vue-ui-quick-chart-CjXSB-2S.js} +724 -686
  125. package/dist/{vue-ui-radar-DPXvVIbh.js → vue-ui-radar-rhxkROX7.js} +307 -282
  126. package/dist/{vue-ui-rating-CxIBq7Xr.js → vue-ui-rating-Bo9gSy-z.js} +4 -4
  127. package/dist/{vue-ui-relation-circle-BVGAfqBj.js → vue-ui-relation-circle-Qo8FKbL2.js} +147 -132
  128. package/dist/{vue-ui-ridgeline-C6UdClMT.js → vue-ui-ridgeline-ahOApbEC.js} +320 -299
  129. package/dist/{vue-ui-rings-B_7zAshC.js → vue-ui-rings-DFAVaEBs.js} +323 -310
  130. package/dist/{vue-ui-scatter-BRr9oPfo.js → vue-ui-scatter-zjlWyvVd.js} +390 -372
  131. package/dist/{vue-ui-skeleton-C3tGR_lR.js → vue-ui-skeleton-CKfOnyd_.js} +105 -105
  132. package/dist/{vue-ui-smiley-B70Ck-49.js → vue-ui-smiley-CY7UiJ9C.js} +88 -88
  133. package/dist/{vue-ui-spark-trend-C2tSZULg.js → vue-ui-spark-trend-DwNYP97M.js} +5 -5
  134. package/dist/{vue-ui-sparkbar-BUPDw_qR.js → vue-ui-sparkbar-BkdcYrmg.js} +30 -30
  135. package/dist/{vue-ui-sparkgauge-DufAZyFK.js → vue-ui-sparkgauge-C6Kq_OGV.js} +4 -4
  136. package/dist/{vue-ui-sparkhistogram-DDunWMKu.js → vue-ui-sparkhistogram-CjB33yXB.js} +7 -7
  137. package/dist/{vue-ui-sparkline-lRx2nNde.js → vue-ui-sparkline-DcH4yIEd.js} +5 -5
  138. package/dist/{vue-ui-sparkstackbar-CB6WHJHd.js → vue-ui-sparkstackbar-MKr2u_pO.js} +5 -5
  139. package/dist/{vue-ui-stackbar-CQ9Zvuxh.js → vue-ui-stackbar-DKV-exfd.js} +356 -338
  140. package/dist/{vue-ui-strip-plot-DW3c82dV.js → vue-ui-strip-plot-ncTrDlNC.js} +368 -352
  141. package/dist/{vue-ui-table-CEt97z7F.js → vue-ui-table-BdT3lGuv.js} +16 -16
  142. package/dist/{vue-ui-table-heatmap-DFZCaMxK.js → vue-ui-table-heatmap-D929cWB0.js} +9 -9
  143. package/dist/{vue-ui-table-sparkline-RB40-Z1R.js → vue-ui-table-sparkline-CkZ_ygR1.js} +7 -7
  144. package/dist/{vue-ui-thermometer-fmPzO-eT.js → vue-ui-thermometer-CjBLR6H9.js} +148 -133
  145. package/dist/{vue-ui-timer-qxLpO3HX.js → vue-ui-timer-Bs7eMmiC.js} +7 -7
  146. package/dist/vue-ui-tiremarks-nGOZKRcz.js +423 -0
  147. package/dist/{vue-ui-treemap-B4-IPDxV.js → vue-ui-treemap-SQ2f5wbN.js} +403 -373
  148. package/dist/{vue-ui-vertical-bar-Y5LefeNg.js → vue-ui-vertical-bar-Hh9gAN5j.js} +295 -260
  149. package/dist/{vue-ui-waffle-gvnJOZlg.js → vue-ui-waffle-C7moVBln.js} +396 -377
  150. package/dist/{vue-ui-wheel-BzS_N3GP.js → vue-ui-wheel-KrGLMCqW.js} +185 -169
  151. package/dist/{vue-ui-word-cloud-vWhTarrE.js → vue-ui-word-cloud-BQSu6kiR.js} +234 -218
  152. package/dist/{vue-ui-world-CqWuE8ZR.js → vue-ui-world-DdoMFJcV.js} +344 -326
  153. package/dist/{vue-ui-xy-BxpuE9Ng.js → vue-ui-xy-B2fjTYMJ.js} +1602 -1708
  154. package/dist/{vue-ui-xy-canvas-C9YQjaUA.js → vue-ui-xy-canvas-oUXISeU8.js} +12 -12
  155. package/package.json +1 -1
  156. package/dist/vue-data-ui-DH8opsJv.js +0 -325
  157. package/dist/vue-ui-flow-B72CBzC3.js +0 -909
  158. package/dist/vue-ui-mood-radar-CqJPicZv.js +0 -853
  159. package/dist/vue-ui-tiremarks-Cxx97FLg.js +0 -407
@@ -1,21 +1,22 @@
1
- import { defineAsyncComponent as A, computed as v, ref as r, toRefs as yt, watch as U, shallowRef as Be, onMounted as bt, onBeforeUnmount as kt, createElementBlock as i, openBlock as u, unref as s, normalizeStyle as D, normalizeClass as W, createBlock as S, createCommentVNode as g, createElementVNode as I, createVNode as re, createSlots as Le, withCtx as d, renderSlot as p, normalizeProps as z, guardReactiveProps as N, Fragment as Y, renderList as E, toDisplayString as M, Teleport as wt, resolveDynamicComponent as Ct, mergeProps as $t, createTextVNode as Ve, nextTick as Ue } from "vue";
2
- import { c as xt, t as Tt, b as Ot, p as Ye, e as _t, o as Ee, f as ie, h as At, X as St, d as X, a as ce, z as Xe, x as It, y as Pt, A as Ft } from "./lib-BEpWEyMm.js";
3
- import { t as Dt, u as Mt } from "./useResponsive-DfdjqQps.js";
4
- import { u as Rt, a as Ge } from "./useNestedProp-BOk-tPdu.js";
5
- import { u as zt, B as Nt } from "./BaseScanner-BgWxam9d.js";
6
- import { u as Bt } from "./usePrinter-w23K-ezx.js";
7
- import { u as Lt } from "./useUserOptionState-BIvW1Kz7.js";
8
- import { u as Vt } from "./useChartAccessibility-9icAAmYg.js";
9
- import { u as Ut } from "./useAutoSizeLabelsInsideViewbox-BVJkib7z.js";
10
- import Yt from "./img-DjWwQXVS.js";
11
- import Et from "./Title-DG2nloSB.js";
12
- import Xt from "./Legend-BpoFJ8fc.js";
13
- import { t as Gt } from "./themes-Dw-dDudK.js";
14
- import { _ as Ht } from "./_plugin-vue_export-helper-CHgC5LLL.js";
15
- const Wt = ["id"], jt = ["id"], qt = ["xmlns", "viewBox"], Jt = ["width", "height"], Kt = ["cx", "cy", "r", "stroke", "stroke-width", "stroke-dasharray", "stroke-dashoffset"], Qt = ["cx", "cy", "r", "stroke", "stroke-width", "stroke-dasharray", "stroke-dashoffset"], Zt = ["id"], ea = ["stdDeviation"], ta = ["filter"], aa = ["cx", "cy", "r", "stroke-width", "stroke-dasharray", "stroke-dashoffset"], la = ["cx", "cy", "r", "stroke-width", "stroke-dasharray", "stroke-dashoffset", "onMouseenter", "onMouseleave", "onClick"], oa = { key: 2 }, na = ["onMouseenter", "onMouseleave", "onClick"], sa = ["x", "y", "font-size", "fill", "font-weight"], ua = {
1
+ import { defineAsyncComponent as _, computed as i, ref as r, toRefs as Ot, watch as E, shallowRef as Ve, onMounted as St, onBeforeUnmount as _t, createElementBlock as c, openBlock as u, unref as s, normalizeStyle as D, normalizeClass as j, createBlock as A, createCommentVNode as p, createElementVNode as I, createVNode as ie, createSlots as Ue, withCtx as h, renderSlot as g, normalizeProps as R, guardReactiveProps as z, Fragment as Y, renderList as X, toDisplayString as L, Teleport as At, resolveDynamicComponent as It, mergeProps as Pt, createTextVNode as Ee, nextTick as Ye } from "vue";
2
+ import { c as Ft, t as Dt, b as Mt, p as Xe, e as Rt, o as Ge, f as ce, h as zt, d as B, X as Lt, a as ve, z as He, x as Bt, y as Nt, A as Vt } from "./lib-GIYcnm0E.js";
3
+ import { t as Ut, u as Et } from "./useResponsive-DfdjqQps.js";
4
+ import { u as Yt, a as We } from "./useNestedProp-mxyyqd0B.js";
5
+ import { u as Xt, B as Gt } from "./BaseScanner-BgWxam9d.js";
6
+ import { u as Ht } from "./usePrinter-DYRFiw7X.js";
7
+ import { u as Wt } from "./useSvgExport-B7-Vrjtu.js";
8
+ import { u as jt } from "./useUserOptionState-BIvW1Kz7.js";
9
+ import { u as qt } from "./useChartAccessibility-9icAAmYg.js";
10
+ import { u as Jt } from "./useAutoSizeLabelsInsideViewbox-Csv3pVmh.js";
11
+ import Kt from "./img-6wPuVVtk.js";
12
+ import Qt from "./Title-D17CJXko.js";
13
+ import Zt from "./Legend-DsogCeTb.js";
14
+ import { t as ea } from "./themes-Dw-dDudK.js";
15
+ import { _ as ta } from "./_plugin-vue_export-helper-CHgC5LLL.js";
16
+ const aa = ["id"], la = ["id"], oa = ["xmlns", "viewBox"], na = ["width", "height"], sa = ["cx", "cy", "r", "stroke", "stroke-width", "stroke-dasharray", "stroke-dashoffset"], ua = ["cx", "cy", "r", "stroke", "stroke-width", "stroke-dasharray", "stroke-dashoffset"], ra = ["id"], ia = ["stdDeviation"], ca = ["filter"], va = ["cx", "cy", "r", "stroke-width", "stroke-dasharray", "stroke-dashoffset"], da = ["cx", "cy", "r", "stroke-width", "stroke-dasharray", "stroke-dashoffset", "onMouseenter", "onMouseleave", "onClick"], ha = { key: 2 }, ga = ["onMouseenter", "onMouseleave", "onClick"], pa = ["x", "y", "font-size", "fill", "font-weight"], fa = {
16
17
  key: 4,
17
18
  class: "vue-data-ui-watermark"
18
- }, ra = ["id"], ia = ["onClick"], ca = ["innerHTML"], va = {
19
+ }, ma = ["id"], ya = ["onClick"], ba = ["innerHTML"], ka = {
19
20
  __name: "vue-ui-onion",
20
21
  props: {
21
22
  config: {
@@ -32,14 +33,14 @@ const Wt = ["id"], jt = ["id"], qt = ["xmlns", "viewBox"], Jt = ["width", "heigh
32
33
  }
33
34
  },
34
35
  emits: ["selectLegend"],
35
- setup(He, { expose: We, emit: je }) {
36
- const qe = A(() => import("./Tooltip-BOXz8skU.js")), Je = A(() => import("./BaseIcon-Bz-1GQhu.js")), Ke = A(() => import("./vue-ui-accordion-CeMTgpl0.js")), Qe = A(() => import("./DataTable-BvjacRbw.js")), Ze = A(() => import("./UserOptions-DsTgvAok.js")), et = A(() => import("./PenAndPaper-CR8q353D.js")), tt = A(() => import("./PackageVersion-Cwrh45ON.js")), at = A(() => import("./BaseDraggableDialog-CHhZIht2.js")), { vue_ui_onion: lt } = Rt(), C = He, ve = v(() => !!C.dataset && C.dataset.length), y = r(xt()), ot = r(null), de = r(0), j = r(!1), q = r(""), b = r([]), $ = r(null), he = r(null), pe = r(null), fe = r(null), ge = r(null), me = r(0), ye = r(0), be = r(0), x = r(!1), ke = r(!1), B = r(null), e = r(Z()), { loading: k, FINAL_DATASET: we, manualLoading: J } = zt({
37
- ...yt(C),
36
+ setup(je, { expose: qe, emit: Je }) {
37
+ const Ke = _(() => import("./Tooltip-CtVdvbZi.js")), Qe = _(() => import("./BaseIcon-CtqN7W_g.js")), Ze = _(() => import("./vue-ui-accordion-Dch9YrCi.js")), et = _(() => import("./DataTable-BeI6gYJX.js")), tt = _(() => import("./UserOptions-B3vCIe-u.js")), at = _(() => import("./PenAndPaper-BxbYiPy4.js")), lt = _(() => import("./PackageVersion-C9oklnuy.js")), ot = _(() => import("./BaseDraggableDialog-q3pgSDTz.js")), { vue_ui_onion: nt } = Yt(), C = je, de = i(() => !!C.dataset && C.dataset.length), y = r(Ft()), st = r(null), he = r(0), q = r(!1), J = r(""), b = r([]), $ = r(null), ge = r(null), pe = r(null), fe = r(null), me = r(null), ye = r(0), be = r(0), ke = r(0), x = r(!1), we = r(!1), N = r(null), e = r(Z()), { loading: k, FINAL_DATASET: Ce, manualLoading: K } = Xt({
38
+ ...Ot(C),
38
39
  FINAL_CONFIG: e,
39
40
  prepareConfig: Z,
40
41
  callback: () => {
41
42
  Promise.resolve().then(async () => {
42
- await Ue(), Ie();
43
+ await Ye(), Pe();
43
44
  });
44
45
  },
45
46
  skeletonDataset: [
@@ -48,7 +49,7 @@ const Wt = ["id"], jt = ["id"], qt = ["xmlns", "viewBox"], Jt = ["width", "heigh
48
49
  { name: "_", percentage: 50, value: 1, color: "#ADADAD" },
49
50
  { name: "_", percentage: 50, value: 1, color: "#969696" }
50
51
  ],
51
- skeletonConfig: Tt({
52
+ skeletonConfig: Dt({
52
53
  defaultConfig: e.value,
53
54
  userConfig: {
54
55
  userOptions: { show: !1 },
@@ -69,33 +70,33 @@ const Wt = ["id"], jt = ["id"], qt = ["xmlns", "viewBox"], Jt = ["width", "heigh
69
70
  }
70
71
  }
71
72
  })
72
- }), { userOptionsVisible: K, setUserOptionsVisibility: Ce, keepUserOptionState: $e } = Lt({ config: e.value }), { svgRef: Q } = Vt({ config: e.value.style.chart.title });
73
+ }), { userOptionsVisible: Q, setUserOptionsVisibility: $e, keepUserOptionState: xe } = jt({ config: e.value }), { svgRef: G } = qt({ config: e.value.style.chart.title });
73
74
  function Z() {
74
- const t = Ge({
75
+ const t = We({
75
76
  userConfig: C.config,
76
- defaultConfig: lt
77
+ defaultConfig: nt
77
78
  });
78
79
  return t.theme ? {
79
- ...Ge({
80
- userConfig: Gt.vue_ui_onion[t.theme] || C.config,
80
+ ...We({
81
+ userConfig: ea.vue_ui_onion[t.theme] || C.config,
81
82
  defaultConfig: t
82
83
  }),
83
- customPalette: Ot[t.theme] || Ye
84
+ customPalette: Mt[t.theme] || Xe
84
85
  } : t;
85
86
  }
86
- U(() => C.config, (t) => {
87
- k.value || (e.value = Z()), K.value = !e.value.userOptions.showOnChartHover, Se(), me.value += 1, ye.value += 1, be.value += 1, m.value.showTable = e.value.table.show, m.value.showTooltip = e.value.style.chart.tooltip.show;
87
+ E(() => C.config, (t) => {
88
+ k.value || (e.value = Z()), Q.value = !e.value.userOptions.showOnChartHover, Ie(), ye.value += 1, be.value += 1, ke.value += 1, f.value.showTable = e.value.table.show, f.value.showTooltip = e.value.style.chart.tooltip.show;
88
89
  }, { deep: !0 });
89
- const { isPrinting: xe, isImaging: Te, generatePdf: Oe, generateImage: _e } = Bt({
90
+ const { isPrinting: Te, isImaging: Oe, generatePdf: Se, generateImage: _e } = Ht({
90
91
  elementId: `vue-ui-onion_${y.value}`,
91
92
  fileName: e.value.style.chart.title.text || "vue-ui-onion",
92
93
  options: e.value.userOptions.print
93
- }), nt = v(() => e.value.userOptions.show && !e.value.style.chart.title.text), st = v(() => _t(e.value.customPalette)), m = r({
94
+ }), ut = i(() => e.value.userOptions.show && !e.value.style.chart.title.text), rt = i(() => Rt(e.value.customPalette)), f = r({
94
95
  showTable: e.value.table.show,
95
96
  showTooltip: e.value.style.chart.tooltip.show
96
97
  });
97
- U(e, () => {
98
- m.value = {
98
+ E(e, () => {
99
+ f.value = {
99
100
  showTable: e.value.table.show,
100
101
  showTooltip: e.value.style.chart.tooltip.show
101
102
  };
@@ -110,35 +111,35 @@ const Wt = ["id"], jt = ["id"], qt = ["xmlns", "viewBox"], Jt = ["width", "heigh
110
111
  bottom: 64
111
112
  },
112
113
  minRadius: 64
113
- }), O = Be(null), R = Be(null);
114
- bt(() => {
115
- ke.value = !0, Se();
114
+ }), O = Ve(null), M = Ve(null);
115
+ St(() => {
116
+ we.value = !0, Ie();
116
117
  });
117
- const ut = v({
118
+ const it = i({
118
119
  get: () => e.value.style.chart.layout.labels.fontSize,
119
120
  set: (t) => t
120
- }), { autoSizeLabels: Ae } = Ut({
121
- svgRef: Q,
121
+ }), { autoSizeLabels: Ae } = Jt({
122
+ svgRef: G,
122
123
  fontSize: e.value.style.chart.layout.labels.fontSize,
123
124
  minFontSize: e.value.style.chart.layout.labels.minFontSize,
124
- sizeRef: ut,
125
+ sizeRef: it,
125
126
  labelClass: ".vue-ui-onion-label"
126
- }), rt = v(() => e.value.debug);
127
+ }), ct = i(() => e.value.debug);
127
128
  let ee = null;
128
- function Se() {
129
- if (Ee(C.dataset) && (ie({
129
+ function Ie() {
130
+ if (Ge(C.dataset) && (ce({
130
131
  componentName: "VueUiOnion",
131
132
  type: "dataset",
132
- debug: rt.value
133
- }), J.value = !0), Ee(C.dataset) || (J.value = e.value.loading), e.value.responsive) {
134
- const o = Dt(() => {
133
+ debug: ct.value
134
+ }), K.value = !0), Ge(C.dataset) || (K.value = e.value.loading), e.value.responsive) {
135
+ const o = Ut(() => {
135
136
  ee && clearTimeout(ee), x.value = !0;
136
- let { width: a, height: l } = Mt({
137
+ let { width: a, height: l } = Et({
137
138
  chart: $.value,
138
- title: e.value.style.chart.title.text ? he.value : null,
139
+ title: e.value.style.chart.title.text ? ge.value : null,
139
140
  legend: e.value.style.chart.legend.show ? pe.value : null,
140
141
  source: fe.value,
141
- noTitle: ge.value
142
+ noTitle: me.value
142
143
  });
143
144
  l -= 12, requestAnimationFrame(async () => {
144
145
  n.value.width = a, n.value.height = l, n.value.padding.top = Math.max(a, l) * 0.125, n.value.padding.right = Math.max(a, l) * 0.125, n.value.padding.bottom = Math.max(a, l) * 0.125, n.value.padding.left = Math.max(a, l) * 0.125, n.value.minRadius = Math.min(a, l) * 0.125, ee = setTimeout(() => {
@@ -146,14 +147,14 @@ const Wt = ["id"], jt = ["id"], qt = ["xmlns", "viewBox"], Jt = ["width", "heigh
146
147
  }, 0);
147
148
  });
148
149
  });
149
- O.value && (R.value && O.value.unobserve(R.value), O.value.disconnect()), O.value = new ResizeObserver(o), R.value = $.value.parentNode, O.value.observe(R.value);
150
+ O.value && (M.value && O.value.unobserve(M.value), O.value.disconnect()), O.value = new ResizeObserver(o), M.value = $.value.parentNode, O.value.observe(M.value);
150
151
  }
151
152
  requestAnimationFrame(Ae);
152
153
  }
153
- kt(() => {
154
- O.value && (R.value && O.value.unobserve(R.value), O.value.disconnect());
154
+ _t(() => {
155
+ O.value && (M.value && O.value.unobserve(M.value), O.value.disconnect());
155
156
  });
156
- const c = v(() => ({
157
+ const d = i(() => ({
157
158
  top: n.value.padding.top,
158
159
  left: n.value.padding.left,
159
160
  right: n.value.width - n.value.padding.right,
@@ -164,107 +165,114 @@ const Wt = ["id"], jt = ["id"], qt = ["xmlns", "viewBox"], Jt = ["width", "heigh
164
165
  height: n.value.height - n.value.padding.bottom - n.value.padding.top,
165
166
  minRadius: n.value.minRadius,
166
167
  maxRadius: Math.min(n.value.width, n.value.height) - n.value.padding.top * 2
167
- })), f = v(() => (we.value.forEach((t, o) => {
168
- [null, void 0].includes(t.name) && ie({
168
+ })), m = i(() => (Ce.value.forEach((t, o) => {
169
+ [null, void 0].includes(t.name) && ce({
169
170
  componentName: "VueUiOnion",
170
171
  type: "datasetSerieAttribute",
171
172
  property: "name",
172
173
  index: o
173
- }), [void 0].includes(t.percentage) && ie({
174
+ }), [void 0].includes(t.percentage) && ce({
174
175
  componentName: "VueUiOnion",
175
176
  type: "datasetSerieAttribute",
176
177
  property: "percentage",
177
178
  index: o
178
179
  });
179
- }), we.value.map((t, o) => {
180
+ }), Ce.value.map((t, o) => {
180
181
  const a = `onion_serie_${o}_${y.value}`;
181
182
  return {
182
183
  ...t,
183
184
  percentage: t.percentage || 0,
184
185
  targetPercentage: t.percentage || 0,
185
- color: At(t.color) || st.value[o] || Ye[o],
186
+ color: zt(t.color) || rt.value[o] || Xe[o],
186
187
  id: a,
187
188
  shape: "circle",
188
189
  opacity: b.value.includes(a) ? 0.5 : 1,
189
190
  absoluteIndex: o,
190
- segregate: () => Pe(a),
191
+ segregate: () => Fe(a),
191
192
  isSegregated: b.value.includes(a)
192
193
  };
193
- }))), L = r(f.value), it = v(() => e.value.useStartAnimation), ct = r(null), vt = v(() => Math.max(...f.value.map((t) => t.percentage))), te = r(!1);
194
- U(() => f.value, Ie, { immediate: !0, deep: !0 }), U(() => C.dataset, (t) => {
195
- Array.isArray(t) && t.length > 0 && (J.value = !1);
194
+ }))), te = i(() => m.value.map((t, o) => ({
195
+ ...t,
196
+ display: `${t.name ? t.name + ": " : ""}${B({
197
+ v: t.percentage ?? 0,
198
+ s: "%",
199
+ r: e.value.style.chart.legend.roundingPercentage
200
+ })}`
201
+ }))), V = r(m.value), vt = i(() => e.value.useStartAnimation), dt = r(null), ht = i(() => Math.max(...m.value.map((t) => t.percentage))), ae = r(!1);
202
+ E(() => m.value, Pe, { immediate: !0, deep: !0 }), E(() => C.dataset, (t) => {
203
+ Array.isArray(t) && t.length > 0 && (K.value = !1);
196
204
  }, { deep: !0 });
197
- function Ie() {
198
- if (it.value && !te.value && !k.value) {
205
+ function Pe() {
206
+ if (vt.value && !ae.value && !k.value) {
199
207
  let o = function() {
200
- t >= vt.value ? (cancelAnimationFrame(ct.value), L.value = f.value, te.value = !0) : (L.value = f.value.map((a) => ({
208
+ t >= ht.value ? (cancelAnimationFrame(dt.value), V.value = m.value, ae.value = !0) : (V.value = m.value.map((a) => ({
201
209
  ...a,
202
210
  percentage: t < a.targetPercentage ? t : a.targetPercentage
203
- })), t += 1, requestAnimationFrame(o), te.value = !0);
211
+ })), t += 1, requestAnimationFrame(o), ae.value = !0);
204
212
  };
205
- L.value = f.value.map((a) => ({
213
+ V.value = m.value.map((a) => ({
206
214
  ...a,
207
215
  percentage: 0
208
216
  }));
209
217
  let t = 0;
210
218
  o();
211
219
  } else
212
- L.value = f.value;
220
+ V.value = m.value;
213
221
  }
214
- const dt = v(() => ({
222
+ const gt = i(() => ({
215
223
  cy: "onion-div-legend",
216
224
  backgroundColor: e.value.style.chart.legend.backgroundColor,
217
225
  color: e.value.style.chart.legend.color,
218
226
  fontSize: e.value.style.chart.legend.fontSize,
219
227
  paddingBottom: 12,
220
228
  fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
221
- })), ht = v(() => f.value.filter((t) => !b.value.includes(t.id)).length), P = v(() => {
222
- const t = Math.min(c.value.width, c.value.height) / 2 / f.value.length;
229
+ })), pt = i(() => m.value.filter((t) => !b.value.includes(t.id)).length), P = i(() => {
230
+ const t = Math.min(d.value.width, d.value.height) / 2 / m.value.length;
223
231
  return {
224
232
  gutter: (t > e.value.style.chart.layout.maxThickness ? e.value.style.chart.layout.maxThickness : t) * e.value.style.chart.layout.gutter.width,
225
233
  track: (t > e.value.style.chart.layout.maxThickness ? e.value.style.chart.layout.maxThickness : t) * e.value.style.chart.layout.track.width
226
234
  };
227
- }), T = v(() => L.value.filter((t) => !b.value.includes(t.id)).map((t, o) => {
228
- const a = (c.value.maxRadius - P.value.track) / ht.value / 2 * (1 + o), l = c.value.centerY - a;
235
+ }), T = i(() => V.value.filter((t) => !b.value.includes(t.id)).map((t, o) => {
236
+ const a = (d.value.maxRadius - P.value.track) / pt.value / 2 * (1 + o), l = d.value.centerY - a;
229
237
  return {
230
238
  percentage: t.percentage || 0,
231
239
  ...t,
232
240
  labelY: l,
233
241
  radius: a,
234
- path: pt(a, t.percentage || 0)
242
+ path: ft(a, t.percentage || 0)
235
243
  };
236
244
  }));
237
- function pt(t, o) {
238
- const a = 2 * Math.PI * t, l = a * 0.75, h = `${l} ${a}`, w = l * (1 - o / 100);
245
+ function ft(t, o) {
246
+ const a = 2 * Math.PI * t, l = a * 0.75, v = `${l} ${a}`, w = l * (1 - o / 100);
239
247
  return {
240
248
  bgDashArray: `${l} ${a}`,
241
249
  bgDashOffset: 0,
242
- dashArray: h,
250
+ dashArray: v,
243
251
  dashOffset: w,
244
252
  fullOffset: 0,
245
253
  active: `
246
- M ${c.value.centerX},${c.value.centerY - t}
254
+ M ${d.value.centerX},${d.value.centerY - t}
247
255
  A ${t},${t} 0 1 1
248
- ${c.value.centerX + t * Math.cos(Math.PI * 3 / 4)},${c.value.centerY + t * Math.sin(Math.PI * 3 / 4)}
256
+ ${d.value.centerX + t * Math.cos(Math.PI * 3 / 4)},${d.value.centerY + t * Math.sin(Math.PI * 3 / 4)}
249
257
  `.trim()
250
258
  };
251
259
  }
252
- const ft = je;
253
- function Pe(t) {
254
- b.value.includes(t) ? b.value = b.value.filter((o) => o !== t) : b.value.push(t), ft("selectLegend", T.value);
260
+ const mt = Je;
261
+ function Fe(t) {
262
+ b.value.includes(t) ? b.value = b.value.filter((o) => o !== t) : b.value.push(t), mt("selectLegend", T.value);
255
263
  }
256
- function gt() {
264
+ function yt() {
257
265
  return T.value;
258
266
  }
259
- const ae = v(() => {
267
+ const le = i(() => {
260
268
  const t = [e.value.table.translations.serie, e.value.table.translations.percentage, e.value.table.translations.value], o = T.value.map((a) => [
261
269
  a.name,
262
270
  a.percentage,
263
271
  a.value
264
272
  ]);
265
273
  return { head: t, body: o };
266
- }), G = v(() => {
267
- const t = ae.value.head, o = T.value.map((l) => [
274
+ }), H = i(() => {
275
+ const t = le.value.head, o = T.value.map((l) => [
268
276
  `<span style="color:${l.color}">⬤</span> ${l.name}`,
269
277
  `${Number(l.percentage ?? 0).toFixed(e.value.table.td.roundingPercentage).toLocaleString()}%`,
270
278
  `${l.prefix || ""}${[null, void 0, NaN, "NaN"].includes(l.value) ? "-" : l.value.toFixed(e.value.table.td.roundingValue).toLocaleString()}${l.suffix || ""}`
@@ -283,76 +291,76 @@ const Wt = ["id"], jt = ["id"], qt = ["xmlns", "viewBox"], Jt = ["width", "heigh
283
291
  };
284
292
  return { head: t, body: o, config: a, colNames: t };
285
293
  });
286
- function le(t = null) {
287
- Ue(() => {
288
- const o = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [""]], a = ae.value.head, l = ae.value.body, h = o.concat([a]).concat(l), w = It(h);
289
- t ? t(w) : Pt({ csvContent: w, title: e.value.style.chart.title.text || "vue-ui-onion" });
294
+ function oe(t = null) {
295
+ Ye(() => {
296
+ const o = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [""]], a = le.value.head, l = le.value.body, v = o.concat([a]).concat(l), w = Bt(v);
297
+ t ? t(w) : Nt({ csvContent: w, title: e.value.style.chart.title.text || "vue-ui-onion" });
290
298
  });
291
299
  }
292
- const _ = r(void 0), F = r(!1);
293
- function Fe(t) {
294
- F.value = t, de.value += 1;
300
+ const S = r(void 0), F = r(!1);
301
+ function De(t) {
302
+ F.value = t, he.value += 1;
295
303
  }
296
- function De({ datapoint: t }) {
304
+ function Me({ datapoint: t }) {
297
305
  e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: t, seriesIndex: t.absoluteIndex });
298
306
  }
299
- function Me({ datapoint: t }) {
300
- _.value = void 0, j.value = !1, e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: t, seriesIndex: t.absoluteIndex });
307
+ function Re({ datapoint: t }) {
308
+ S.value = void 0, q.value = !1, e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: t, seriesIndex: t.absoluteIndex });
301
309
  }
302
- const oe = r(null);
303
- function Re({ datapoint: t, seriesIndex: o, show: a = !0 }) {
310
+ const ne = r(null);
311
+ function ze({ datapoint: t, seriesIndex: o, show: a = !0 }) {
304
312
  e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: t, seriesIndex: t.absoluteIndex });
305
313
  const l = t.absoluteIndex;
306
- _.value = o, oe.value = {
314
+ S.value = o, ne.value = {
307
315
  datapoint: t,
308
316
  seriesIndex: l,
309
- series: f.value,
317
+ series: m.value,
310
318
  config: e.value
311
- }, j.value = a;
312
- let h = "";
319
+ }, q.value = a;
320
+ let v = "";
313
321
  const w = e.value.style.chart.tooltip.customFormat;
314
- if (Xe(w) && Ft(() => w({
322
+ if (He(w) && Vt(() => w({
315
323
  seriesIndex: l,
316
324
  datapoint: t,
317
- series: f.value,
325
+ series: m.value,
318
326
  config: e.value
319
327
  })))
320
- q.value = w({
328
+ J.value = w({
321
329
  seriesIndex: l,
322
330
  datapoint: t,
323
- series: f.value,
331
+ series: m.value,
324
332
  config: e.value
325
333
  });
326
334
  else {
327
- const se = e.value.style.chart.tooltip.showPercentage, ue = e.value.style.chart.tooltip.showValue;
328
- h += `<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>`, h += `<div style="width:100%;text-align:left;"><b>${se ? X({ p: "", v: t.percentage, s: "%", r: e.value.style.chart.tooltip.roundingPercentage }) : ""}</b> ${se && ue ? "(" : ""}${ue ? ce(
335
+ const ue = e.value.style.chart.tooltip.showPercentage, re = e.value.style.chart.tooltip.showValue;
336
+ v += `<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>`, v += `<div style="width:100%;text-align:left;"><b>${ue ? B({ p: "", v: t.percentage, s: "%", r: e.value.style.chart.tooltip.roundingPercentage }) : ""}</b> ${ue && re ? "(" : ""}${re ? ve(
329
337
  e.value.style.chart.layout.labels.value.formatter,
330
338
  t.value,
331
- X({
339
+ B({
332
340
  p: t.prefix || "",
333
341
  v: t.value,
334
342
  s: t.suffix || "",
335
343
  r: e.value.style.chart.tooltip.roundingValue
336
344
  }),
337
345
  { datapoint: t, seriesIndex: o }
338
- ) : ""}${se && ue ? ")" : ""}</div>`, q.value = `<div>${h}</div>`;
346
+ ) : ""}${ue && re ? ")" : ""}</div>`, J.value = `<div>${v}</div>`;
339
347
  }
340
348
  }
341
- function ze() {
342
- m.value.showTable = !m.value.showTable;
349
+ function Le() {
350
+ f.value.showTable = !f.value.showTable;
343
351
  }
344
- function Ne() {
345
- m.value.showTooltip = !m.value.showTooltip;
352
+ function Be() {
353
+ f.value.showTooltip = !f.value.showTooltip;
346
354
  }
347
- const H = r(!1);
348
- function ne() {
349
- H.value = !H.value;
355
+ const W = r(!1);
356
+ function se() {
357
+ W.value = !W.value;
350
358
  }
351
- async function mt({ scale: t = 2 } = {}) {
359
+ async function bt({ scale: t = 2 } = {}) {
352
360
  if (!$.value) return;
353
- const { width: o, height: a } = $.value.getBoundingClientRect(), l = o / a, { imageUri: h, base64: w } = await Yt({ domElement: $.value, base64: !0, img: !0, scale: t });
361
+ const { width: o, height: a } = $.value.getBoundingClientRect(), l = o / a, { imageUri: v, base64: w } = await Kt({ domElement: $.value, base64: !0, img: !0, scale: t });
354
362
  return {
355
- imageUri: h,
363
+ imageUri: v,
356
364
  base64: w,
357
365
  title: e.value.style.chart.title.text,
358
366
  width: o,
@@ -360,10 +368,10 @@ const Wt = ["id"], jt = ["id"], qt = ["xmlns", "viewBox"], Jt = ["width", "heigh
360
368
  aspectRatio: l
361
369
  };
362
370
  }
363
- const V = v(() => {
364
- const t = e.value.table.useDialog && !e.value.table.show, o = m.value.showTable;
371
+ const U = i(() => {
372
+ const t = e.value.table.useDialog && !e.value.table.show, o = f.value.showTable;
365
373
  return {
366
- component: t ? at : Ke,
374
+ component: t ? ot : Ze,
367
375
  title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? `: ${e.value.style.chart.title.subtitle.text}` : ""}`,
368
376
  props: t ? {
369
377
  backgroundColor: e.value.table.th.backgroundColor,
@@ -390,50 +398,69 @@ const Wt = ["id"], jt = ["id"], qt = ["xmlns", "viewBox"], Jt = ["width", "heigh
390
398
  }
391
399
  };
392
400
  });
393
- return U(() => m.value.showTable, (t) => {
394
- e.value.table.show || (t && e.value.table.useDialog && B.value ? B.value.open() : "close" in B.value && B.value.close());
395
- }), We({
396
- getData: gt,
397
- getImage: mt,
398
- generatePdf: Oe,
399
- generateCsv: le,
401
+ E(() => f.value.showTable, (t) => {
402
+ e.value.table.show || (t && e.value.table.useDialog && N.value ? N.value.open() : "close" in N.value && N.value.close());
403
+ });
404
+ const kt = i(() => te.value.map((t) => ({
405
+ ...t,
406
+ name: t.display
407
+ }))), wt = i(() => e.value.style.chart.backgroundColor), Ct = i(() => e.value.style.chart.legend), $t = i(() => e.value.style.chart.title), { exportSvg: xt, getSvg: Tt } = Wt({
408
+ svg: G,
409
+ title: $t,
410
+ legend: Ct,
411
+ legendItems: kt,
412
+ backgroundColor: wt
413
+ });
414
+ async function Ne({ isCb: t }) {
415
+ if (t) {
416
+ const { blob: o, url: a, text: l, dataUrl: v } = await Tt();
417
+ e.value.userOptions.callbacks.svg({ blob: o, url: a, text: l, dataUrl: v });
418
+ } else
419
+ xt();
420
+ }
421
+ return qe({
422
+ getData: yt,
423
+ getImage: bt,
424
+ generatePdf: Se,
425
+ generateCsv: oe,
400
426
  generateImage: _e,
401
- toggleTable: ze,
402
- toggleTooltip: Ne,
403
- toggleAnnotator: ne,
404
- toggleFullscreen: Fe
405
- }), (t, o) => (u(), i("div", {
406
- class: W(`vue-ui-onion ${F.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
427
+ generateSvg: Ne,
428
+ toggleTable: Le,
429
+ toggleTooltip: Be,
430
+ toggleAnnotator: se,
431
+ toggleFullscreen: De
432
+ }), (t, o) => (u(), c("div", {
433
+ class: j(`vue-data-ui-component vue-ui-onion ${F.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
407
434
  ref_key: "onionChart",
408
435
  ref: $,
409
436
  id: `vue-ui-onion_${y.value}`,
410
437
  style: D(`font-family:${e.value.style.fontFamily};width:100%; ${e.value.responsive ? "height: 100%;" : ""} text-align:center;background:${e.value.style.chart.backgroundColor}`),
411
- onMouseenter: o[4] || (o[4] = () => s(Ce)(!0)),
412
- onMouseleave: o[5] || (o[5] = () => s(Ce)(!1))
438
+ onMouseenter: o[4] || (o[4] = () => s($e)(!0)),
439
+ onMouseleave: o[5] || (o[5] = () => s($e)(!1))
413
440
  }, [
414
- e.value.userOptions.buttons.annotator ? (u(), S(s(et), {
441
+ e.value.userOptions.buttons.annotator ? (u(), A(s(at), {
415
442
  key: 0,
416
- svgRef: s(Q),
443
+ svgRef: s(G),
417
444
  backgroundColor: e.value.style.chart.backgroundColor,
418
445
  color: e.value.style.chart.color,
419
- active: H.value,
420
- onClose: ne
421
- }, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : g("", !0),
422
- nt.value ? (u(), i("div", {
446
+ active: W.value,
447
+ onClose: se
448
+ }, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : p("", !0),
449
+ ut.value ? (u(), c("div", {
423
450
  key: 1,
424
451
  ref_key: "noTitle",
425
- ref: ge,
452
+ ref: me,
426
453
  class: "vue-data-ui-no-title-space",
427
454
  style: "height:36px; width: 100%;background:transparent"
428
- }, null, 512)) : g("", !0),
429
- e.value.style.chart.title.text ? (u(), i("div", {
455
+ }, null, 512)) : p("", !0),
456
+ e.value.style.chart.title.text ? (u(), c("div", {
430
457
  key: 2,
431
458
  ref_key: "chartTitle",
432
- ref: he,
459
+ ref: ge,
433
460
  style: "width:100%;background:transparent"
434
461
  }, [
435
- (u(), S(Et, {
436
- key: `title_${me.value}`,
462
+ (u(), A(Qt, {
463
+ key: `title_${ye.value}`,
437
464
  config: {
438
465
  title: {
439
466
  cy: "onion-div-title",
@@ -445,113 +472,115 @@ const Wt = ["id"], jt = ["id"], qt = ["xmlns", "viewBox"], Jt = ["width", "heigh
445
472
  }
446
473
  }
447
474
  }, null, 8, ["config"]))
448
- ], 512)) : g("", !0),
475
+ ], 512)) : p("", !0),
449
476
  I("div", {
450
477
  id: `legend-top-${y.value}`
451
- }, null, 8, jt),
452
- e.value.userOptions.show && ve.value && (s($e) || s(K)) ? (u(), S(s(Ze), {
478
+ }, null, 8, la),
479
+ e.value.userOptions.show && de.value && (s(xe) || s(Q)) ? (u(), A(s(tt), {
453
480
  ref_key: "details",
454
- ref: ot,
455
- key: `user_options${de.value}`,
481
+ ref: st,
482
+ key: `user_options${he.value}`,
456
483
  backgroundColor: e.value.style.chart.backgroundColor,
457
484
  color: e.value.style.chart.color,
458
- isImaging: s(Te),
459
- isPrinting: s(xe),
485
+ isImaging: s(Oe),
486
+ isPrinting: s(Te),
460
487
  uid: y.value,
461
488
  hasTooltip: e.value.userOptions.buttons.tooltip && e.value.style.chart.tooltip.show,
462
489
  hasPdf: e.value.userOptions.buttons.pdf,
463
490
  hasImg: e.value.userOptions.buttons.img,
491
+ hasSvg: e.value.userOptions.buttons.svg,
464
492
  hasXls: e.value.userOptions.buttons.csv,
465
493
  hasTable: e.value.userOptions.buttons.table,
466
494
  hasFullscreen: e.value.userOptions.buttons.fullscreen,
467
495
  isFullscreen: F.value,
468
- isTooltip: m.value.showTooltip,
496
+ isTooltip: f.value.showTooltip,
469
497
  titles: { ...e.value.userOptions.buttonTitles },
470
498
  chartElement: $.value,
471
499
  position: e.value.userOptions.position,
472
500
  hasAnnotator: e.value.userOptions.buttons.annotator,
473
- isAnnotation: H.value,
501
+ isAnnotation: W.value,
474
502
  callbacks: e.value.userOptions.callbacks,
475
503
  printScale: e.value.userOptions.print.scale,
476
504
  tableDialog: e.value.table.useDialog,
477
- onToggleFullscreen: Fe,
478
- onGeneratePdf: s(Oe),
479
- onGenerateCsv: le,
505
+ onToggleFullscreen: De,
506
+ onGeneratePdf: s(Se),
507
+ onGenerateCsv: oe,
480
508
  onGenerateImage: s(_e),
481
- onToggleTable: ze,
482
- onToggleTooltip: Ne,
483
- onToggleAnnotator: ne,
509
+ onGenerateSvg: Ne,
510
+ onToggleTable: Le,
511
+ onToggleTooltip: Be,
512
+ onToggleAnnotator: se,
484
513
  style: D({
485
- visibility: s($e) ? s(K) ? "visible" : "hidden" : "visible"
514
+ visibility: s(xe) ? s(Q) ? "visible" : "hidden" : "visible"
486
515
  })
487
- }, Le({ _: 2 }, [
516
+ }, Ue({ _: 2 }, [
488
517
  t.$slots.menuIcon ? {
489
518
  name: "menuIcon",
490
- fn: d(({ isOpen: a, color: l }) => [
491
- p(t.$slots, "menuIcon", z(N({ isOpen: a, color: l })), void 0, !0)
519
+ fn: h(({ isOpen: a, color: l }) => [
520
+ g(t.$slots, "menuIcon", R(z({ isOpen: a, color: l })), void 0, !0)
492
521
  ]),
493
522
  key: "0"
494
523
  } : void 0,
495
524
  t.$slots.optionTooltip ? {
496
525
  name: "optionTooltip",
497
- fn: d(() => [
498
- p(t.$slots, "optionTooltip", {}, void 0, !0)
526
+ fn: h(() => [
527
+ g(t.$slots, "optionTooltip", {}, void 0, !0)
499
528
  ]),
500
529
  key: "1"
501
530
  } : void 0,
502
531
  t.$slots.optionPdf ? {
503
532
  name: "optionPdf",
504
- fn: d(() => [
505
- p(t.$slots, "optionPdf", {}, void 0, !0)
533
+ fn: h(() => [
534
+ g(t.$slots, "optionPdf", {}, void 0, !0)
506
535
  ]),
507
536
  key: "2"
508
537
  } : void 0,
509
538
  t.$slots.optionCsv ? {
510
539
  name: "optionCsv",
511
- fn: d(() => [
512
- p(t.$slots, "optionCsv", {}, void 0, !0)
540
+ fn: h(() => [
541
+ g(t.$slots, "optionCsv", {}, void 0, !0)
513
542
  ]),
514
543
  key: "3"
515
544
  } : void 0,
516
545
  t.$slots.optionImg ? {
517
546
  name: "optionImg",
518
- fn: d(() => [
519
- p(t.$slots, "optionImg", {}, void 0, !0)
547
+ fn: h(() => [
548
+ g(t.$slots, "optionImg", {}, void 0, !0)
520
549
  ]),
521
550
  key: "4"
522
551
  } : void 0,
523
552
  t.$slots.optionTable ? {
524
553
  name: "optionTable",
525
- fn: d(() => [
526
- p(t.$slots, "optionTable", {}, void 0, !0)
554
+ fn: h(() => [
555
+ g(t.$slots, "optionTable", {}, void 0, !0)
527
556
  ]),
528
557
  key: "5"
529
558
  } : void 0,
530
559
  t.$slots.optionFullscreen ? {
531
560
  name: "optionFullscreen",
532
- fn: d(({ toggleFullscreen: a, isFullscreen: l }) => [
533
- p(t.$slots, "optionFullscreen", z(N({ toggleFullscreen: a, isFullscreen: l })), void 0, !0)
561
+ fn: h(({ toggleFullscreen: a, isFullscreen: l }) => [
562
+ g(t.$slots, "optionFullscreen", R(z({ toggleFullscreen: a, isFullscreen: l })), void 0, !0)
534
563
  ]),
535
564
  key: "6"
536
565
  } : void 0,
537
566
  t.$slots.optionAnnotator ? {
538
567
  name: "optionAnnotator",
539
- fn: d(({ toggleAnnotator: a, isAnnotator: l }) => [
540
- p(t.$slots, "optionAnnotator", z(N({ toggleAnnotator: a, isAnnotator: l })), void 0, !0)
568
+ fn: h(({ toggleAnnotator: a, isAnnotator: l }) => [
569
+ g(t.$slots, "optionAnnotator", R(z({ toggleAnnotator: a, isAnnotator: l })), void 0, !0)
541
570
  ]),
542
571
  key: "7"
543
572
  } : void 0
544
- ]), 1032, ["backgroundColor", "color", "isImaging", "isPrinting", "uid", "hasTooltip", "hasPdf", "hasImg", "hasXls", "hasTable", "hasFullscreen", "isFullscreen", "isTooltip", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "tableDialog", "onGeneratePdf", "onGenerateImage", "style"])) : g("", !0),
545
- (u(), i("svg", {
573
+ ]), 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),
574
+ (u(), c("svg", {
546
575
  ref_key: "svgRef",
547
- ref: Q,
548
- xmlns: s(St),
549
- class: W({ "vue-data-ui-fullscreen--on": F.value, "vue-data-ui-fulscreen--off": !F.value, resizing: x.value }),
576
+ ref: G,
577
+ xmlns: s(Lt),
578
+ class: j({ "vue-data-ui-fullscreen--on": F.value, "vue-data-ui-fulscreen--off": !F.value, resizing: x.value }),
550
579
  viewBox: `0 0 ${n.value.width <= 0 ? 10 : n.value.width} ${n.value.height <= 0 ? 10 : n.value.height}`,
551
580
  style: D(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.chart.color}`)
552
581
  }, [
553
- re(s(tt)),
554
- t.$slots["chart-background"] ? (u(), i("foreignObject", {
582
+ ie(s(lt)),
583
+ t.$slots["chart-background"] ? (u(), c("foreignObject", {
555
584
  key: 0,
556
585
  x: 0,
557
586
  y: 0,
@@ -561,11 +590,11 @@ const Wt = ["id"], jt = ["id"], qt = ["xmlns", "viewBox"], Jt = ["width", "heigh
561
590
  pointerEvents: "none"
562
591
  }
563
592
  }, [
564
- p(t.$slots, "chart-background", {}, void 0, !0)
565
- ], 8, Jt)) : g("", !0),
566
- (u(!0), i(Y, null, E(T.value, (a, l) => (u(), i("circle", {
567
- cx: c.value.centerX,
568
- cy: c.value.centerY,
593
+ g(t.$slots, "chart-background", {}, void 0, !0)
594
+ ], 8, na)) : p("", !0),
595
+ (u(!0), c(Y, null, X(T.value, (a, l) => (u(), c("circle", {
596
+ cx: d.value.centerX,
597
+ cy: d.value.centerY,
569
598
  r: a.radius <= 0 ? 1e-4 : a.radius,
570
599
  stroke: e.value.style.chart.layout.gutter.color,
571
600
  "stroke-width": P.value.gutter,
@@ -573,24 +602,24 @@ const Wt = ["id"], jt = ["id"], qt = ["xmlns", "viewBox"], Jt = ["width", "heigh
573
602
  "stroke-dasharray": a.path.bgDashArray,
574
603
  "stroke-dashoffset": a.path.fullOffset,
575
604
  "stroke-linecap": "round",
576
- class: W({ "vue-ui-onion-path": !0, "vue-ui-onion-blur": e.value.useBlurOnHover && ![null, void 0].includes(_.value) && _.value !== l }),
605
+ class: j({ "vue-ui-onion-path": !0, "vue-ui-onion-blur": e.value.useBlurOnHover && ![null, void 0].includes(S.value) && S.value !== l }),
577
606
  style: D({
578
607
  transform: "rotate(-90deg)",
579
608
  transformOrigin: "50% 50%",
580
609
  transition: x.value || s(k) ? "none" : "all 0.3s ease-in-out !important",
581
610
  animation: x.value || s(k) ? "none" : "xyAnimation 0.5s ease-in"
582
611
  })
583
- }, null, 14, Kt))), 256)),
584
- (u(!0), i(Y, null, E(T.value, (a, l) => (u(), i("circle", {
585
- cx: c.value.centerX,
586
- cy: c.value.centerY,
612
+ }, null, 14, sa))), 256)),
613
+ (u(!0), c(Y, null, X(T.value, (a, l) => (u(), c("circle", {
614
+ cx: d.value.centerX,
615
+ cy: d.value.centerY,
587
616
  r: a.radius < 0 ? 1e-4 : a.radius,
588
617
  stroke: `${a.color}`,
589
618
  "stroke-width": P.value.track,
590
619
  fill: "none",
591
620
  "stroke-dasharray": a.path.dashArray,
592
621
  "stroke-dashoffset": a.path.dashOffset,
593
- class: W({ "vue-ui-onion-path": !0, "vue-ui-onion-blur": e.value.useBlurOnHover && ![null, void 0].includes(_.value) && _.value !== l }),
622
+ class: j({ "vue-ui-onion-path": !0, "vue-ui-onion-blur": e.value.useBlurOnHover && ![null, void 0].includes(S.value) && S.value !== l }),
594
623
  "stroke-linecap": "round",
595
624
  style: D({
596
625
  transform: "rotate(-90deg)",
@@ -598,7 +627,7 @@ const Wt = ["id"], jt = ["id"], qt = ["xmlns", "viewBox"], Jt = ["width", "heigh
598
627
  transition: x.value || s(k) ? "none" : "all 0.3s ease-in-out !important",
599
628
  animation: x.value || s(k) ? "none" : "xyAnimation 0.5s ease-in"
600
629
  })
601
- }, null, 14, Qt))), 256)),
630
+ }, null, 14, ua))), 256)),
602
631
  I("defs", null, [
603
632
  I("filter", {
604
633
  id: `blur_${y.value}`,
@@ -610,16 +639,16 @@ const Wt = ["id"], jt = ["id"], qt = ["xmlns", "viewBox"], Jt = ["width", "heigh
610
639
  I("feGaussianBlur", {
611
640
  in: "SourceGraphic",
612
641
  stdDeviation: 100 / e.value.style.chart.gradientIntensity
613
- }, null, 8, ea)
614
- ], 8, Zt)
642
+ }, null, 8, ia)
643
+ ], 8, ra)
615
644
  ]),
616
- e.value.style.chart.useGradient ? (u(), i("g", {
645
+ e.value.style.chart.useGradient ? (u(), c("g", {
617
646
  key: 1,
618
647
  filter: `url(#blur_${y.value})`
619
648
  }, [
620
- (u(!0), i(Y, null, E(T.value, (a, l) => (u(), i("circle", {
621
- cx: c.value.centerX,
622
- cy: c.value.centerY,
649
+ (u(!0), c(Y, null, X(T.value, (a, l) => (u(), c("circle", {
650
+ cx: d.value.centerX,
651
+ cy: d.value.centerY,
623
652
  r: a.radius <= 0 ? 1e-4 : a.radius,
624
653
  stroke: "white",
625
654
  "stroke-width": P.value.track / 3,
@@ -633,11 +662,11 @@ const Wt = ["id"], jt = ["id"], qt = ["xmlns", "viewBox"], Jt = ["width", "heigh
633
662
  transition: x.value || s(k) ? "none" : "all 0.3s ease-in-out !important",
634
663
  animation: x.value || s(k) ? "none" : "xyAnimation 0.5s ease-in"
635
664
  })
636
- }, null, 12, aa))), 256))
637
- ], 8, ta)) : g("", !0),
638
- (u(!0), i(Y, null, E(T.value, (a, l) => (u(), i("circle", {
639
- cx: c.value.centerX,
640
- cy: c.value.centerY,
665
+ }, null, 12, va))), 256))
666
+ ], 8, ca)) : p("", !0),
667
+ (u(!0), c(Y, null, X(T.value, (a, l) => (u(), c("circle", {
668
+ cx: d.value.centerX,
669
+ cy: d.value.centerY,
641
670
  r: a.radius <= 0 ? 1e-4 : a.radius,
642
671
  stroke: "transparent",
643
672
  "stroke-width": Math.max(P.value.track, P.value.gutter),
@@ -650,69 +679,69 @@ const Wt = ["id"], jt = ["id"], qt = ["xmlns", "viewBox"], Jt = ["width", "heigh
650
679
  transform: "rotate(-90deg)",
651
680
  transformOrigin: "50% 50%"
652
681
  },
653
- onMouseenter: (h) => Re({
682
+ onMouseenter: (v) => ze({
654
683
  datapoint: a,
655
684
  show: !0,
656
685
  seriesIndex: l
657
686
  }),
658
- onMouseleave: (h) => Me({ datapoint: a }),
659
- onClick: (h) => De({ datapoint: a })
660
- }, null, 40, la))), 256)),
661
- e.value.style.chart.layout.labels.show ? (u(), i("g", oa, [
662
- (u(!0), i(Y, null, E(T.value, (a, l) => (u(), i("g", {
663
- onMouseenter: (h) => Re({
687
+ onMouseleave: (v) => Re({ datapoint: a }),
688
+ onClick: (v) => Me({ datapoint: a })
689
+ }, null, 40, da))), 256)),
690
+ e.value.style.chart.layout.labels.show ? (u(), c("g", ha, [
691
+ (u(!0), c(Y, null, X(T.value, (a, l) => (u(), c("g", {
692
+ onMouseenter: (v) => ze({
664
693
  datapoint: a,
665
694
  show: !0,
666
695
  seriesIndex: l
667
696
  }),
668
- onMouseleave: (h) => Me({ datapoint: a }),
669
- onClick: (h) => De({ datapoint: a })
697
+ onMouseleave: (v) => Re({ datapoint: a }),
698
+ onClick: (v) => Me({ datapoint: a })
670
699
  }, [
671
- b.value.includes(a.id) ? g("", !0) : (u(), i("text", {
700
+ b.value.includes(a.id) ? p("", !0) : (u(), c("text", {
672
701
  key: 0,
673
702
  class: "vue-ui-onion-label",
674
703
  x: n.value.width / 2 - P.value.gutter * 0.8 + e.value.style.chart.layout.labels.offsetX,
675
704
  y: a.labelY + e.value.style.chart.layout.labels.offsetY,
676
705
  "text-anchor": "end",
677
706
  "font-size": e.value.style.chart.layout.labels.fontSize,
678
- fill: e.value.useBlurOnHover && ![null, void 0].includes(_.value) && _.value === l ? a.color : e.value.style.chart.layout.labels.color,
707
+ fill: e.value.useBlurOnHover && ![null, void 0].includes(S.value) && S.value === l ? a.color : e.value.style.chart.layout.labels.color,
679
708
  "font-weight": e.value.style.chart.layout.labels.bold ? "bold" : "normal"
680
- }, M(a.name ? a.name + ": " : "") + " " + M(e.value.style.chart.layout.labels.percentage.show ? s(X)({
709
+ }, L(a.name ? a.name + ": " : "") + " " + L(e.value.style.chart.layout.labels.percentage.show ? s(B)({
681
710
  v: a.percentage,
682
711
  s: "%",
683
712
  r: e.value.style.chart.layout.labels.roundingPercentage
684
- }) : "") + " " + M(!e.value.style.chart.layout.labels.percentage.show && e.value.style.chart.layout.labels.value.show ? `: ${s(ce)(
713
+ }) : "") + " " + L(!e.value.style.chart.layout.labels.percentage.show && e.value.style.chart.layout.labels.value.show ? `: ${s(ve)(
685
714
  e.value.style.chart.layout.labels.value.formatter,
686
715
  a.value,
687
- s(X)({
716
+ s(B)({
688
717
  p: a.prefix || "",
689
718
  v: a.value || 0,
690
719
  s: a.suffix || "",
691
720
  r: e.value.style.chart.layout.labels.roundingValue
692
721
  }),
693
722
  { datapoint: a, seriesIndex: l }
694
- )}` : `${e.value.style.chart.layout.labels.value.show && a.value ? `(${s(ce)(
723
+ )}` : `${e.value.style.chart.layout.labels.value.show && a.value ? `(${s(ve)(
695
724
  e.value.style.chart.layout.labels.value.formatter,
696
725
  a.value,
697
- s(X)({
726
+ s(B)({
698
727
  p: a.prefix || "",
699
728
  v: a.value || 0,
700
729
  s: a.suffix || "",
701
730
  r: e.value.style.chart.layout.labels.roundingValue
702
731
  }),
703
732
  { datapoint: a, seriesIndex: l }
704
- )})` : ""}`), 9, sa))
705
- ], 40, na))), 256))
706
- ])) : g("", !0),
707
- p(t.$slots, "svg", { svg: n.value }, void 0, !0)
708
- ], 14, qt)),
709
- t.$slots.watermark ? (u(), i("div", ua, [
710
- p(t.$slots, "watermark", z(N({ isPrinting: s(xe) || s(Te) })), void 0, !0)
711
- ])) : g("", !0),
733
+ )})` : ""}`), 9, pa))
734
+ ], 40, ga))), 256))
735
+ ])) : p("", !0),
736
+ g(t.$slots, "svg", { svg: n.value }, void 0, !0)
737
+ ], 14, oa)),
738
+ t.$slots.watermark ? (u(), c("div", fa, [
739
+ g(t.$slots, "watermark", R(z({ isPrinting: s(Te) || s(Oe) })), void 0, !0)
740
+ ])) : p("", !0),
712
741
  I("div", {
713
742
  id: `legend-bottom-${y.value}`
714
- }, null, 8, ra),
715
- ke.value ? (u(), S(wt, {
743
+ }, null, 8, ma),
744
+ we.value ? (u(), A(At, {
716
745
  key: 5,
717
746
  to: e.value.style.chart.legend.position === "top" ? `#legend-top-${y.value}` : `#legend-bottom-${y.value}`
718
747
  }, [
@@ -720,37 +749,37 @@ const Wt = ["id"], jt = ["id"], qt = ["xmlns", "viewBox"], Jt = ["width", "heigh
720
749
  ref_key: "chartLegend",
721
750
  ref: pe
722
751
  }, [
723
- e.value.style.chart.legend.show ? (u(), S(Xt, {
724
- key: `legend_${be.value}`,
725
- legendSet: f.value,
726
- config: dt.value,
727
- onClickMarker: o[0] || (o[0] = ({ legend: a }) => Pe(a.id))
752
+ e.value.style.chart.legend.show ? (u(), A(Zt, {
753
+ key: `legend_${ke.value}`,
754
+ legendSet: te.value,
755
+ config: gt.value,
756
+ onClickMarker: o[0] || (o[0] = ({ legend: a }) => Fe(a.id))
728
757
  }, {
729
- item: d(({ legend: a }) => [
730
- s(k) ? g("", !0) : (u(), i("div", {
758
+ item: h(({ legend: a }) => [
759
+ s(k) ? p("", !0) : (u(), c("div", {
731
760
  key: 0,
732
761
  "data-cy-legend-item": "",
733
762
  onClick: (l) => a.segregate(),
734
763
  style: D(`opacity:${b.value.includes(a.id) ? 0.5 : 1}`)
735
- }, M(a.name ? a.name + ": " : "") + " " + M((a.percentage || 0).toFixed(e.value.style.chart.legend.roundingPercentage)) + "% ", 13, ia))
764
+ }, L(a.display), 13, ya))
736
765
  ]),
737
766
  _: 1
738
- }, 8, ["legendSet", "config"])) : p(t.$slots, "legend", {
767
+ }, 8, ["legendSet", "config"])) : g(t.$slots, "legend", {
739
768
  key: 1,
740
- legend: f.value
769
+ legend: te.value
741
770
  }, void 0, !0)
742
771
  ], 512)
743
- ], 8, ["to"])) : g("", !0),
744
- t.$slots.source ? (u(), i("div", {
772
+ ], 8, ["to"])) : p("", !0),
773
+ t.$slots.source ? (u(), c("div", {
745
774
  key: 6,
746
775
  ref_key: "source",
747
776
  ref: fe,
748
777
  dir: "auto"
749
778
  }, [
750
- p(t.$slots, "source", {}, void 0, !0)
751
- ], 512)) : g("", !0),
752
- re(s(qe), {
753
- show: m.value.showTooltip && j.value,
779
+ g(t.$slots, "source", {}, void 0, !0)
780
+ ], 512)) : p("", !0),
781
+ ie(s(Ke), {
782
+ show: f.value.showTooltip && q.value,
754
783
  backgroundColor: e.value.style.chart.tooltip.backgroundColor,
755
784
  color: e.value.style.chart.tooltip.color,
756
785
  borderRadius: e.value.style.chart.tooltip.borderRadius,
@@ -761,43 +790,43 @@ const Wt = ["id"], jt = ["id"], qt = ["xmlns", "viewBox"], Jt = ["width", "heigh
761
790
  position: e.value.style.chart.tooltip.position,
762
791
  offsetY: e.value.style.chart.tooltip.offsetY,
763
792
  parent: $.value,
764
- content: q.value,
793
+ content: J.value,
765
794
  isFullscreen: F.value,
766
- isCustom: s(Xe)(e.value.style.chart.tooltip.customFormat),
795
+ isCustom: s(He)(e.value.style.chart.tooltip.customFormat),
767
796
  smooth: e.value.style.chart.tooltip.smooth,
768
797
  backdropFilter: e.value.style.chart.tooltip.backdropFilter,
769
798
  smoothForce: e.value.style.chart.tooltip.smoothForce,
770
799
  smoothSnapThreshold: e.value.style.chart.tooltip.smoothSnapThreshold
771
800
  }, {
772
- "tooltip-before": d(() => [
773
- p(t.$slots, "tooltip-before", z(N({ ...oe.value })), void 0, !0)
801
+ "tooltip-before": h(() => [
802
+ g(t.$slots, "tooltip-before", R(z({ ...ne.value })), void 0, !0)
774
803
  ]),
775
- "tooltip-after": d(() => [
776
- p(t.$slots, "tooltip-after", z(N({ ...oe.value })), void 0, !0)
804
+ "tooltip-after": h(() => [
805
+ g(t.$slots, "tooltip-after", R(z({ ...ne.value })), void 0, !0)
777
806
  ]),
778
807
  _: 3
779
808
  }, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "fontSize", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom", "smooth", "backdropFilter", "smoothForce", "smoothSnapThreshold"]),
780
- ve.value && e.value.userOptions.buttons.table ? (u(), S(Ct(V.value.component), $t({ key: 7 }, V.value.props, {
809
+ de.value && e.value.userOptions.buttons.table ? (u(), A(It(U.value.component), Pt({ key: 7 }, U.value.props, {
781
810
  ref_key: "tableUnit",
782
- ref: B,
783
- onClose: o[3] || (o[3] = (a) => m.value.showTable = !1)
784
- }), Le({
785
- content: d(() => [
786
- (u(), S(s(Qe), {
787
- key: `table_${ye.value}`,
788
- colNames: G.value.colNames,
789
- head: G.value.head,
790
- body: G.value.body,
791
- config: G.value.config,
792
- title: e.value.table.useDialog ? "" : V.value.title,
811
+ ref: N,
812
+ onClose: o[3] || (o[3] = (a) => f.value.showTable = !1)
813
+ }), Ue({
814
+ content: h(() => [
815
+ (u(), A(s(et), {
816
+ key: `table_${be.value}`,
817
+ colNames: H.value.colNames,
818
+ head: H.value.head,
819
+ body: H.value.body,
820
+ config: H.value.config,
821
+ title: e.value.table.useDialog ? "" : U.value.title,
793
822
  withCloseButton: !e.value.table.useDialog,
794
- onClose: o[2] || (o[2] = (a) => m.value.showTable = !1)
823
+ onClose: o[2] || (o[2] = (a) => f.value.showTable = !1)
795
824
  }, {
796
- th: d(({ th: a }) => [
797
- Ve(M(a), 1)
825
+ th: h(({ th: a }) => [
826
+ Ee(L(a), 1)
798
827
  ]),
799
- td: d(({ td: a }) => [
800
- I("div", { innerHTML: a }, null, 8, ca)
828
+ td: h(({ td: a }) => [
829
+ I("div", { innerHTML: a }, null, 8, ba)
801
830
  ]),
802
831
  _: 1
803
832
  }, 8, ["colNames", "head", "body", "config", "title", "withCloseButton"]))
@@ -806,32 +835,32 @@ const Wt = ["id"], jt = ["id"], qt = ["xmlns", "viewBox"], Jt = ["width", "heigh
806
835
  }, [
807
836
  e.value.table.useDialog ? {
808
837
  name: "title",
809
- fn: d(() => [
810
- Ve(M(V.value.title), 1)
838
+ fn: h(() => [
839
+ Ee(L(U.value.title), 1)
811
840
  ]),
812
841
  key: "0"
813
842
  } : void 0,
814
843
  e.value.table.useDialog ? {
815
844
  name: "actions",
816
- fn: d(() => [
845
+ fn: h(() => [
817
846
  I("button", {
818
847
  tabindex: "0",
819
848
  class: "vue-ui-user-options-button",
820
- onClick: o[1] || (o[1] = (a) => le(e.value.userOptions.callbacks.csv))
849
+ onClick: o[1] || (o[1] = (a) => oe(e.value.userOptions.callbacks.csv))
821
850
  }, [
822
- re(s(Je), {
851
+ ie(s(Qe), {
823
852
  name: "excel",
824
- stroke: V.value.props.color
853
+ stroke: U.value.props.color
825
854
  }, null, 8, ["stroke"])
826
855
  ])
827
856
  ]),
828
857
  key: "1"
829
858
  } : void 0
830
- ]), 1040)) : g("", !0),
831
- s(k) ? (u(), S(Nt, { key: 8 })) : g("", !0)
832
- ], 46, Wt));
859
+ ]), 1040)) : p("", !0),
860
+ s(k) ? (u(), A(Gt, { key: 8 })) : p("", !0)
861
+ ], 46, aa));
833
862
  }
834
- }, Oa = /* @__PURE__ */ Ht(va, [["__scopeId", "data-v-6873a81d"]]);
863
+ }, za = /* @__PURE__ */ ta(ka, [["__scopeId", "data-v-75c2d02d"]]);
835
864
  export {
836
- Oa as default
865
+ za as default
837
866
  };