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,23 +1,24 @@
1
- import { defineAsyncComponent as E, ref as c, shallowRef as mt, computed as f, onMounted as ll, toRefs as al, nextTick as ze, watch as re, watchEffect as ol, onBeforeUnmount as ul, createElementBlock as n, openBlock as o, unref as i, normalizeStyle as Q, normalizeClass as N, createBlock as T, createCommentVNode as v, createElementVNode as b, createSlots as xt, withCtx as k, renderSlot as S, normalizeProps as Z, guardReactiveProps as ee, createVNode as pt, Fragment as z, renderList as $, toDisplayString as m, Teleport as sl, resolveDynamicComponent as nl, mergeProps as rl, createTextVNode as $e } from "vue";
2
- import { c as kt, o as wt, f as ie, g as il, t as cl, b as vl, p as ce, B as Ct, e as dl, h as Ie, J as hl, C as _t, n as De, X as yl, s as te, K as fl, a as Te, d as ve, L as gl, u as bl, v as ml, w as Lt, x as xl, y as pl, M as At, N as kl } from "./lib-BEpWEyMm.js";
3
- import { t as St, u as wl } from "./useResponsive-DfdjqQps.js";
4
- import { u as Cl, a as zt } from "./useNestedProp-BOk-tPdu.js";
5
- import { u as _l } from "./usePrinter-w23K-ezx.js";
6
- import { u as Ll, B as Al } from "./BaseScanner-BgWxam9d.js";
7
- import { u as Sl } from "./useTimeLabels-BGFjWgrv.js";
8
- import { u as zl } from "./useUserOptionState-BIvW1Kz7.js";
9
- import { u as $l } from "./useChartAccessibility-9icAAmYg.js";
10
- import { u as Il } from "./useTimeLabelCollider-CIsgDrl9.js";
11
- import Dl from "./img-DjWwQXVS.js";
12
- import Tl from "./Title-DG2nloSB.js";
13
- import { t as Ol } from "./themes-Dw-dDudK.js";
14
- import Nl from "./Legend-BpoFJ8fc.js";
15
- import { S as Pl } from "./Slicer-BA2GhOmY.js";
16
- import { _ as Rl } from "./_plugin-vue_export-helper-CHgC5LLL.js";
17
- const Fl = ["id"], El = ["id"], Vl = ["xmlns", "viewBox"], Bl = ["x", "y", "width", "height"], Ml = ["id"], Hl = ["stop-color"], Ul = ["stop-color"], Xl = ["id"], Wl = ["stop-color"], Gl = ["stop-color"], Yl = ["stop-color"], jl = { key: 1 }, ql = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Jl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Kl = { key: 0 }, Ql = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Zl = ["font-size", "fill", "transform"], ea = ["x", "y", "font-size", "fill"], ta = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], la = ["x", "y", "font-size", "fill", "font-weight"], aa = { key: 0 }, oa = ["text-anchor", "font-size", "fill", "transform"], ua = ["text-anchor", "font-size", "fill", "transform", "innerHTML"], sa = ["x1", "y1", "x2", "y2", "stroke", "stroke-width"], na = { key: 1 }, ra = ["cx", "cy", "r", "fill"], ia = { key: 0 }, ca = { key: 0 }, va = ["d", "stroke"], da = ["text-anchor", "x", "y", "fill"], ha = ["cx", "cy", "r", "fill"], ya = { key: 0 }, fa = ["cx", "cy", "fill"], ga = { key: 1 }, ba = ["d", "fill", "stroke"], ma = { key: 2 }, xa = ["d", "fill", "stroke"], pa = ["x", "y", "font-size", "fill"], ka = ["x", "y", "width", "height", "fill"], wa = ["x", "y", "width", "height", "onMouseenter", "onMouseleave", "onClick"], Ca = {
1
+ import { defineAsyncComponent as E, ref as i, shallowRef as xt, computed as y, onMounted as il, toRefs as cl, nextTick as Ie, watch as re, watchEffect as vl, onBeforeUnmount as dl, createElementBlock as n, openBlock as u, unref as c, normalizeStyle as Q, normalizeClass as N, createBlock as O, createCommentVNode as v, createElementVNode as b, createSlots as pt, withCtx as p, renderSlot as S, normalizeProps as Z, guardReactiveProps as ee, createVNode as kt, Fragment as $, renderList as z, toDisplayString as k, Teleport as hl, resolveDynamicComponent as yl, mergeProps as gl, createTextVNode as De } from "vue";
2
+ import { c as wt, o as Ct, f as ie, g as fl, t as bl, b as ml, p as ce, B as _t, e as xl, h as Oe, J as pl, C as Lt, n as Te, a as Ne, d as ve, X as kl, s as te, K as wl, L as Cl, u as _l, v as Ll, w as At, x as Al, y as Sl, M as St, N as $l } from "./lib-GIYcnm0E.js";
3
+ import { t as $t, u as zl } from "./useResponsive-DfdjqQps.js";
4
+ import { u as Il, a as zt } from "./useNestedProp-mxyyqd0B.js";
5
+ import { u as Dl } from "./usePrinter-DYRFiw7X.js";
6
+ import { u as Ol, B as Tl } from "./BaseScanner-BgWxam9d.js";
7
+ import { u as Nl } from "./useSvgExport-B7-Vrjtu.js";
8
+ import { u as Pl } from "./useTimeLabels-BGFjWgrv.js";
9
+ import { u as Rl } from "./useUserOptionState-BIvW1Kz7.js";
10
+ import { u as Fl } from "./useChartAccessibility-9icAAmYg.js";
11
+ import { u as El } from "./useTimeLabelCollider-CIsgDrl9.js";
12
+ import Vl from "./img-6wPuVVtk.js";
13
+ import Bl from "./Title-D17CJXko.js";
14
+ import { t as Ml } from "./themes-Dw-dDudK.js";
15
+ import Hl from "./Legend-DsogCeTb.js";
16
+ import { S as Ul } from "./Slicer-D6T4aUhr.js";
17
+ import { _ as Xl } from "./_plugin-vue_export-helper-CHgC5LLL.js";
18
+ const Wl = ["id"], Gl = ["id"], Yl = ["xmlns", "viewBox"], jl = ["x", "y", "width", "height"], ql = ["id"], Jl = ["stop-color"], Kl = ["stop-color"], Ql = ["id"], Zl = ["stop-color"], ea = ["stop-color"], ta = ["stop-color"], la = { key: 1 }, aa = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], oa = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], ua = { key: 0 }, sa = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], na = ["font-size", "fill", "transform"], ra = ["x", "y", "font-size", "fill"], ia = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], ca = ["x", "y", "font-size", "fill", "font-weight"], va = { key: 0 }, da = ["text-anchor", "font-size", "fill", "transform"], ha = ["text-anchor", "font-size", "fill", "transform", "innerHTML"], ya = ["x1", "y1", "x2", "y2", "stroke", "stroke-width"], ga = { key: 1 }, fa = ["cx", "cy", "r", "fill"], ba = { key: 0 }, ma = { key: 0 }, xa = ["d", "stroke"], pa = ["text-anchor", "x", "y", "fill"], ka = ["cx", "cy", "r", "fill"], wa = { key: 0 }, Ca = ["cx", "cy", "fill"], _a = { key: 1 }, La = ["d", "fill", "stroke"], Aa = { key: 2 }, Sa = ["d", "fill", "stroke"], $a = ["x", "y", "font-size", "fill"], za = ["x", "y", "width", "height", "fill"], Ia = ["x", "y", "width", "height", "onMouseenter", "onMouseleave", "onClick"], Da = {
18
19
  key: 4,
19
20
  class: "vue-data-ui-watermark"
20
- }, _a = ["id"], La = ["onClick"], Aa = { key: 0 }, Sa = { key: 1 }, za = {
21
+ }, Oa = ["id"], Ta = ["onClick"], Na = { key: 0 }, Pa = { key: 1 }, Ra = {
21
22
  __name: "vue-ui-donut-evolution",
22
23
  props: {
23
24
  config: {
@@ -34,19 +35,19 @@ const Fl = ["id"], El = ["id"], Vl = ["xmlns", "viewBox"], Bl = ["x", "y", "widt
34
35
  }
35
36
  },
36
37
  emits: ["selectLegend"],
37
- setup($t, { expose: It, emit: Dt }) {
38
- const Tt = E(() => import("./vue-ui-accordion-CeMTgpl0.js")), Ot = E(() => import("./BaseIcon-Bz-1GQhu.js")), Nt = E(() => import("./DataTable-BvjacRbw.js")), Pt = E(() => import("./PackageVersion-Cwrh45ON.js")), Rt = E(() => import("./PenAndPaper-CR8q353D.js")), Ft = E(() => import("./UserOptions-DsTgvAok.js")), Et = E(() => import("./vue-ui-donut-a82yzfvT.js")), Oe = E(() => import("./BaseDraggableDialog-CHhZIht2.js")), { vue_ui_donut_evolution: Vt } = Cl(), x = $t, O = c(kt()), C = c([]), g = c(null), le = c(null), de = c(!1), V = c(null), P = c(null), Bt = c(null), Ne = c(0), Pe = c(0), Re = c(0), Fe = c(0), Ee = c(0), he = c(null), ae = c(null), ye = c(null), fe = c(null), Ve = c(!1), Y = c(null), ge = c(null), Be = c(null), Me = c(null), He = c(null), Ue = c(null), Xe = c(null), be = c(!1), j = mt(null), oe = mt(null), We = c(null), Ge = Dt, Ye = f(() => !!x.dataset && x.dataset.length);
39
- ll(() => {
40
- Ve.value = !0, je();
38
+ setup(It, { expose: Dt, emit: Ot }) {
39
+ const Tt = E(() => import("./vue-ui-accordion-Dch9YrCi.js")), Nt = E(() => import("./BaseIcon-CtqN7W_g.js")), Pt = E(() => import("./DataTable-BeI6gYJX.js")), Rt = E(() => import("./PackageVersion-C9oklnuy.js")), Ft = E(() => import("./PenAndPaper-BxbYiPy4.js")), Et = E(() => import("./UserOptions-B3vCIe-u.js")), Vt = E(() => import("./vue-ui-donut-CqefukGp.js")), Pe = E(() => import("./BaseDraggableDialog-q3pgSDTz.js")), { vue_ui_donut_evolution: Bt } = Il(), m = It, T = i(wt()), C = i([]), f = i(null), le = i(null), de = i(!1), V = i(null), P = i(null), Mt = i(null), Re = i(0), Fe = i(0), Ee = i(0), Ve = i(0), Be = i(0), he = i(null), ae = i(null), ye = i(null), ge = i(null), Me = i(!1), Y = i(null), fe = i(null), He = i(null), Ue = i(null), Xe = i(null), We = i(null), Ge = i(null), be = i(!1), j = xt(null), oe = xt(null), Ye = i(null), je = Ot, qe = y(() => !!m.dataset && m.dataset.length);
40
+ il(() => {
41
+ Me.value = !0, Je();
41
42
  });
42
- const ue = f(() => !!e.value.debug);
43
- function je() {
44
- if (wt(x.dataset) ? (ie({
43
+ const ue = y(() => !!e.value.debug);
44
+ function Je() {
45
+ if (Ct(m.dataset) ? (ie({
45
46
  componentName: "VueUiDonutEvolution",
46
47
  type: "dataset",
47
48
  debug: ue.value
48
- }), se.value = !0) : x.dataset.length && x.dataset.forEach((t, a) => {
49
- il({
49
+ }), se.value = !0) : m.dataset.length && m.dataset.forEach((t, a) => {
50
+ fl({
50
51
  datasetObject: t,
51
52
  requiredAttributes: ["name", "values"]
52
53
  }).forEach((l) => {
@@ -58,20 +59,20 @@ const Fl = ["id"], El = ["id"], Vl = ["xmlns", "viewBox"], Bl = ["x", "y", "widt
58
59
  debug: ue.value
59
60
  }), se.value = !0;
60
61
  });
61
- }), wt(x.dataset) || (se.value = e.value.loading), setTimeout(() => {
62
+ }), Ct(m.dataset) || (se.value = e.value.loading), setTimeout(() => {
62
63
  be.value = !0;
63
64
  }, 10), xe(), e.value.responsive) {
64
- const t = St(() => {
65
+ const t = $t(() => {
65
66
  be.value = !1;
66
- const { width: a, height: l } = wl({
67
+ const { width: a, height: l } = zl({
67
68
  chart: P.value,
68
- title: e.value.style.chart.title.text ? Be.value : null,
69
- legend: e.value.style.chart.legend.show ? Me.value : null,
70
- slicer: e.value.style.chart.zoom.show && Je.value > 1 ? Xe.value : null,
71
- source: He.value
69
+ title: e.value.style.chart.title.text ? He.value : null,
70
+ legend: e.value.style.chart.legend.show ? Ue.value : null,
71
+ slicer: e.value.style.chart.zoom.show && Qe.value > 1 ? Ge.value : null,
72
+ source: Xe.value
72
73
  });
73
74
  requestAnimationFrame(() => {
74
- U.value.width = a, U.value.height = l - 12, clearTimeout(We.value), We.value = setTimeout(() => {
75
+ U.value.width = a, U.value.height = l - 12, clearTimeout(Ye.value), Ye.value = setTimeout(() => {
75
76
  be.value = !0;
76
77
  }, 10);
77
78
  });
@@ -79,10 +80,10 @@ const Fl = ["id"], El = ["id"], Vl = ["xmlns", "viewBox"], Bl = ["x", "y", "widt
79
80
  j.value && (oe.value && j.value.unobserve(oe.value), j.value.disconnect()), j.value = new ResizeObserver(t), oe.value = P.value.parentNode, j.value.observe(oe.value);
80
81
  }
81
82
  }
82
- const e = c(ke()), { loading: qe, FINAL_DATASET: me, manualLoading: se } = Ll({
83
- ...al(x),
83
+ const e = i(we()), { loading: Ke, FINAL_DATASET: me, manualLoading: se } = Ol({
84
+ ...cl(m),
84
85
  FINAL_CONFIG: e,
85
- prepareConfig: ke,
86
+ prepareConfig: we,
86
87
  callback: () => {
87
88
  Promise.resolve().then(async () => {
88
89
  await xe();
@@ -105,7 +106,7 @@ const Fl = ["id"], El = ["id"], Vl = ["xmlns", "viewBox"], Bl = ["x", "y", "widt
105
106
  color: "#CACACA"
106
107
  }
107
108
  ],
108
- skeletonConfig: cl({
109
+ skeletonConfig: bl({
109
110
  defaultConfig: e.value,
110
111
  userConfig: {
111
112
  useCssAnimation: !1,
@@ -147,53 +148,53 @@ const Fl = ["id"], El = ["id"], Vl = ["xmlns", "viewBox"], Bl = ["x", "y", "widt
147
148
  }
148
149
  }
149
150
  })
150
- }), U = c({
151
+ }), U = i({
151
152
  width: e.value.style.chart.layout.width,
152
153
  height: e.value.style.chart.layout.height
153
- }), Je = f(() => Math.max(...me.value.map((t) => t.values.length))), h = c({
154
+ }), Qe = y(() => Math.max(...me.value.map((t) => t.values.length))), h = i({
154
155
  start: 0,
155
- end: Je.value
156
+ end: Qe.value
156
157
  });
157
- function Ke() {
158
+ function Ze() {
158
159
  xe();
159
160
  }
160
161
  async function xe() {
161
- await ze(), await ze();
162
- const { startIndex: t, endIndex: a } = e.value.style.chart.zoom, l = Ue.value;
163
- h.value = { start: 0, max: I.value }, (t != null || a != null) && l ? (t != null ? l.setStartValue(t) : (h.value.start = 0, l.setStartValue(0)), a != null ? l.setEndValue(Mt(a + 1)) : (h.value.end = I.value, l.setEndValue(I.value))) : (h.value = {
162
+ await Ie(), await Ie();
163
+ const { startIndex: t, endIndex: a } = e.value.style.chart.zoom, l = We.value;
164
+ h.value = { start: 0, max: I.value }, (t != null || a != null) && l ? (t != null ? l.setStartValue(t) : (h.value.start = 0, l.setStartValue(0)), a != null ? l.setEndValue(Ht(a + 1)) : (h.value.end = I.value, l.setEndValue(I.value))) : (h.value = {
164
165
  start: 0,
165
166
  end: I.value
166
- }, Pe.value += 1);
167
+ }, Fe.value += 1);
167
168
  }
168
- function Mt(t) {
169
+ function Ht(t) {
169
170
  const a = I.value;
170
171
  return t > a ? a : t < 0 || e.value.style.chart.zoom.startIndex !== null && t < e.value.style.chart.zoom.startIndex ? e.value.style.chart.zoom.startIndex !== null ? e.value.style.chart.zoom.startIndex + 1 : 1 : t;
171
172
  }
172
- const { userOptionsVisible: pe, setUserOptionsVisibility: Qe, keepUserOptionState: Ze } = zl({ config: e.value }), { svgRef: et } = $l({ config: e.value.style.chart.title });
173
- function ke() {
173
+ const { userOptionsVisible: pe, setUserOptionsVisibility: et, keepUserOptionState: tt } = Rl({ config: e.value }), { svgRef: ke } = Fl({ config: e.value.style.chart.title });
174
+ function we() {
174
175
  const t = zt({
175
- userConfig: x.config,
176
- defaultConfig: Vt
176
+ userConfig: m.config,
177
+ defaultConfig: Bt
177
178
  });
178
179
  let a = {};
179
180
  return t.theme ? a = {
180
181
  ...zt({
181
- userConfig: Ol.vue_ui_donut_evolution[t.theme] || x.config,
182
+ userConfig: Ml.vue_ui_donut_evolution[t.theme] || m.config,
182
183
  defaultConfig: t
183
184
  }),
184
- customPalette: vl[t.theme] || ce
185
- } : a = t, x.config && Ct(x.config, "style.chart.zoom.startIndex") ? a.style.chart.zoom.startIndex = x.config.style.chart.zoom.startIndex : a.style.chart.zoom.startIndex = null, x.config && Ct(x.config, "style.chart.zoom.endIndex") ? a.style.chart.zoom.endIndex = x.config.style.chart.zoom.endIndex : a.style.chart.zoom.endIndex = null, a;
185
+ customPalette: ml[t.theme] || ce
186
+ } : a = t, m.config && _t(m.config, "style.chart.zoom.startIndex") ? a.style.chart.zoom.startIndex = m.config.style.chart.zoom.startIndex : a.style.chart.zoom.startIndex = null, m.config && _t(m.config, "style.chart.zoom.endIndex") ? a.style.chart.zoom.endIndex = m.config.style.chart.zoom.endIndex : a.style.chart.zoom.endIndex = null, a;
186
187
  }
187
- re(() => x.config, (t) => {
188
- qe.value || (e.value = ke()), pe.value = !e.value.userOptions.showOnChartHover, je(), Re.value += 1, Fe.value += 1, Ee.value += 1, B.value.showTable = e.value.table.show;
189
- }, { deep: !0 }), re(() => x.dataset, (t) => {
190
- Array.isArray(t) && t.length > 0 && (se.value = !1), Ke();
188
+ re(() => m.config, (t) => {
189
+ Ke.value || (e.value = we()), pe.value = !e.value.userOptions.showOnChartHover, Je(), Ee.value += 1, Ve.value += 1, Be.value += 1, B.value.showTable = e.value.table.show;
190
+ }, { deep: !0 }), re(() => m.dataset, (t) => {
191
+ Array.isArray(t) && t.length > 0 && (se.value = !1), Ze();
191
192
  }, { deep: !0 });
192
- const { isPrinting: tt, isImaging: lt, generatePdf: at, generateImage: ot } = _l({
193
- elementId: O.value,
193
+ const { isPrinting: lt, isImaging: at, generatePdf: ot, generateImage: ut } = Dl({
194
+ elementId: T.value,
194
195
  fileName: e.value.style.chart.title.text || "vue-ui-donut-evolution",
195
196
  options: e.value.userOptions.print
196
- }), Ht = f(() => e.value.userOptions.show && !e.value.style.chart.title.text), Ut = f(() => dl(e.value.customPalette)), B = c({
197
+ }), Ut = y(() => e.value.userOptions.show && !e.value.style.chart.title.text), Xt = y(() => xl(e.value.customPalette)), B = i({
197
198
  showTable: e.value.table.show
198
199
  });
199
200
  re(e, () => {
@@ -201,54 +202,54 @@ const Fl = ["id"], El = ["id"], Vl = ["xmlns", "viewBox"], Bl = ["x", "y", "widt
201
202
  showTable: e.value.table.show
202
203
  };
203
204
  }, { immediate: !0 });
204
- const M = f(() => ({
205
+ const M = y(() => ({
205
206
  top: e.value.style.chart.layout.padding.top,
206
207
  right: e.value.style.chart.layout.padding.right,
207
208
  bottom: e.value.style.chart.layout.padding.bottom,
208
209
  left: e.value.style.chart.layout.padding.left
209
210
  }));
210
- function Xt() {
211
+ function Wt() {
211
212
  let t = 0;
212
- he.value && (t = Array.from(he.value.querySelectorAll("text")).reduce((u, y) => {
213
- const d = y.getComputedTextLength();
214
- return (d > u ? d : u) + e.value.style.chart.layout.grid.axis.yLabelOffsetX;
213
+ he.value && (t = Array.from(he.value.querySelectorAll("text")).reduce((o, g) => {
214
+ const d = g.getComputedTextLength();
215
+ return (d > o ? d : o) + e.value.style.chart.layout.grid.axis.yLabelOffsetX;
215
216
  }, 0));
216
- const a = fe.value ? fe.value.getBoundingClientRect().width + e.value.style.chart.layout.grid.axis.yLabelOffsetX + e.value.style.chart.layout.grid.axis.fontSize : 0;
217
+ const a = ge.value ? ge.value.getBoundingClientRect().width + e.value.style.chart.layout.grid.axis.yLabelOffsetX + e.value.style.chart.layout.grid.axis.fontSize : 0;
217
218
  return t + a + 5;
218
219
  }
219
- const we = c(0), Wt = St((t) => {
220
- we.value = t;
220
+ const Ce = i(0), Gt = $t((t) => {
221
+ Ce.value = t;
221
222
  }, 100);
222
- ol((t) => {
223
+ vl((t) => {
223
224
  const a = ae.value;
224
225
  if (!a) return;
225
226
  const l = new ResizeObserver((s) => {
226
- Wt(s[0].contentRect.height);
227
+ Gt(s[0].contentRect.height);
227
228
  });
228
229
  l.observe(a), t(() => l.disconnect());
229
- }), ul(() => {
230
- we.value = 0;
230
+ }), dl(() => {
231
+ Ce.value = 0;
231
232
  });
232
- const ut = f(() => {
233
+ const st = y(() => {
233
234
  let t = 0;
234
235
  ye.value && (t = ye.value.getBBox().height);
235
236
  let a = 0;
236
- return ae.value && (a = we.value), t + a + e.value.style.chart.layout.grid.axis.fontSize + e.value.style.chart.layout.grid.xAxis.dataLabels.offsetY;
237
- }), r = f(() => {
238
- const t = Xt(), a = e.value.style.chart.layout.dataLabels.fontSize * 3, l = U.value.width, s = U.value.height, u = M.value.left + t, y = l - M.value.right, d = l - u - M.value.right, p = s - M.value.top - M.value.bottom - a - ut.value, G = M.value.top + a, F = s - M.value.bottom - ut.value;
237
+ return ae.value && (a = Ce.value), t + a + e.value.style.chart.layout.grid.axis.fontSize + e.value.style.chart.layout.grid.xAxis.dataLabels.offsetY;
238
+ }), r = y(() => {
239
+ const t = Wt(), a = e.value.style.chart.layout.dataLabels.fontSize * 3, l = U.value.width, s = U.value.height, o = M.value.left + t, g = l - M.value.right, d = l - o - M.value.right, x = s - M.value.top - M.value.bottom - a - st.value, G = M.value.top + a, F = s - M.value.bottom - st.value;
239
240
  return {
240
241
  top: G,
241
- left: u,
242
- right: y,
242
+ left: o,
243
+ right: g,
243
244
  bottom: F,
244
245
  absoluteHeight: s,
245
246
  absoluteWidth: l,
246
- centerX: u + Math.max(10, d) / 2,
247
- centerY: G + Math.max(10, p) / 2,
247
+ centerX: o + Math.max(10, d) / 2,
248
+ centerY: G + Math.max(10, x) / 2,
248
249
  width: Math.max(10, d),
249
- height: Math.max(10, p)
250
+ height: Math.max(10, x)
250
251
  };
251
- }), R = f(() => (me.value.forEach((t, a) => {
252
+ }), R = y(() => (me.value.forEach((t, a) => {
252
253
  [null, void 0].includes(t.name) && ie({
253
254
  componentName: "VueUiDonutEvolution",
254
255
  type: "datasetSerieAttribute",
@@ -264,66 +265,66 @@ const Fl = ["id"], El = ["id"], Vl = ["xmlns", "viewBox"], Bl = ["x", "y", "widt
264
265
  });
265
266
  }), me.value.map((t, a) => ({
266
267
  ...t,
267
- values: hl(t.values),
268
- color: Ie(t.color) || Ut.value[a] || ce[a] || ce[a % ce.length],
268
+ values: pl(t.values),
269
+ color: Oe(t.color) || Xt.value[a] || ce[a] || ce[a % ce.length],
269
270
  length: (t.values || []).length,
270
- uid: kt()
271
- })))), q = f(() => R.value.filter((t) => !C.value.includes(t.uid)).map((t) => ({
271
+ uid: wt()
272
+ })))), q = y(() => R.value.filter((t) => !C.value.includes(t.uid)).map((t) => ({
272
273
  ...t,
273
274
  values: t.values.filter((a, l) => l >= h.value.start && l <= h.value.end)
274
- }))), I = f(() => Math.max(...q.value.map((t) => t.length))), _ = f(() => Sl({
275
+ }))), I = y(() => Math.max(...q.value.map((t) => t.length))), _ = y(() => Pl({
275
276
  values: e.value.style.chart.layout.grid.xAxis.dataLabels.values,
276
277
  maxDatapoints: I.value,
277
278
  formatter: e.value.style.chart.layout.grid.xAxis.dataLabels.datetimeFormatter,
278
279
  start: h.value.start,
279
280
  end: h.value.end
280
- })), w = f(() => r.value.width / (h.value.end - h.value.start)), L = f(() => {
281
+ })), w = y(() => r.value.width / (h.value.end - h.value.start)), L = y(() => {
281
282
  const t = [];
282
- for (let u = 0; u < h.value.end - h.value.start; u += 1) {
283
- const y = q.value.map((D) => D.values[u] ?? null), d = y.filter((D) => [void 0, null].includes(D)).length === y.length, p = y.reduce((D, A) => D + A, 0), G = y.map((D) => D / p), F = r.value.left + w.value * u + w.value / 2;
283
+ for (let o = 0; o < h.value.end - h.value.start; o += 1) {
284
+ const g = q.value.map((D) => D.values[o] ?? null), d = g.filter((D) => [void 0, null].includes(D)).length === g.length, x = g.reduce((D, A) => D + A, 0), G = g.map((D) => D / x), F = r.value.left + w.value * o + w.value / 2;
284
285
  t.push({
285
- index: u,
286
+ index: o,
286
287
  percentages: G,
287
- subtotal: d || p < 0 ? null : p,
288
- values: y,
288
+ subtotal: d || x < 0 ? null : x,
289
+ values: g,
289
290
  x: F
290
291
  });
291
292
  }
292
- const a = 0, l = Math.max(...t.map((u) => u.subtotal)), s = t.length === 1 ? l * 2 : l;
293
- return t.map((u, y) => {
294
- const d = Math.min(r.value.width / 24, w.value / 2 * 0.7), p = d > r.value.width / 16 ? r.value.width / 16 : d, G = g.value === u.index ? r.value.width / 16 : p, F = t.length > 4 ? d * 2 : d * 2 > w.value / 2 * 0.7 ? w.value / 2 * 0.7 : d * 2, D = r.value.bottom - r.value.height * u.subtotal / _t(a, s, e.value.style.chart.layout.grid.yAxis.dataLabels.steps).max;
293
+ const a = 0, l = Math.max(...t.map((o) => o.subtotal)), s = t.length === 1 ? l * 2 : l;
294
+ return t.map((o, g) => {
295
+ const d = Math.min(r.value.width / 24, w.value / 2 * 0.7), x = d > r.value.width / 16 ? r.value.width / 16 : d, G = f.value === o.index ? r.value.width / 16 : x, F = t.length > 4 ? d * 2 : d * 2 > w.value / 2 * 0.7 ? w.value / 2 * 0.7 : d * 2, D = r.value.bottom - r.value.height * o.subtotal / Lt(a, s, e.value.style.chart.layout.grid.yAxis.dataLabels.steps).max;
295
296
  return {
296
- ...u,
297
+ ...o,
297
298
  y: D,
298
- radius: p,
299
+ radius: x,
299
300
  activeRadius: G,
300
301
  hoverRadius: F,
301
- donut: De({
302
- series: q.value.map((A, bt) => ({
302
+ donut: Te({
303
+ series: q.value.map((A, mt) => ({
303
304
  color: A.color,
304
305
  name: A.name,
305
- value: A.values[y] ?? 0
306
+ value: A.values[g] ?? 0
306
307
  }))
307
- }, u.x, D, p, p, 1.99999, 2, 1, 360, 105.25, p / 2),
308
- donutHover: De({
309
- series: q.value.map((A, bt) => ({
308
+ }, o.x, D, x, x, 1.99999, 2, 1, 360, 105.25, x / 2),
309
+ donutHover: Te({
310
+ series: q.value.map((A, mt) => ({
310
311
  color: A.color,
311
312
  name: A.name,
312
- value: A.values[y] ?? 0
313
+ value: A.values[g] ?? 0
313
314
  }))
314
- }, u.x, D, F, F, 1.99999, 2, 1, 360, 105.25, F / 2),
315
- donutFocus: De({
316
- series: q.value.map((A, bt) => ({
315
+ }, o.x, D, F, F, 1.99999, 2, 1, 360, 105.25, F / 2),
316
+ donutFocus: Te({
317
+ series: q.value.map((A, mt) => ({
317
318
  color: A.color,
318
319
  name: A.name,
319
- value: A.values[y] ?? 0
320
+ value: A.values[g] ?? 0
320
321
  }))
321
322
  }, r.value.centerX, r.value.centerY, r.value.height / 3.6, r.value.height / 3.6, 1.99999, 2, 1, 360, 105.25, r.value.height / 6)
322
323
  };
323
324
  });
324
325
  });
325
- function st(t, a, l) {
326
- return Te(
326
+ function nt(t, a, l) {
327
+ return Ne(
327
328
  e.value.style.chart.layout.dataLabels.formatter,
328
329
  t,
329
330
  ve({
@@ -335,45 +336,60 @@ const Fl = ["id"], El = ["id"], Vl = ["xmlns", "viewBox"], Bl = ["x", "y", "widt
335
336
  { datapoint: a, index: l }
336
337
  );
337
338
  }
338
- const Ce = f(() => ({
339
+ const _e = y(() => ({
339
340
  max: Math.max(...L.value.map((t) => t.subtotal)),
340
341
  min: 0
341
- })), X = f(() => {
342
- const t = L.value.length === 1 ? Ce.value.max * 2 : Ce.value.max;
343
- return _t(Ce.value.min, t, e.value.style.chart.layout.grid.yAxis.dataLabels.steps);
342
+ })), X = y(() => {
343
+ const t = L.value.length === 1 ? _e.value.max * 2 : _e.value.max;
344
+ return Lt(_e.value.min, t, e.value.style.chart.layout.grid.yAxis.dataLabels.steps);
344
345
  });
345
- function Gt(t) {
346
+ function Yt(t) {
346
347
  return t / X.value.max;
347
348
  }
348
- const Yt = f(() => X.value.ticks.map((t) => ({
349
- y: r.value.bottom - r.value.height * Gt(t),
349
+ const jt = y(() => X.value.ticks.map((t) => ({
350
+ y: r.value.bottom - r.value.height * Yt(t),
350
351
  value: t
351
352
  })));
352
- function jt(t, a) {
353
- return isNaN(t.value / At(a, "value")) ? 0 : (t.value / At(a, "value") * 100).toFixed(0) + "%";
353
+ function qt(t, a) {
354
+ return isNaN(t.value / St(a, "value")) ? 0 : (t.value / St(a, "value") * 100).toFixed(0) + "%";
354
355
  }
355
- function nt(t) {
356
- g.value = null, le.value = null, e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: t, seriesIndex: t.seriesIndex + h.value.start });
356
+ function rt(t) {
357
+ f.value = null, le.value = null, e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: t, seriesIndex: t.seriesIndex + h.value.start });
357
358
  }
358
- function qt(t) {
359
- e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: t, seriesIndex: t.index + h.value.start }), g.value = t.index, le.value = t;
359
+ function Jt(t) {
360
+ e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: t, seriesIndex: t.index + h.value.start }), f.value = t.index, le.value = t;
360
361
  }
361
- const J = c(null);
362
- function rt(t, a) {
363
- e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: t, seriesIndex: t.index + h.value.start }), !(!t.subtotal || !e.value.style.chart.dialog.show) && (le.value = null, g.value = null, de.value = !0, V.value = t, Qt(t), [null, void 0].includes(a) || (J.value = a));
362
+ const J = i(null);
363
+ function it(t, a) {
364
+ e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: t, seriesIndex: t.index + h.value.start }), !(!t.subtotal || !e.value.style.chart.dialog.show) && (le.value = null, f.value = null, de.value = !0, V.value = t, Zt(t), [null, void 0].includes(a) || (J.value = a));
364
365
  }
365
- const it = f(() => R.value.map((t, a) => ({
366
+ const Le = y(() => R.value.map((t, a) => ({
366
367
  name: t.name,
367
368
  value: t.values.slice(h.value.start, h.value.end).reduce((l, s) => l + s, 0),
368
369
  shape: "circle",
369
370
  uid: t.uid,
370
371
  color: t.color
371
- })).sort((t, a) => a.value - t.value).map((t) => ({
372
+ })).sort((t, a) => a.value - t.value).map((t, a) => ({
372
373
  ...t,
373
374
  opacity: C.value.includes(t.uid) ? 0.5 : 1,
374
- segregate: () => _e(t.uid),
375
- isSegregated: C.value.includes(t.uid)
376
- }))), ct = f(() => L.value.map((t) => t.subtotal).reduce((t, a) => t + a, 0)), Jt = f(() => ({
375
+ segregate: () => Ae(t.uid),
376
+ isSegregated: C.value.includes(t.uid),
377
+ display: `${t.name}${e.value.style.chart.legend.showPercentage || e.value.style.chart.legend.showValue ? ": " : ""}${e.value.style.chart.legend.showValue ? Ne(
378
+ e.value.style.chart.layout.dataLabels.formatter,
379
+ t.value,
380
+ ve({
381
+ p: e.value.style.chart.layout.dataLabels.prefix,
382
+ v: t.value,
383
+ s: e.value.style.chart.layout.dataLabels.suffix,
384
+ r: e.value.style.chart.legend.roundingValue
385
+ }),
386
+ { datapoint: t, seriesIndex: a }
387
+ ) : ""}${e.value.style.chart.legend.showPercentage ? C.value.includes(t.uid) ? `${e.value.style.chart.legend.showValue ? " (" : ""}- %${e.value.style.chart.legend.showValue ? ")" : ""}` : `${e.value.style.chart.legend.showValue ? " (" : ""}${isNaN(t.value / ct.value) ? "-" : ve({
388
+ v: t.value / ct.value * 100,
389
+ s: "%",
390
+ r: e.value.style.chart.legend.roundingPercentage
391
+ })}${e.value.style.chart.legend.showValue ? ")" : ""}` : ""}`
392
+ }))), ct = y(() => L.value.map((t) => t.subtotal).reduce((t, a) => t + a, 0)), Kt = y(() => ({
377
393
  cy: "donut-div-legend",
378
394
  backgroundColor: e.value.style.chart.legend.backgroundColor,
379
395
  color: e.value.style.chart.legend.color,
@@ -381,27 +397,27 @@ const Fl = ["id"], El = ["id"], Vl = ["xmlns", "viewBox"], Bl = ["x", "y", "widt
381
397
  paddingBottom: 12,
382
398
  fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
383
399
  }));
384
- function _e(t) {
400
+ function Ae(t) {
385
401
  if (C.value.includes(t))
386
- C.value = C.value.filter((a) => a !== t), Ge("selectLegend", null);
402
+ C.value = C.value.filter((a) => a !== t), je("selectLegend", null);
387
403
  else {
388
404
  if (C.value.length === R.value.length - 1) return;
389
- C.value.push(t), Ge("selectLegend", R.value.find((a) => a.uid === t));
405
+ C.value.push(t), je("selectLegend", R.value.find((a) => a.uid === t));
390
406
  }
391
- V.value && rt(L.value.find((a, l) => l === J.value));
407
+ V.value && it(L.value.find((a, l) => l === J.value));
392
408
  }
393
- const W = f(() => {
394
- const t = [""].concat(R.value.filter((u) => !C.value.includes(u.uid)).map((u) => ({
395
- name: u.name,
396
- color: u.color
409
+ const W = y(() => {
410
+ const t = [""].concat(R.value.filter((o) => !C.value.includes(o.uid)).map((o) => ({
411
+ name: o.name,
412
+ color: o.color
397
413
  }))).concat(["Σ"]);
398
414
  let a = [];
399
- for (let u = 0; u < I.value; u += 1) {
400
- const y = R.value.filter((d) => !C.value.includes(d.uid)).map((d) => d.values[u] ?? 0).reduce((d, p) => d + p, 0);
401
- a.push([_.value[u] ? _.value[u].text : "-"].concat(R.value.filter((d) => !C.value.includes(d.uid)).map((d) => ({
402
- value: d.values[u] ?? 0,
403
- percentage: d.values[u] ? d.values[u] / y * 100 : 0
404
- }))).concat([`${e.value.style.chart.layout.dataLabels.prefix}${Number(y.toFixed(e.value.table.td.roundingValue))}${e.value.style.chart.layout.dataLabels.suffix}`]));
415
+ for (let o = 0; o < I.value; o += 1) {
416
+ const g = R.value.filter((d) => !C.value.includes(d.uid)).map((d) => d.values[o] ?? 0).reduce((d, x) => d + x, 0);
417
+ a.push([_.value[o] ? _.value[o].text : "-"].concat(R.value.filter((d) => !C.value.includes(d.uid)).map((d) => ({
418
+ value: d.values[o] ?? 0,
419
+ percentage: d.values[o] ? d.values[o] / g * 100 : 0
420
+ }))).concat([`${e.value.style.chart.layout.dataLabels.prefix}${Number(g.toFixed(e.value.table.td.roundingValue))}${e.value.style.chart.layout.dataLabels.suffix}`]));
405
421
  }
406
422
  const l = {
407
423
  th: {
@@ -417,58 +433,58 @@ const Fl = ["id"], El = ["id"], Vl = ["xmlns", "viewBox"], Bl = ["x", "y", "widt
417
433
  breakpoint: e.value.table.responsiveBreakpoint
418
434
  }, s = [
419
435
  e.value.table.columnNames.period
420
- ].concat(R.value.filter((u) => !C.value.includes(u.uid)).map((u) => u.name)).concat(e.value.table.columnNames.total);
436
+ ].concat(R.value.filter((o) => !C.value.includes(o.uid)).map((o) => o.name)).concat(e.value.table.columnNames.total);
421
437
  return { head: t, body: a, config: l, colNames: s };
422
438
  });
423
- function Kt() {
439
+ function Qt() {
424
440
  return R.value;
425
441
  }
426
- function Le(t = null) {
427
- ze(() => {
428
- const a = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [""]], l = [...W.value.head.map((d) => d.name ?? d)], s = [...W.value.body.map((d) => d.map((p) => p.value ?? p))], u = a.concat([l]).concat(s), y = xl(u);
429
- t ? t(y) : pl({ csvContent: y, title: e.value.style.chart.title.text || "vue-ui-donut-evolution" });
442
+ function Se(t = null) {
443
+ Ie(() => {
444
+ const a = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [""]], l = [...W.value.head.map((d) => d.name ?? d)], s = [...W.value.body.map((d) => d.map((x) => x.value ?? x))], o = a.concat([l]).concat(s), g = Al(o);
445
+ t ? t(g) : Sl({ csvContent: g, title: e.value.style.chart.title.text || "vue-ui-donut-evolution" });
430
446
  });
431
447
  }
432
- const H = c(!1);
448
+ const H = i(!1);
433
449
  function vt(t) {
434
- H.value = t, Ne.value += 1;
450
+ H.value = t, Re.value += 1;
435
451
  }
436
452
  function dt() {
437
453
  B.value.showTable = !B.value.showTable;
438
454
  }
439
- const ne = c(!1);
440
- function Ae() {
455
+ const ne = i(!1);
456
+ function $e() {
441
457
  ne.value = !ne.value;
442
458
  }
443
459
  function ht(t) {
444
460
  return t.proportion * 100 > e.value.style.chart.donuts.hover.hideLabelsUnderValue;
445
461
  }
446
- const yt = c([]), ft = c({}), Se = c(null);
447
- function Qt(t) {
462
+ const yt = i([]), gt = i({}), ze = i(null);
463
+ function Zt(t) {
448
464
  yt.value = t.donut.map((a) => ({
449
465
  name: a.name,
450
466
  values: [a.value],
451
467
  color: a.color
452
- })), ft.value = kl({
468
+ })), gt.value = $l({
453
469
  ...e.value.style.chart.dialog.donutChart,
454
470
  responsive: !0,
455
471
  theme: e.value.theme
456
- }), Se.value && Se.value.open();
472
+ }), ze.value && ze.value.open();
457
473
  }
458
- async function Zt({ scale: t = 2 } = {}) {
474
+ async function el({ scale: t = 2 } = {}) {
459
475
  if (!P.value) return;
460
- const { width: a, height: l } = P.value.getBoundingClientRect(), s = a / l, { imageUri: u, base64: y } = await Dl({ domElement: P.value, base64: !0, img: !0, scale: t });
476
+ const { width: a, height: l } = P.value.getBoundingClientRect(), s = a / l, { imageUri: o, base64: g } = await Vl({ domElement: P.value, base64: !0, img: !0, scale: t });
461
477
  return {
462
- imageUri: u,
463
- base64: y,
478
+ imageUri: o,
479
+ base64: g,
464
480
  title: e.value.style.chart.title.text,
465
481
  width: a,
466
482
  height: l,
467
483
  aspectRatio: s
468
484
  };
469
485
  }
470
- const el = f(() => U.value.width), tl = f(() => U.value.height);
471
- Il({
486
+ const tl = y(() => U.value.width), ll = y(() => U.value.height);
487
+ El({
472
488
  timeLabelsEls: ae,
473
489
  timeLabels: _,
474
490
  slicer: h,
@@ -476,14 +492,14 @@ const Fl = ["id"], El = ["id"], Vl = ["xmlns", "viewBox"], Bl = ["x", "y", "widt
476
492
  rotationPath: ["style", "chart", "layout", "grid", "xAxis", "dataLabels", "rotation"],
477
493
  autoRotatePath: ["style", "chart", "layout", "grid", "xAxis", "dataLabels", "autoRotate", "enable"],
478
494
  isAutoSize: !1,
479
- width: el,
480
- height: tl,
495
+ width: tl,
496
+ height: ll,
481
497
  rotation: e.value.style.chart.layout.grid.xAxis.dataLabels.autoRotate.angle
482
498
  });
483
- const K = f(() => {
499
+ const K = y(() => {
484
500
  const t = e.value.table.useDialog && !e.value.table.show, a = B.value.showTable;
485
501
  return {
486
- component: t ? Oe : Tt,
502
+ component: t ? Pe : Tt,
487
503
  title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? `: ${e.value.style.chart.title.subtitle.text}` : ""}`,
488
504
  props: t ? {
489
505
  backgroundColor: e.value.table.th.backgroundColor,
@@ -513,51 +529,69 @@ const Fl = ["id"], El = ["id"], Vl = ["xmlns", "viewBox"], Bl = ["x", "y", "widt
513
529
  re(() => B.value.showTable, (t) => {
514
530
  e.value.table.show || (t && e.value.table.useDialog && Y.value ? Y.value.open() : "close" in Y.value && Y.value.close());
515
531
  });
516
- function gt() {
517
- B.value.showTable = !1, ge.value && ge.value.setTableIconState(!1);
532
+ function ft() {
533
+ B.value.showTable = !1, fe.value && fe.value.setTableIconState(!1);
534
+ }
535
+ const al = y(() => Le.value.map((t) => ({
536
+ ...t,
537
+ name: t.display
538
+ }))), ol = y(() => e.value.style.chart.backgroundColor), ul = y(() => e.value.style.chart.legend), sl = y(() => e.value.style.chart.title), { exportSvg: nl, getSvg: rl } = Nl({
539
+ svg: ke,
540
+ title: sl,
541
+ legend: ul,
542
+ legendItems: al,
543
+ backgroundColor: ol
544
+ });
545
+ async function bt({ isCb: t }) {
546
+ if (t) {
547
+ const { blob: a, url: l, text: s, dataUrl: o } = await rl();
548
+ e.value.userOptions.callbacks.svg({ blob: a, url: l, text: s, dataUrl: o });
549
+ } else
550
+ nl();
518
551
  }
519
- return It({
520
- getData: Kt,
521
- getImage: Zt,
522
- generatePdf: at,
523
- generateCsv: Le,
524
- generateImage: ot,
552
+ return Dt({
553
+ getData: Qt,
554
+ getImage: el,
555
+ generatePdf: ot,
556
+ generateCsv: Se,
557
+ generateImage: ut,
558
+ generateSvg: bt,
525
559
  toggleTable: dt,
526
- toggleAnnotator: Ae,
560
+ toggleAnnotator: $e,
527
561
  toggleFullscreen: vt
528
- }), (t, a) => (o(), n("div", {
562
+ }), (t, a) => (u(), n("div", {
529
563
  ref_key: "donutEvolutionChart",
530
564
  ref: P,
531
- class: N(`vue-ui-donut-evolution ${H.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
565
+ class: N(`vue-data-ui-component vue-ui-donut-evolution ${H.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
532
566
  style: Q(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;background:${e.value.style.chart.backgroundColor}`),
533
- id: O.value,
534
- onMouseenter: a[5] || (a[5] = () => i(Qe)(!0)),
535
- onMouseleave: a[6] || (a[6] = () => i(Qe)(!1))
567
+ id: T.value,
568
+ onMouseenter: a[5] || (a[5] = () => c(et)(!0)),
569
+ onMouseleave: a[6] || (a[6] = () => c(et)(!1))
536
570
  }, [
537
- e.value.userOptions.buttons.annotator ? (o(), T(i(Rt), {
571
+ e.value.userOptions.buttons.annotator ? (u(), O(c(Ft), {
538
572
  key: 0,
539
- svgRef: i(et),
573
+ svgRef: c(ke),
540
574
  backgroundColor: e.value.style.chart.backgroundColor,
541
575
  color: e.value.style.chart.color,
542
576
  active: ne.value,
543
- onClose: Ae
577
+ onClose: $e
544
578
  }, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : v("", !0),
545
- Ht.value ? (o(), n("div", {
579
+ Ut.value ? (u(), n("div", {
546
580
  key: 1,
547
581
  ref_key: "noTitle",
548
- ref: Bt,
582
+ ref: Mt,
549
583
  class: "vue-data-ui-no-title-space",
550
584
  style: "height:36px; width: 100%;background:transparent"
551
585
  }, null, 512)) : v("", !0),
552
- e.value.style.chart.title.text ? (o(), n("div", {
586
+ e.value.style.chart.title.text ? (u(), n("div", {
553
587
  key: 2,
554
588
  ref_key: "chartTitle",
555
- ref: Be,
589
+ ref: He,
556
590
  style: "width:100%;background:transparent;padding-bottom:24px",
557
- onMouseleave: nt
591
+ onMouseleave: rt
558
592
  }, [
559
- (o(), T(Tl, {
560
- key: `title_${Re.value}`,
593
+ (u(), O(Bl, {
594
+ key: `title_${Ee.value}`,
561
595
  config: {
562
596
  title: {
563
597
  cy: "donut-evolution-div-title",
@@ -571,19 +605,20 @@ const Fl = ["id"], El = ["id"], Vl = ["xmlns", "viewBox"], Bl = ["x", "y", "widt
571
605
  }, null, 8, ["config"]))
572
606
  ], 544)) : v("", !0),
573
607
  b("div", {
574
- id: `legend-top-${O.value}`
575
- }, null, 8, El),
576
- e.value.userOptions.show && Ye.value && (i(Ze) || i(pe)) ? (o(), T(i(Ft), {
608
+ id: `legend-top-${T.value}`
609
+ }, null, 8, Gl),
610
+ e.value.userOptions.show && qe.value && (c(tt) || c(pe)) ? (u(), O(c(Et), {
577
611
  ref_key: "userOptionsRef",
578
- ref: ge,
579
- key: `user_options_${Ne.value}`,
612
+ ref: fe,
613
+ key: `user_options_${Re.value}`,
580
614
  backgroundColor: e.value.style.chart.backgroundColor,
581
615
  color: e.value.style.chart.color,
582
- isPrinting: i(tt),
583
- isImaging: i(lt),
584
- uid: O.value,
616
+ isPrinting: c(lt),
617
+ isImaging: c(at),
618
+ uid: T.value,
585
619
  hasPdf: e.value.userOptions.buttons.pdf,
586
620
  hasImg: e.value.userOptions.buttons.img,
621
+ hasSvg: e.value.userOptions.buttons.svg,
587
622
  hasXls: e.value.userOptions.buttons.csv,
588
623
  hasTable: e.value.userOptions.buttons.table,
589
624
  hasFullscreen: e.value.userOptions.buttons.fullscreen,
@@ -597,75 +632,76 @@ const Fl = ["id"], El = ["id"], Vl = ["xmlns", "viewBox"], Bl = ["x", "y", "widt
597
632
  printScale: e.value.userOptions.print.scale,
598
633
  tableDialog: e.value.table.useDialog,
599
634
  onToggleFullscreen: vt,
600
- onGeneratePdf: i(at),
601
- onGenerateCsv: Le,
602
- onGenerateImage: i(ot),
635
+ onGeneratePdf: c(ot),
636
+ onGenerateCsv: Se,
637
+ onGenerateImage: c(ut),
638
+ onGenerateSvg: bt,
603
639
  onToggleTable: dt,
604
- onToggleAnnotator: Ae,
640
+ onToggleAnnotator: $e,
605
641
  style: Q({
606
- visibility: i(Ze) ? i(pe) ? "visible" : "hidden" : "visible"
642
+ visibility: c(tt) ? c(pe) ? "visible" : "hidden" : "visible"
607
643
  })
608
- }, xt({ _: 2 }, [
644
+ }, pt({ _: 2 }, [
609
645
  t.$slots.menuIcon ? {
610
646
  name: "menuIcon",
611
- fn: k(({ isOpen: l, color: s }) => [
647
+ fn: p(({ isOpen: l, color: s }) => [
612
648
  S(t.$slots, "menuIcon", Z(ee({ isOpen: l, color: s })), void 0, !0)
613
649
  ]),
614
650
  key: "0"
615
651
  } : void 0,
616
652
  t.$slots.optionPdf ? {
617
653
  name: "optionPdf",
618
- fn: k(() => [
654
+ fn: p(() => [
619
655
  S(t.$slots, "optionPdf", {}, void 0, !0)
620
656
  ]),
621
657
  key: "1"
622
658
  } : void 0,
623
659
  t.$slots.optionCsv ? {
624
660
  name: "optionCsv",
625
- fn: k(() => [
661
+ fn: p(() => [
626
662
  S(t.$slots, "optionCsv", {}, void 0, !0)
627
663
  ]),
628
664
  key: "2"
629
665
  } : void 0,
630
666
  t.$slots.optionImg ? {
631
667
  name: "optionImg",
632
- fn: k(() => [
668
+ fn: p(() => [
633
669
  S(t.$slots, "optionImg", {}, void 0, !0)
634
670
  ]),
635
671
  key: "3"
636
672
  } : void 0,
637
673
  t.$slots.optionTable ? {
638
674
  name: "optionTable",
639
- fn: k(() => [
675
+ fn: p(() => [
640
676
  S(t.$slots, "optionTable", {}, void 0, !0)
641
677
  ]),
642
678
  key: "4"
643
679
  } : void 0,
644
680
  t.$slots.optionFullscreen ? {
645
681
  name: "optionFullscreen",
646
- fn: k(({ toggleFullscreen: l, isFullscreen: s }) => [
682
+ fn: p(({ toggleFullscreen: l, isFullscreen: s }) => [
647
683
  S(t.$slots, "optionFullscreen", Z(ee({ toggleFullscreen: l, isFullscreen: s })), void 0, !0)
648
684
  ]),
649
685
  key: "5"
650
686
  } : void 0,
651
687
  t.$slots.optionAnnotator ? {
652
688
  name: "optionAnnotator",
653
- fn: k(({ toggleAnnotator: l, isAnnotator: s }) => [
689
+ fn: p(({ toggleAnnotator: l, isAnnotator: s }) => [
654
690
  S(t.$slots, "optionAnnotator", Z(ee({ toggleAnnotator: l, isAnnotator: s })), void 0, !0)
655
691
  ]),
656
692
  key: "6"
657
693
  } : void 0
658
- ]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasPdf", "hasImg", "hasXls", "hasTable", "hasFullscreen", "isFullscreen", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "tableDialog", "onGeneratePdf", "onGenerateImage", "style"])) : v("", !0),
659
- (o(), n("svg", {
694
+ ]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasPdf", "hasImg", "hasSvg", "hasXls", "hasTable", "hasFullscreen", "isFullscreen", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "tableDialog", "onGeneratePdf", "onGenerateImage", "style"])) : v("", !0),
695
+ (u(), n("svg", {
660
696
  ref_key: "svgRef",
661
- ref: et,
662
- xmlns: i(yl),
697
+ ref: ke,
698
+ xmlns: c(kl),
663
699
  class: N({ "vue-data-ui-fullscreen--on": H.value, "vue-data-ui-fulscreen--off": !H.value }),
664
700
  viewBox: `0 0 ${r.value.absoluteWidth} ${r.value.absoluteHeight}`,
665
701
  style: Q(`max-width:100%; overflow: visible; background:transparent;color:${e.value.style.chart.color};`)
666
702
  }, [
667
- pt(i(Pt)),
668
- t.$slots["chart-background"] ? (o(), n("foreignObject", {
703
+ kt(c(Rt)),
704
+ t.$slots["chart-background"] ? (u(), n("foreignObject", {
669
705
  key: 0,
670
706
  x: r.value.left,
671
707
  y: r.value.top,
@@ -676,10 +712,10 @@ const Fl = ["id"], El = ["id"], Vl = ["xmlns", "viewBox"], Bl = ["x", "y", "widt
676
712
  }
677
713
  }, [
678
714
  S(t.$slots, "chart-background", {}, void 0, !0)
679
- ], 8, Bl)) : v("", !0),
715
+ ], 8, jl)) : v("", !0),
680
716
  b("defs", null, [
681
717
  b("linearGradient", {
682
- id: `hover_${O.value}`,
718
+ id: `hover_${T.value}`,
683
719
  x1: "0%",
684
720
  y1: "0%",
685
721
  x2: "0%",
@@ -687,31 +723,31 @@ const Fl = ["id"], El = ["id"], Vl = ["xmlns", "viewBox"], Bl = ["x", "y", "widt
687
723
  }, [
688
724
  b("stop", {
689
725
  offset: "0%",
690
- "stop-color": i(te)(e.value.style.chart.backgroundColor, e.value.style.chart.layout.highlighter.opacity)
691
- }, null, 8, Hl),
726
+ "stop-color": c(te)(e.value.style.chart.backgroundColor, e.value.style.chart.layout.highlighter.opacity)
727
+ }, null, 8, Jl),
692
728
  b("stop", {
693
729
  offset: "100%",
694
- "stop-color": i(te)(e.value.style.chart.layout.highlighter.color, e.value.style.chart.layout.highlighter.opacity)
695
- }, null, 8, Ul)
696
- ], 8, Ml),
730
+ "stop-color": c(te)(e.value.style.chart.layout.highlighter.color, e.value.style.chart.layout.highlighter.opacity)
731
+ }, null, 8, Kl)
732
+ ], 8, ql),
697
733
  b("radialGradient", {
698
- id: `focus_${O.value}`
734
+ id: `focus_${T.value}`
699
735
  }, [
700
736
  b("stop", {
701
737
  offset: "0%",
702
- "stop-color": i(te)(i(Ie)(e.value.style.chart.backgroundColor), 0)
703
- }, null, 8, Wl),
738
+ "stop-color": c(te)(c(Oe)(e.value.style.chart.backgroundColor), 0)
739
+ }, null, 8, Zl),
704
740
  b("stop", {
705
741
  offset: "77%",
706
- "stop-color": i(te)("#FFFFFF", 30)
707
- }, null, 8, Gl),
742
+ "stop-color": c(te)("#FFFFFF", 30)
743
+ }, null, 8, ea),
708
744
  b("stop", {
709
745
  offset: "100%",
710
- "stop-color": i(te)(i(Ie)(e.value.style.chart.backgroundColor), 0)
711
- }, null, 8, Yl)
712
- ], 8, Xl)
746
+ "stop-color": c(te)(c(Oe)(e.value.style.chart.backgroundColor), 0)
747
+ }, null, 8, ta)
748
+ ], 8, Ql)
713
749
  ]),
714
- e.value.style.chart.layout.grid.show ? (o(), n("g", jl, [
750
+ e.value.style.chart.layout.grid.show ? (u(), n("g", la, [
715
751
  b("line", {
716
752
  x1: r.value.left,
717
753
  x2: r.value.left,
@@ -720,7 +756,7 @@ const Fl = ["id"], El = ["id"], Vl = ["xmlns", "viewBox"], Bl = ["x", "y", "widt
720
756
  stroke: e.value.style.chart.layout.grid.stroke,
721
757
  "stroke-width": e.value.style.chart.layout.grid.strokeWidth,
722
758
  "stroke-linecap": "round"
723
- }, null, 8, ql),
759
+ }, null, 8, aa),
724
760
  b("line", {
725
761
  x1: r.value.left,
726
762
  x2: r.value.right,
@@ -729,9 +765,9 @@ const Fl = ["id"], El = ["id"], Vl = ["xmlns", "viewBox"], Bl = ["x", "y", "widt
729
765
  stroke: e.value.style.chart.layout.grid.stroke,
730
766
  "stroke-width": e.value.style.chart.layout.grid.strokeWidth,
731
767
  "stroke-linecap": "round"
732
- }, null, 8, Jl),
733
- e.value.style.chart.layout.grid.showVerticalLines ? (o(), n("g", Kl, [
734
- (o(!0), n(z, null, $(h.value.end - h.value.start, (l, s) => (o(), n("line", {
768
+ }, null, 8, oa),
769
+ e.value.style.chart.layout.grid.showVerticalLines ? (u(), n("g", ua, [
770
+ (u(!0), n($, null, z(h.value.end - h.value.start, (l, s) => (u(), n("line", {
735
771
  x1: r.value.left + (s + 1) * w.value,
736
772
  x2: r.value.left + (s + 1) * w.value,
737
773
  y1: r.value.top,
@@ -739,21 +775,21 @@ const Fl = ["id"], El = ["id"], Vl = ["xmlns", "viewBox"], Bl = ["x", "y", "widt
739
775
  stroke: e.value.style.chart.layout.grid.stroke,
740
776
  "stroke-width": e.value.style.chart.layout.grid.strokeWidth,
741
777
  "stroke-linecap": "round"
742
- }, null, 8, Ql))), 256))
778
+ }, null, 8, sa))), 256))
743
779
  ])) : v("", !0)
744
780
  ])) : v("", !0),
745
781
  b("g", null, [
746
- e.value.style.chart.layout.grid.axis.yLabel ? (o(), n("text", {
782
+ e.value.style.chart.layout.grid.axis.yLabel ? (u(), n("text", {
747
783
  key: 0,
748
784
  ref_key: "yAxisLabel",
749
- ref: fe,
785
+ ref: ge,
750
786
  "font-size": e.value.style.chart.layout.grid.axis.fontSize,
751
787
  fill: e.value.style.chart.layout.grid.axis.color,
752
788
  transform: `translate(${e.value.style.chart.layout.grid.axis.fontSize}, ${r.value.top + r.value.height / 2}) rotate(-90)`,
753
789
  "text-anchor": "middle",
754
790
  style: { transition: "none" }
755
- }, m(e.value.style.chart.layout.grid.axis.yLabel), 9, Zl)) : v("", !0),
756
- e.value.style.chart.layout.grid.axis.xLabel ? (o(), n("text", {
791
+ }, k(e.value.style.chart.layout.grid.axis.yLabel), 9, na)) : v("", !0),
792
+ e.value.style.chart.layout.grid.axis.xLabel ? (u(), n("text", {
757
793
  key: 1,
758
794
  ref_key: "xAxisLabel",
759
795
  ref: ye,
@@ -762,16 +798,16 @@ const Fl = ["id"], El = ["id"], Vl = ["xmlns", "viewBox"], Bl = ["x", "y", "widt
762
798
  y: r.value.absoluteHeight - 3,
763
799
  "font-size": e.value.style.chart.layout.grid.axis.fontSize,
764
800
  fill: e.value.style.chart.layout.grid.axis.color
765
- }, m(e.value.style.chart.layout.grid.axis.xLabel), 9, ea)) : v("", !0)
801
+ }, k(e.value.style.chart.layout.grid.axis.xLabel), 9, ra)) : v("", !0)
766
802
  ]),
767
- e.value.style.chart.layout.grid.yAxis.dataLabels.show ? (o(), n("g", {
803
+ e.value.style.chart.layout.grid.yAxis.dataLabels.show ? (u(), n("g", {
768
804
  key: 2,
769
805
  ref_key: "scaleLabels",
770
806
  ref: he,
771
- class: N({ "donut-opacity": !0, "donut-behind": g.value !== null })
807
+ class: N({ "donut-opacity": !0, "donut-behind": f.value !== null })
772
808
  }, [
773
- (o(!0), n(z, null, $(Yt.value, (l, s) => (o(), n("g", null, [
774
- l.value >= X.value.min && l.value <= X.value.max ? (o(), n("line", {
809
+ (u(!0), n($, null, z(jt.value, (l, s) => (u(), n("g", null, [
810
+ l.value >= X.value.min && l.value <= X.value.max ? (u(), n("line", {
775
811
  key: 0,
776
812
  x1: r.value.left,
777
813
  x2: r.value.left - 5,
@@ -779,8 +815,8 @@ const Fl = ["id"], El = ["id"], Vl = ["xmlns", "viewBox"], Bl = ["x", "y", "widt
779
815
  y2: l.y,
780
816
  stroke: e.value.style.chart.layout.grid.stroke,
781
817
  "stroke-width": e.value.style.chart.layout.grid.strokeWidth
782
- }, null, 8, ta)) : v("", !0),
783
- l.value >= X.value.min && l.value <= X.value.max ? (o(), n("text", {
818
+ }, null, 8, ia)) : v("", !0),
819
+ l.value >= X.value.min && l.value <= X.value.max ? (u(), n("text", {
784
820
  key: 1,
785
821
  x: r.value.left,
786
822
  y: l.y + e.value.style.chart.layout.grid.yAxis.dataLabels.fontSize / 3,
@@ -788,57 +824,57 @@ const Fl = ["id"], El = ["id"], Vl = ["xmlns", "viewBox"], Bl = ["x", "y", "widt
788
824
  "text-anchor": "end",
789
825
  fill: e.value.style.chart.layout.grid.yAxis.dataLabels.color,
790
826
  "font-weight": e.value.style.chart.layout.grid.yAxis.dataLabels.bold ? "bold" : "normal"
791
- }, m(i(fl)(l.value) ? i(Te)(
827
+ }, k(c(wl)(l.value) ? c(Ne)(
792
828
  e.value.style.chart.layout.dataLabels.formatter,
793
829
  l.value,
794
- i(ve)({
830
+ c(ve)({
795
831
  p: e.value.style.chart.layout.dataLabels.prefix,
796
832
  v: l.value,
797
833
  s: e.value.style.chart.layout.dataLabels.suffix,
798
834
  r: e.value.style.chart.layout.grid.yAxis.dataLabels.roundingValue
799
835
  }),
800
836
  { datapoint: l, seriesIndex: s }
801
- ) : ""), 9, la)) : v("", !0)
837
+ ) : ""), 9, ca)) : v("", !0)
802
838
  ]))), 256))
803
839
  ], 2)) : v("", !0),
804
- e.value.style.chart.layout.grid.xAxis.dataLabels.show ? (o(), n("g", {
840
+ e.value.style.chart.layout.grid.xAxis.dataLabels.show ? (u(), n("g", {
805
841
  key: 3,
806
842
  ref_key: "timeLabelsEls",
807
843
  ref: ae,
808
844
  class: N({ "donut-opacity": !0 })
809
845
  }, [
810
- (o(!0), n(z, null, $(h.value.end - h.value.start, (l, s) => (o(), n("g", null, [
811
- (e.value.style.chart.layout.grid.xAxis.dataLabels.showOnlyFirstAndLast && (s === 0 || s === I.value - 1) || !e.value.style.chart.layout.grid.xAxis.dataLabels.showOnlyFirstAndLast) && _.value[s] && _.value[s].text ? (o(), n("g", aa, [
846
+ (u(!0), n($, null, z(h.value.end - h.value.start, (l, s) => (u(), n("g", null, [
847
+ (e.value.style.chart.layout.grid.xAxis.dataLabels.showOnlyFirstAndLast && (s === 0 || s === I.value - 1) || !e.value.style.chart.layout.grid.xAxis.dataLabels.showOnlyFirstAndLast) && _.value[s] && _.value[s].text ? (u(), n("g", va, [
812
848
  String(_.value[s].text).includes(`
813
- `) ? (o(), n("text", {
849
+ `) ? (u(), n("text", {
814
850
  key: 1,
815
851
  class: "vue-data-ui-time-label",
816
852
  "text-anchor": e.value.style.chart.layout.grid.xAxis.dataLabels.rotation > 0 ? "start" : e.value.style.chart.layout.grid.xAxis.dataLabels.rotation < 0 ? "end" : "middle",
817
853
  "font-size": e.value.style.chart.layout.grid.xAxis.dataLabels.fontSize,
818
854
  fill: e.value.style.chart.layout.grid.xAxis.dataLabels.color,
819
855
  transform: `translate(${r.value.left + w.value * s + w.value / 2}, ${r.value.bottom + e.value.style.chart.layout.grid.xAxis.dataLabels.fontSize + e.value.style.chart.layout.grid.xAxis.dataLabels.offsetY}), rotate(${e.value.style.chart.layout.grid.xAxis.dataLabels.rotation})`,
820
- innerHTML: i(gl)({
856
+ innerHTML: c(Cl)({
821
857
  content: String(_.value[s].text),
822
858
  fontSize: e.value.style.chart.layout.grid.xAxis.dataLabels.fontSize,
823
859
  fill: e.value.style.chart.layout.grid.xAxis.dataLabels.color,
824
860
  x: 0,
825
861
  y: 0
826
862
  })
827
- }, null, 8, ua)) : (o(), n("text", {
863
+ }, null, 8, ha)) : (u(), n("text", {
828
864
  key: 0,
829
865
  class: "vue-data-ui-time-label",
830
866
  "text-anchor": e.value.style.chart.layout.grid.xAxis.dataLabels.rotation > 0 ? "start" : e.value.style.chart.layout.grid.xAxis.dataLabels.rotation < 0 ? "end" : "middle",
831
867
  "font-size": e.value.style.chart.layout.grid.xAxis.dataLabels.fontSize,
832
868
  fill: e.value.style.chart.layout.grid.xAxis.dataLabels.color,
833
869
  transform: `translate(${r.value.left + w.value * s + w.value / 2}, ${r.value.bottom + e.value.style.chart.layout.grid.xAxis.dataLabels.fontSize + e.value.style.chart.layout.grid.xAxis.dataLabels.offsetY}), rotate(${e.value.style.chart.layout.grid.xAxis.dataLabels.rotation})`
834
- }, m(_.value[s].text || ""), 9, oa))
870
+ }, k(_.value[s].text || ""), 9, da))
835
871
  ])) : v("", !0)
836
872
  ]))), 256))
837
873
  ], 512)) : v("", !0),
838
- (o(!0), n(z, null, $(L.value, (l, s) => (o(), n("g", null, [
839
- e.value.style.chart.layout.line.show && s < L.value.length - 1 && ![l.subtotal, L.value[s + 1].subtotal].includes(null) ? (o(), n("line", {
874
+ (u(!0), n($, null, z(L.value, (l, s) => (u(), n("g", null, [
875
+ e.value.style.chart.layout.line.show && s < L.value.length - 1 && ![l.subtotal, L.value[s + 1].subtotal].includes(null) ? (u(), n("line", {
840
876
  key: 0,
841
- class: N({ "donut-opacity": !0, "donut-behind": g.value !== null }),
877
+ class: N({ "donut-opacity": !0, "donut-behind": f.value !== null }),
842
878
  x1: l.x,
843
879
  y1: l.y,
844
880
  x2: L.value[s + 1].x,
@@ -847,44 +883,44 @@ const Fl = ["id"], El = ["id"], Vl = ["xmlns", "viewBox"], Bl = ["x", "y", "widt
847
883
  "stroke-width": e.value.style.chart.layout.line.strokeWidth,
848
884
  "stroke-linecap": "round",
849
885
  "stroke-linejoin": "round"
850
- }, null, 10, sa)) : v("", !0),
851
- l.subtotal !== null ? (o(), n("g", na, [
852
- l.subtotal ? (o(), n("circle", {
886
+ }, null, 10, ya)) : v("", !0),
887
+ l.subtotal !== null ? (u(), n("g", ga, [
888
+ l.subtotal ? (u(), n("circle", {
853
889
  key: 0,
854
890
  cx: l.x,
855
891
  cy: l.y,
856
892
  r: l.activeRadius,
857
893
  fill: e.value.style.chart.backgroundColor
858
- }, null, 8, ra)) : v("", !0)
894
+ }, null, 8, fa)) : v("", !0)
859
895
  ])) : v("", !0)
860
896
  ]))), 256)),
861
- (o(!0), n(z, null, $(L.value, (l, s) => (o(), n("g", {
862
- class: N({ "donut-opacity": !0, "donut-behind": s !== g.value && g.value !== null })
897
+ (u(!0), n($, null, z(L.value, (l, s) => (u(), n("g", {
898
+ class: N({ "donut-opacity": !0, "donut-behind": s !== f.value && f.value !== null })
863
899
  }, [
864
- l.subtotal ? (o(), n("g", ia, [
865
- g.value !== null && g.value === s ? (o(), n("g", ca, [
866
- (o(!0), n(z, null, $(l.donutHover, (u) => (o(), n("g", null, [
867
- ht(u) ? (o(), n("path", {
900
+ l.subtotal ? (u(), n("g", ba, [
901
+ f.value !== null && f.value === s ? (u(), n("g", ma, [
902
+ (u(!0), n($, null, z(l.donutHover, (o) => (u(), n("g", null, [
903
+ ht(o) ? (u(), n("path", {
868
904
  key: 0,
869
- d: i(bl)(u, { x: u.center.endX, y: u.center.endY }, 12, 12, { x: l.x, y: l.y }, !1, 20),
870
- stroke: u.color,
905
+ d: c(_l)(o, { x: o.center.endX, y: o.center.endY }, 12, 12, { x: l.x, y: l.y }, !1, 20),
906
+ stroke: o.color,
871
907
  "stroke-width": "1",
872
908
  "stroke-linecap": "round",
873
909
  "stroke-linejoin": "round",
874
910
  fill: "none"
875
- }, null, 8, va)) : v("", !0)
911
+ }, null, 8, xa)) : v("", !0)
876
912
  ]))), 256)),
877
- (o(!0), n(z, null, $(l.donutHover, (u, y) => (o(), n("g", null, [
878
- ht(u) ? (o(), n("text", {
913
+ (u(!0), n($, null, z(l.donutHover, (o, g) => (u(), n("g", null, [
914
+ ht(o) ? (u(), n("text", {
879
915
  key: 0,
880
916
  "data-cy-hover-label": "",
881
- "text-anchor": i(Lt)(u, !0, 0).anchor,
882
- x: i(Lt)(u, !0, 9).x,
883
- y: i(ml)(u, 14, 10),
917
+ "text-anchor": c(At)(o, !0, 0).anchor,
918
+ x: c(At)(o, !0, 9).x,
919
+ y: c(Ll)(o, 14, 10),
884
920
  fill: e.value.style.chart.layout.grid.yAxis.dataLabels.color,
885
921
  "font-size": 8,
886
922
  "font-weight": "bold"
887
- }, m(u.name) + ": " + m(jt(u, l.donut)) + " (" + m(u.value === null ? "-" : st(u.value, u, y)) + ") ", 9, da)) : v("", !0)
923
+ }, k(o.name) + ": " + k(qt(o, l.donut)) + " (" + k(o.value === null ? "-" : nt(o.value, o, g)) + ") ", 9, pa)) : v("", !0)
888
924
  ]))), 256)),
889
925
  b("g", null, [
890
926
  b("circle", {
@@ -892,89 +928,89 @@ const Fl = ["id"], El = ["id"], Vl = ["xmlns", "viewBox"], Bl = ["x", "y", "widt
892
928
  cy: l.y,
893
929
  r: l.hoverRadius,
894
930
  fill: e.value.style.chart.backgroundColor
895
- }, null, 8, ha)
931
+ }, null, 8, ka)
896
932
  ])
897
933
  ])) : v("", !0)
898
934
  ])) : v("", !0)
899
935
  ], 2))), 256)),
900
- (o(!0), n(z, null, $(L.value, (l, s) => (o(), n("g", {
901
- class: N({ "donut-opacity": !0, "donut-behind": s !== g.value && g.value !== null })
936
+ (u(!0), n($, null, z(L.value, (l, s) => (u(), n("g", {
937
+ class: N({ "donut-opacity": !0, "donut-behind": s !== f.value && f.value !== null })
902
938
  }, [
903
- l.subtotal !== null ? (o(), n("g", ya, [
904
- l.subtotal === 0 ? (o(), n("circle", {
939
+ l.subtotal !== null ? (u(), n("g", wa, [
940
+ l.subtotal === 0 ? (u(), n("circle", {
905
941
  key: 0,
906
942
  cx: l.x,
907
943
  cy: l.y,
908
944
  r: 3,
909
945
  fill: e.value.style.chart.color
910
- }, null, 8, fa)) : g.value !== null && g.value === s ? (o(), n("g", ga, [
911
- (o(!0), n(z, null, $(l.donutHover, (u, y) => (o(), n("path", {
912
- d: u.arcSlice,
913
- fill: `${u.color}`,
946
+ }, null, 8, Ca)) : f.value !== null && f.value === s ? (u(), n("g", _a, [
947
+ (u(!0), n($, null, z(l.donutHover, (o, g) => (u(), n("path", {
948
+ d: o.arcSlice,
949
+ fill: `${o.color}`,
914
950
  "stroke-width": 1,
915
951
  stroke: e.value.style.chart.backgroundColor
916
- }, null, 8, ba))), 256))
917
- ])) : (o(), n("g", ma, [
918
- (o(!0), n(z, null, $(l.donut, (u, y) => (o(), n("path", {
919
- d: u.arcSlice,
920
- fill: `${u.color}`,
952
+ }, null, 8, La))), 256))
953
+ ])) : (u(), n("g", Aa, [
954
+ (u(!0), n($, null, z(l.donut, (o, g) => (u(), n("path", {
955
+ d: o.arcSlice,
956
+ fill: `${o.color}`,
921
957
  "stroke-width": 0.5,
922
958
  stroke: e.value.style.chart.backgroundColor
923
- }, null, 8, xa))), 256))
959
+ }, null, 8, Sa))), 256))
924
960
  ]))
925
961
  ])) : v("", !0)
926
962
  ], 2))), 256)),
927
- (o(!0), n(z, null, $(L.value, (l, s) => (o(), n("g", {
928
- class: N({ "donut-opacity": !0, "donut-behind": s !== g.value && g.value !== null || de.value && s !== V.value.index })
963
+ (u(!0), n($, null, z(L.value, (l, s) => (u(), n("g", {
964
+ class: N({ "donut-opacity": !0, "donut-behind": s !== f.value && f.value !== null || de.value && s !== V.value.index })
929
965
  }, [
930
- l.subtotal !== null && e.value.style.chart.layout.dataLabels.show ? (o(), n("text", {
966
+ l.subtotal !== null && e.value.style.chart.layout.dataLabels.show ? (u(), n("text", {
931
967
  key: 0,
932
968
  "text-anchor": "middle",
933
969
  x: l.x,
934
- y: g.value === l.index && l.subtotal ? l.y + e.value.style.chart.layout.dataLabels.fontSize / 3 : l.y - l.radius - e.value.style.chart.layout.dataLabels.fontSize + e.value.style.chart.layout.dataLabels.offsetY,
970
+ y: f.value === l.index && l.subtotal ? l.y + e.value.style.chart.layout.dataLabels.fontSize / 3 : l.y - l.radius - e.value.style.chart.layout.dataLabels.fontSize + e.value.style.chart.layout.dataLabels.offsetY,
935
971
  "font-size": e.value.style.chart.layout.dataLabels.fontSize,
936
972
  "font-weight": "bold",
937
973
  fill: e.value.style.chart.layout.dataLabels.color
938
- }, m(st(l.subtotal, l, s)), 9, pa)) : v("", !0)
974
+ }, k(nt(l.subtotal, l, s)), 9, $a)) : v("", !0)
939
975
  ], 2))), 256)),
940
- (o(!0), n(z, null, $(L.value, (l, s) => (o(), n("rect", {
976
+ (u(!0), n($, null, z(L.value, (l, s) => (u(), n("rect", {
941
977
  x: r.value.left + s * w.value,
942
978
  y: r.value.top,
943
979
  width: w.value,
944
980
  height: r.value.height,
945
- fill: [g.value, J.value].includes(l.index) ? `url(#hover_${O.value})` : "transparent",
946
- class: N({ "donut-hover": l.subtotal && [g.value, J.value].includes(l.index) }),
981
+ fill: [f.value, J.value].includes(l.index) ? `url(#hover_${T.value})` : "transparent",
982
+ class: N({ "donut-hover": l.subtotal && [f.value, J.value].includes(l.index) }),
947
983
  style: {
948
984
  pointerEvents: "none"
949
985
  }
950
- }, null, 10, ka))), 256)),
951
- (o(!0), n(z, null, $(L.value, (l, s) => (o(), n("rect", {
986
+ }, null, 10, za))), 256)),
987
+ (u(!0), n($, null, z(L.value, (l, s) => (u(), n("rect", {
952
988
  "data-cy-trap": "",
953
989
  x: r.value.left + s * w.value,
954
990
  y: r.value.top,
955
991
  width: w.value,
956
992
  height: r.value.height,
957
993
  fill: "transparent",
958
- onMouseenter: (u) => qt(l),
959
- onMouseleave: (u) => nt(l),
960
- onClick: (u) => rt(l, s),
961
- class: N({ "donut-hover": g.value === l.index && l.subtotal })
962
- }, null, 42, wa))), 256)),
994
+ onMouseenter: (o) => Jt(l),
995
+ onMouseleave: (o) => rt(l),
996
+ onClick: (o) => it(l, s),
997
+ class: N({ "donut-hover": f.value === l.index && l.subtotal })
998
+ }, null, 42, Ia))), 256)),
963
999
  S(t.$slots, "svg", { svg: r.value }, void 0, !0)
964
- ], 14, Vl)),
965
- t.$slots.watermark ? (o(), n("div", Ca, [
966
- S(t.$slots, "watermark", Z(ee({ isPrinting: i(tt) || i(lt) })), void 0, !0)
1000
+ ], 14, Yl)),
1001
+ t.$slots.watermark ? (u(), n("div", Da, [
1002
+ S(t.$slots, "watermark", Z(ee({ isPrinting: c(lt) || c(at) })), void 0, !0)
967
1003
  ])) : v("", !0),
968
1004
  b("div", {
969
1005
  ref_key: "chartSlicer",
970
- ref: Xe,
1006
+ ref: Ge,
971
1007
  style: Q(`width:100%;background:${e.value.style.chart.backgroundColor}`),
972
1008
  "data-dom-to-png-ignore": ""
973
1009
  }, [
974
- I.value > 1 && e.value.style.chart.zoom.show ? (o(), T(Pl, {
1010
+ I.value > 1 && e.value.style.chart.zoom.show ? (u(), O(Ul, {
975
1011
  ref_key: "slicerComponent",
976
- ref: Ue,
977
- key: `slicer_${Pe.value}`,
1012
+ ref: We,
1013
+ key: `slicer_${Fe.value}`,
978
1014
  background: e.value.style.chart.zoom.color,
979
1015
  borderColor: e.value.style.chart.backgroundColor,
980
1016
  fontSize: e.value.style.chart.zoom.fontSize,
@@ -998,86 +1034,72 @@ const Fl = ["id"], El = ["id"], Vl = ["xmlns", "viewBox"], Bl = ["x", "y", "widt
998
1034
  enableSelectionDrag: e.value.style.chart.zoom.enableSelectionDrag,
999
1035
  focusOnDrag: e.value.style.chart.zoom.focusOnDrag,
1000
1036
  focusRangeRatio: e.value.style.chart.zoom.focusRangeRatio,
1001
- onReset: Ke
1037
+ onReset: Ze
1002
1038
  }, {
1003
- "reset-action": k(({ reset: l }) => [
1039
+ "reset-action": p(({ reset: l }) => [
1004
1040
  S(t.$slots, "reset-action", Z(ee({ reset: l })), void 0, !0)
1005
1041
  ]),
1006
1042
  _: 3
1007
1043
  }, 8, ["background", "borderColor", "fontSize", "useResetSlot", "labelLeft", "labelRight", "textColor", "inputColor", "selectColor", "max", "valueStart", "valueEnd", "start", "end", "refreshStartPoint", "refreshEndPoint", "enableRangeHandles", "enableSelectionDrag", "focusOnDrag", "focusRangeRatio"])) : v("", !0)
1008
1044
  ], 4),
1009
1045
  b("div", {
1010
- id: `legend-bottom-${O.value}`
1011
- }, null, 8, _a),
1012
- Ve.value ? (o(), T(sl, {
1046
+ id: `legend-bottom-${T.value}`
1047
+ }, null, 8, Oa),
1048
+ Me.value ? (u(), O(hl, {
1013
1049
  key: 5,
1014
- to: e.value.style.chart.legend.position === "top" ? `#legend-top-${O.value}` : `#legend-bottom-${O.value}`
1050
+ to: e.value.style.chart.legend.position === "top" ? `#legend-top-${T.value}` : `#legend-bottom-${T.value}`
1015
1051
  }, [
1016
1052
  b("div", {
1017
1053
  ref_key: "chartLegend",
1018
- ref: Me
1054
+ ref: Ue
1019
1055
  }, [
1020
- e.value.style.chart.legend.show ? (o(), T(Nl, {
1021
- key: `legend_${Ee.value}`,
1022
- legendSet: it.value,
1023
- config: Jt.value,
1024
- onClickMarker: a[2] || (a[2] = ({ legend: l }) => _e(l.uid))
1056
+ e.value.style.chart.legend.show ? (u(), O(Hl, {
1057
+ key: `legend_${Be.value}`,
1058
+ legendSet: Le.value,
1059
+ config: Kt.value,
1060
+ onClickMarker: a[2] || (a[2] = ({ legend: l }) => Ae(l.uid))
1025
1061
  }, {
1026
- item: k(({ legend: l, index: s }) => [
1062
+ item: p(({ legend: l, index: s }) => [
1027
1063
  b("div", {
1028
- onClick: (u) => _e(l.uid),
1064
+ onClick: (o) => Ae(l.uid),
1029
1065
  style: Q(`opacity:${C.value.includes(l.uid) ? 0.5 : 1}`)
1030
- }, m(l.name) + m(e.value.style.chart.legend.showPercentage || e.value.style.chart.legend.showValue ? ":" : "") + " " + m(e.value.style.chart.legend.showValue ? i(Te)(
1031
- e.value.style.chart.layout.dataLabels.formatter,
1032
- l.value,
1033
- i(ve)({
1034
- p: e.value.style.chart.layout.dataLabels.prefix,
1035
- v: l.value,
1036
- s: e.value.style.chart.layout.dataLabels.suffix,
1037
- r: e.value.style.chart.legend.roundingValue
1038
- }),
1039
- { datapoint: l, seriesIndex: s }
1040
- ) : "") + " " + m(e.value.style.chart.legend.showPercentage ? C.value.includes(l.uid) ? `${e.value.style.chart.legend.showValue ? "(" : ""}- %${e.value.style.chart.legend.showValue ? ")" : ""}` : `${e.value.style.chart.legend.showValue ? "(" : ""}${isNaN(l.value / ct.value) ? "-" : i(ve)({
1041
- v: l.value / ct.value * 100,
1042
- s: "%",
1043
- r: e.value.style.chart.legend.roundingPercentage
1044
- })}${e.value.style.chart.legend.showValue ? ")" : ""}` : ""), 13, La)
1066
+ }, k(l.display), 13, Ta)
1045
1067
  ]),
1046
1068
  _: 1
1047
1069
  }, 8, ["legendSet", "config"])) : v("", !0),
1048
- S(t.$slots, "legend", { legend: it.value }, void 0, !0)
1070
+ S(t.$slots, "legend", { legend: Le.value }, void 0, !0)
1049
1071
  ], 512)
1050
1072
  ], 8, ["to"])) : v("", !0),
1051
- t.$slots.source ? (o(), n("div", {
1073
+ t.$slots.source ? (u(), n("div", {
1052
1074
  key: 6,
1053
1075
  ref_key: "source",
1054
- ref: He,
1076
+ ref: Xe,
1055
1077
  dir: "auto"
1056
1078
  }, [
1057
1079
  S(t.$slots, "source", {}, void 0, !0)
1058
1080
  ], 512)) : v("", !0),
1059
- Ye.value && e.value.userOptions.buttons.table ? (o(), T(nl(K.value.component), rl({ key: 7 }, K.value.props, {
1081
+ qe.value && e.value.userOptions.buttons.table ? (u(), O(yl(K.value.component), gl({ key: 7 }, K.value.props, {
1060
1082
  ref_key: "tableUnit",
1061
1083
  ref: Y,
1062
- onClose: gt
1063
- }), xt({
1064
- content: k(() => [
1065
- (o(), T(i(Nt), {
1066
- key: `table_${Fe.value}`,
1084
+ onClose: ft
1085
+ }), pt({
1086
+ content: p(() => [
1087
+ (u(), O(c(Pt), {
1088
+ key: `table_${Ve.value}`,
1067
1089
  colNames: W.value.colNames,
1068
1090
  head: W.value.head,
1069
1091
  body: W.value.body,
1070
1092
  config: W.value.config,
1071
1093
  title: e.value.table.useDialog ? "" : K.value.title,
1072
1094
  withCloseButton: !e.value.table.useDialog,
1073
- onClose: gt
1095
+ onClose: ft
1074
1096
  }, {
1075
- th: k(({ th: l }) => [
1076
- $e(m(l.name ?? l), 1)
1097
+ th: p(({ th: l }) => [
1098
+ De(k(l.name ?? l), 1)
1077
1099
  ]),
1078
- td: k(({ td: l }) => [
1079
- l.value === null ? (o(), n("span", Aa, "-")) : (o(), n("b", Sa, m(isNaN(l.value) ? "" : e.value.style.chart.layout.dataLabels.prefix) + m(!isNaN(l.value) && l.value !== null ? Number(l.value.toFixed(e.value.table.td.roundingValue)).toLocaleString() : l) + m(isNaN(l.value) ? "" : e.value.style.chart.layout.dataLabels.suffix), 1)),
1080
- b("span", null, m(l.percentage && !isNaN(l.percentage) ? `(${Number(l.percentage.toFixed(e.value.table.td.roundingPercentage)).toLocaleString()}%)` : ""), 1)
1100
+ td: p(({ td: l }) => [
1101
+ l.value === null ? (u(), n("span", Na, "-")) : (u(), n("b", Pa, k(isNaN(l.value) ? "" : e.value.style.chart.layout.dataLabels.prefix) + k(!isNaN(l.value) && l.value !== null ? Number(l.value.toFixed(e.value.table.td.roundingValue)).toLocaleString() : l) + k(isNaN(l.value) ? "" : e.value.style.chart.layout.dataLabels.suffix), 1)),
1102
+ b("span", null, k(l.percentage && !isNaN(l.percentage) ? `(${Number(l.percentage.toFixed(e.value.table.td.roundingPercentage)).toLocaleString()}%)` : ""), 1)
1081
1103
  ]),
1082
1104
  _: 1
1083
1105
  }, 8, ["colNames", "head", "body", "config", "title", "withCloseButton"]))
@@ -1086,20 +1108,20 @@ const Fl = ["id"], El = ["id"], Vl = ["xmlns", "viewBox"], Bl = ["x", "y", "widt
1086
1108
  }, [
1087
1109
  e.value.table.useDialog ? {
1088
1110
  name: "title",
1089
- fn: k(() => [
1090
- $e(m(K.value.title), 1)
1111
+ fn: p(() => [
1112
+ De(k(K.value.title), 1)
1091
1113
  ]),
1092
1114
  key: "0"
1093
1115
  } : void 0,
1094
1116
  e.value.table.useDialog ? {
1095
1117
  name: "actions",
1096
- fn: k(() => [
1118
+ fn: p(() => [
1097
1119
  b("button", {
1098
1120
  tabindex: "0",
1099
1121
  class: "vue-ui-user-options-button",
1100
- onClick: a[3] || (a[3] = (l) => Le(e.value.userOptions.callbacks.csv))
1122
+ onClick: a[3] || (a[3] = (l) => Se(e.value.userOptions.callbacks.csv))
1101
1123
  }, [
1102
- pt(i(Ot), {
1124
+ kt(c(Nt), {
1103
1125
  name: "excel",
1104
1126
  stroke: K.value.props.color
1105
1127
  }, null, 8, ["stroke"])
@@ -1108,12 +1130,12 @@ const Fl = ["id"], El = ["id"], Vl = ["xmlns", "viewBox"], Bl = ["x", "y", "widt
1108
1130
  key: "1"
1109
1131
  } : void 0
1110
1132
  ]), 1040)) : v("", !0),
1111
- e.value.style.chart.dialog.show ? (o(), T(i(Oe), {
1133
+ e.value.style.chart.dialog.show ? (u(), O(c(Pe), {
1112
1134
  key: 8,
1113
1135
  ref_key: "dialog",
1114
- ref: Se,
1136
+ ref: ze,
1115
1137
  onClose: a[4] || (a[4] = (l) => {
1116
- V.value = null, de.value = !1, le.value = null, g.value = null, J.value = null;
1138
+ V.value = null, de.value = !1, le.value = null, f.value = null, J.value = null;
1117
1139
  }),
1118
1140
  backgroundColor: e.value.style.chart.dialog.backgroundColor,
1119
1141
  color: e.value.style.chart.dialog.color,
@@ -1122,22 +1144,22 @@ const Fl = ["id"], El = ["id"], Vl = ["xmlns", "viewBox"], Bl = ["x", "y", "widt
1122
1144
  isFullscreen: H.value,
1123
1145
  fullscreenParent: P.value
1124
1146
  }, {
1125
- title: k(() => [
1126
- $e(m(_.value[Number(V.value.index)] ? _.value[Number(V.value.index)].text : ""), 1)
1147
+ title: p(() => [
1148
+ De(k(_.value[Number(V.value.index)] ? _.value[Number(V.value.index)].text : ""), 1)
1127
1149
  ]),
1128
- content: k(() => [
1129
- V.value ? (o(), T(i(Et), {
1150
+ content: p(() => [
1151
+ V.value ? (u(), O(c(Vt), {
1130
1152
  key: 0,
1131
- config: ft.value,
1153
+ config: gt.value,
1132
1154
  dataset: yt.value
1133
1155
  }, null, 8, ["config", "dataset"])) : v("", !0)
1134
1156
  ]),
1135
1157
  _: 1
1136
1158
  }, 8, ["backgroundColor", "color", "headerBg", "headerColor", "isFullscreen", "fullscreenParent"])) : v("", !0),
1137
- i(qe) ? (o(), T(Al, { key: 9 })) : v("", !0)
1138
- ], 46, Fl));
1159
+ c(Ke) ? (u(), O(Tl, { key: 9 })) : v("", !0)
1160
+ ], 46, Wl));
1139
1161
  }
1140
- }, Wa = /* @__PURE__ */ Rl(za, [["__scopeId", "data-v-e1ba2385"]]);
1162
+ }, eo = /* @__PURE__ */ Xl(Ra, [["__scopeId", "data-v-ccc6a583"]]);
1141
1163
  export {
1142
- Wa as default
1164
+ eo as default
1143
1165
  };